Nothing Special   »   [go: up one dir, main page]

WO2018014688A1 - Frame stream control method and device, and computer storage medium - Google Patents

Frame stream control method and device, and computer storage medium Download PDF

Info

Publication number
WO2018014688A1
WO2018014688A1 PCT/CN2017/089080 CN2017089080W WO2018014688A1 WO 2018014688 A1 WO2018014688 A1 WO 2018014688A1 CN 2017089080 W CN2017089080 W CN 2017089080W WO 2018014688 A1 WO2018014688 A1 WO 2018014688A1
Authority
WO
WIPO (PCT)
Prior art keywords
frame stream
station
data
transmit
idle
Prior art date
Application number
PCT/CN2017/089080
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 WO2018014688A1 publication Critical patent/WO2018014688A1/en

Links

Images

Definitions

  • the present invention relates to the field of power line communication technologies, and in particular, to a frame stream control method and apparatus, and a computer storage medium.
  • Power line communication networks generally adopt a tree topology. There are continuous data flows between the two sites of the parent-child relationship (the sending site and the receiving site, respectively).
  • the data stream buffer is saved on the sending/receiving site, and the data structure of the data stream buffer is managed as a frame stream.
  • a logical data transmission link is formed between the transmission frame stream and the received frame stream.
  • Each site maintains data communication at the same time with other sites directly adjacent to the network topology.
  • data transmission between the transmit/receive frame streams of the two sites must be coordinated through some commands and responses.
  • the existing HomePlug Green PHY standard defines the hierarchical structure and functions of the power line communication protocol stack.
  • the Media Access Control (MAC) implements a set of frame flow control mechanisms to coordinate the transmission/reception of two sites. Frame the stream to keep it in sync.
  • the frame stream control has a release (RELEASE) command for synchronous release between the sending frame stream of the transmitting station and the corresponding receiving frame stream of the receiving station, that is, the transmitting station notifies the receiving station when releasing a certain sending frame stream.
  • the corresponding received frame stream is also released. This operation will take up a certain letter Channel bandwidth. In the environment where the channel is not good, the response may not be received, and the sending station can only release the transmitted frame stream unilaterally through the timer.
  • an embodiment of the present invention is to provide a frame stream control method and apparatus, and a computer storage medium, which utilizes a frame stream timer count and an idle frame stream preemption mechanism to implement asynchronous release of frame streams and frame stream resource recovery. use.
  • an embodiment of the present invention provides a frame flow control method, where the method includes:
  • the idle connection frame stream is used to establish a data transmission link to transmit data.
  • the timer count of the transmit/receive frame stream in the station is checked, and the transmit/receive frame stream whose timer count expires is released, including :
  • the transmission/reception frame stream is directly released.
  • the timer count of the sent/received frame stream is checked, and the updated timer count is obtained, including:
  • the station If the transmit/receive frame stream of the station includes data, the station resets a timer count of the transmit/receive frame stream, and determines the reset transmit/receive frame stream timer count as The updated first timer count;
  • the station Pointing a timer count of the transmit/receive frame stream minus an idle time of the transmit/receive frame stream, obtaining a timer count remaining for the transmit/receive frame stream, and remaining the transmit/receive frame stream
  • the timer count is determined to be the updated second timer count.
  • the idle transmission frame stream is used to transmit data, including:
  • the station determines, according to the source address and the destination address, that the data transmission link is not established by using the transmit/receive frame stream, searching for the idle docked frame stream;
  • the transmit/receive data is transmitted using the idle docked frame stream to establish a data transmission link.
  • searching for the idle docked frame stream includes:
  • the station looks for an idle docked frame stream from its own assigned docked frame stream.
  • the establishing, by using the idle connected frame stream, a data transmission link to transmit the transmit/receive data including:
  • the station establishes the data transmission link by using the temporary idle docking frame stream according to the source address and the destination address of the sending/receiving data, and allocates a data buffer from the shared buffer pool according to the source address and the destination address. ;
  • an embodiment of the present invention provides a frame flow control device, where the device includes: an inspection module, a release module, and a transmission module;
  • the checking module is configured to check a timer count of a transmit/receive frame stream in the station when it is determined that the station has no data transmission;
  • the release module is configured to release the transmit/receive frame stream whose timer count expires
  • the transmitting module is configured to: when it is determined that the station has data transmission, and determine that an idle docking frame stream is available in the station, use the idle docking frame stream to establish a data transmission link to transmit data.
  • the device further includes: an acquiring module; wherein
  • the acquiring module is configured to: when it is determined that the station has no data transmission, check a timer count of the sent/received frame stream, and obtain an updated timer count;
  • the releasing module is configured to directly release the sent/received frame stream when it is determined that the updated timer count of the sent/received frame stream expires.
  • the checking module includes: a reset submodule, a determining submodule, and a subtraction submodule; wherein
  • the reset submodule is configured to reset a timer count of the transmit/receive frame stream if the transmit/receive frame stream of the station includes data;
  • the determining submodule is configured to determine the reset transmit/receive frame flow timer count as an updated first timer count
  • the subtraction submodule is configured to: if the data in the transmit/receive frame stream of the station does not include data in an idle state, the station subtracts the timer count of the transmit/receive frame stream from the transmit/receive frame The idle time of the stream, and the remaining timer count of the transmitted/received frame stream is obtained;
  • the determining submodule is further configured to determine a timer count remaining in the transmit/receive frame stream as an updated second timer count.
  • the device further includes: a lookup module; wherein
  • the acquiring module is configured to acquire a source address and a destination address of the sending/receiving data when determining that the station has sending/receiving data;
  • the searching module is configured to: when the station determines, according to the source address and the destination address, that the data transmission link is not established by using the sending/receiving frame stream, searching for the idle docking frame stream;
  • the transmission module is configured to use the idle docked frame stream to establish a data transmission link to transmit the transmit/receive data.
  • the searching module is configured to: when the station determines, according to the source address and the destination address, that the data transmission link is not established by sending/receiving the frame stream, searching for the unassigned docking frame stream by itself;
  • the station looks for an idle docked frame stream from its own assigned docked frame stream.
  • the device further includes: an allocation module; wherein
  • the searching module is configured to: search for, from the idle connected frame stream, a temporary idle docking frame stream whose timer counts the shortest remaining time;
  • the allocating module is configured to establish, by the station, the data transmission link by using the temporary idle docking frame stream according to the source address and the destination address of the sending/receiving data, and according to the source address and the destination address. Allocating data caches in the shared cache pool;
  • the releasing module is configured to perform a corresponding sending/receiving operation on the sending/receiving data according to the allocated data buffer, and release the allocated data cache after completing the sending/receiving operation.
  • the inspection module, the release module, the transmission module, the acquisition module, the The reset submodule, the determining submodule, the subtraction submodule, the lookup module, and the allocation module may use a central processing unit (CPU) and a digital signal processor (DSP) when performing processing. , Digital Singnal Processor) or Field-Programmable Gate Array (FPGA) implementation.
  • CPU central processing unit
  • DSP digital signal processor
  • FPGA Field-Programmable Gate Array
  • Embodiments of the present invention also provide a computer storage medium in which computer executable instructions are stored, the computer executable instructions being configured to perform the frame flow control method.
  • the embodiment of the invention provides a frame flow control method and device.
  • the frame stream timer is used to count and determine the expired frame stream, and the expired frame stream is released; when the station has data transmission
  • the preemptive idle frame stream transmits data, and realizes asynchronous release of the frame stream and resource multiplexing of the frame stream.
  • Figure 1 is a topological diagram of a power line communication network
  • FIG. 2 is a schematic diagram of a data transmission link in a power line communication network topology
  • FIG. 3 is a schematic flowchart of a specific implementation process of a frame flow control method according to Embodiment 1 of the present invention.
  • FIG. 4 is a schematic flowchart of a frame flow control method according to Embodiment 2 of the present invention.
  • FIG. 5 is a schematic flowchart of a method for releasing a frame stream according to Embodiment 2 of the present invention.
  • FIG. 6 is a schematic flowchart of a method for obtaining an updated timer count according to Embodiment 2 of the present invention.
  • FIG. 7 is a schematic flowchart of a method for transmitting data by using an idle docked frame stream according to Embodiment 2 of the present invention.
  • FIG. 8 is a schematic flowchart of a method for searching for an idle docked frame stream according to Embodiment 2 of the present invention.
  • FIG. 9 is a schematic flowchart of a specific method for transmitting data by using an idle docked frame stream according to Embodiment 2 of the present invention.
  • FIG. 10 is a schematic flowchart of another method for releasing a frame stream according to Embodiment 3 of the present invention.
  • FIG. 11 is a schematic diagram of frame stream release in a power line communication network topology according to Embodiment 3 of the present invention.
  • FIG. 12 is a schematic flowchart of another method for transmitting data by using an idle docked frame stream according to Embodiment 4 of the present invention.
  • FIG. 13 is a schematic diagram of frame stream multiplexing in a power line communication network topology according to Embodiment 4 of the present invention.
  • FIG. 14 is a schematic diagram of frame stream recovery in a power line communication network topology according to Embodiment 4 of the present invention.
  • FIG. 15 is a schematic structural diagram of a frame flow control apparatus according to Embodiment 5 of the present invention.
  • FIG. 16 is a schematic structural diagram of another frame flow control apparatus according to Embodiment 5 of the present invention.
  • FIG. 17 is a schematic structural diagram of an inspection module according to Embodiment 5 of the present invention.
  • FIG. 1 is a schematic diagram of a power line communication network topology
  • site A there are three sub-sites under the parent site A shown in FIG. 1 , namely, site B, site C, and site D.
  • Site C There are two sub-sites under Site C, namely Site E and Site F.
  • each station has a maximum of two transmit frame streams (TX1 and TX2) and two receive frame streams (RX1 and RX2).
  • TX1 and TX2 transmit frame streams
  • RX1 and RX2 receive frame streams
  • the TX2 of the site A and the RX1 of the site C establish a link for transmitting data from the site A to the site C
  • the TX1 of the site A and the RX1 of the site B establish a slave.
  • the TX1 of the site B and the RX1 of the site A establish a link for transmitting data from the site B to the site A
  • the TX1 of the site C and the RX2 of the site A are established from the site C to the site.
  • a link to send data is established.
  • TX1 and TX2 transmit frame streams
  • RX1 and RX2 receive frame streams
  • each station has more than two transmit/receive frame streams, assuming N.
  • the invention realizes the asynchronous release of the inter-site frame stream and the resource multiplexing of the frame stream by the frame stream timer counting and the idle frame stream preemption mechanism, so that the station can simultaneously and greater than the N transmit/receive frame streams.
  • N sites maintain data communication.
  • an embodiment of the present invention provides a method for controlling a frame stream, where the method may include:
  • step S101 Determine whether the station has transmission/reception data. If the station has transmission/reception data, step S102 and step S103 are performed; if the station does not send/receive data, steps S106 to S108 are performed.
  • the station needs to send/receive data, it needs to obtain source address/destination address information of the required transmission/reception data for transmitting or receiving data.
  • step S103 Determine, according to the source address/destination address information, whether the transmission link has been established by sending/receiving the frame stream, and if it is determined that the transmission link has been established by sending/receiving the frame stream, step S104 and S105 are performed; if it is determined that the transmission link is not transmitted/ Receiving the frame stream to establish a transmission link, step S109 is performed.
  • the data buffer is allocated from the shared buffer pool according to the source address/destination address information.
  • the station needs to send or receive data through the transmission/reception frame stream after the transmission or reception of the data, the data can be transmitted only after the transmission/reception frame stream establishes the transmission link. Transfer in the link.
  • a timer is set.
  • the time set in the timer indicates the maximum time that a data transmission link represented by a transmission/reception frame stream can exist.
  • the timing period of sending the frame stream is greater than or equal to the packet sending interval of the two packets before and after the data transmission link represented by the sending frame stream, and a fixed value may be selected according to actual service requirements.
  • the timing period of receiving the frame stream is greater than the timing period of the sending frame stream.
  • the purpose of the setting is to ensure that the transmission frame stream on the transmitting side of the same data transmission link is released later than normal, and may also be based on the actual service.
  • the demand chooses a fixed value.
  • the timer count is reset in order to ensure the active state of the transmit/receive frame stream.
  • the timer is subtracted from the idle time because the transmit/receive frame does not currently contain data, indicating that the transmit/receive frame is currently in an idle state, and the timer count needs to be subtracted from the idle time to calculate the timer.
  • the remaining count that is, the remaining time of the transmitted/received frame.
  • Step S107 Determine whether the timer count of the transmit/receive frame stream is expired. If the timer count of the transmit/receive frame stream expires, step S108 is performed; if the timer count of the send/receive frame stream is not expired, then Step S101 is performed.
  • the timer of the transmission/reception frame stream counts the release of the expired transmission/reception frame stream, and the step S101 is re-executed.
  • the transmit/receive frame stream may be released.
  • step S109 If the transmission link is not established by sending/receiving the frame stream, determining whether there is unallocated The transmission/reception frame stream, if there is an unallocated transmission/reception frame stream, performs step S110; if there is no unallocated transmission/reception frame stream, step S111 is performed.
  • step S110 If there is an unallocated transmission/reception frame stream, initialize the obtained transmission/reception frame stream, establish a transmission/reception link, and go to step S104.
  • the transmission link is not established by transmitting/receiving the frame stream.
  • the obtained transmission/reception frame stream can be initialized.
  • the transmission/reception link is established by transmitting/receiving a frame stream.
  • step S111 If there is no unassigned transmit/receive frame stream, it is determined whether there is an idle transmit/receive frame stream. If there is an idle transmit/receive frame stream, step S112 is performed; if there is no idle transmit/receive frame stream Then, step S113 is performed.
  • the frame stream with the shortest surviving time is selected here, in order to select a shortest active idle transmit/receive frame stream in the idle transmit/receive frame stream, and use the timer to count up.
  • the idle transmit/receive frame stream of the period is utilized.
  • step S113 If there is no idle transmission/reception frame stream, the transmitted/received data is discarded, and the process proceeds to step S106.
  • the embodiment of the invention provides a frame flow control method.
  • the frame stream timer is used to count and determine the expired frame stream, and the expired frame stream is released; when the station has data transmission, the preemption is performed.
  • the idle frame stream transmits data, realizing the asynchronous release of the frame stream and Resource multiplexing of frame streams.
  • an embodiment of the present invention provides a method for controlling a frame stream, where the method may include:
  • step S201 includes steps S2011 and S2012:
  • the release of the transmission/reception frame stream is judged based on whether the timer count of the transmission/reception frame is expired, so the timer count of the transmission/reception frame stream is first updated to determine the remaining of the transmission/reception frame stream timer. time.
  • step S2011 includes S20111 and S20112:
  • S20111 If the transmit/receive frame stream of the station includes data, the station resets a timer count of the sent/received frame stream, and counts the reset transmit/receive frame flow timer Determined to count the updated first timer.
  • the transmit/receive frame stream still contains data, it will not be released, and its timer count needs to be reset to keep it active. It should be noted here that when there is no data transmission at the site, the reason that the transmission/reception frame stream may contain data is that it is possible that the transmitted data is a long message. It takes a long time to divide the long message into multiple times, so there is no data to be transmitted at the site, but the data still needs to be transmitted in the frame stream.
  • S20112 If the transmit/receive frame stream of the station does not include data in an idle state, the station subtracts a timer count of the transmit/receive frame stream from the transmit/receive frame stream. In the idle time, the remaining timer count of the transmitted/received frame stream is obtained, and the remaining timer count of the transmitted/received frame stream is determined as the updated second timer count.
  • the idle state of the frame stream refers to a transmission/reception frame stream of the data transmission link represented by the frame stream that does not contain the transmission data or the reception data, and the data stream represented by the frame stream.
  • the timer count of the frame stream is subtracted from the idle time of the frame stream, so that the time remaining for the timer of the current frame stream can be obtained.
  • the updated timer count of the transmitted/received frame stream expires, it can be directly released.
  • the released frame stream can be reused for the transmission or reception of other data.
  • the idle connection frame stream is used to establish a data transmission link to transmit data.
  • step S202 includes steps S2021 to S2023:
  • S2021 When it is determined that the station has sending/receiving data, obtain a source address and a destination address of the sending/receiving data.
  • the source address and the destination address of the transmitted/received data are used for identifying the frame stream, that is, when the station has to send/receive data, the corresponding transmit/receive frame stream can be identified by the source address and the destination address. .
  • S2022 When the station determines, according to the source address and the destination address, that the data transmission link is not established by using the transmit/receive frame stream, searching for the idle docked frame stream.
  • step S2022 includes steps S20221 and S20222:
  • the unallocated docking frame stream refers to a frame stream that is not allocated for transmission or reception of any data in the station.
  • the station searches for an idle docking frame stream from its own allocated docking frame stream.
  • the station has no unassigned docking frame stream, indicating that all frame streams in the station have been allocated, and the data needs to be transmitted, it is necessary to find the idle docking frame stream in the already allocated docking frame stream. , multiplexing the idle docked frame stream.
  • step S2023 includes steps S20231 to S20233:
  • the temporary idle docked frame stream indicates that the idle docked frame stream is the fastest and soon to expire frame stream in all the found idle docked frame streams.
  • the station establishes the data transmission link by using the temporary idle docking frame stream according to the source address and the destination address of the sending/receiving data, and allocates the data transmission link according to the source address and the destination address.
  • Data cache
  • the corresponding data transmission link can be established by using the idle idle docking frame stream.
  • the data can be transmitted by the station after the data transmission link is established. Transferring data first requires allocating a data cache for the transmitted data in the shared buffer pool.
  • the data to be sent or received is stored in the data cache, and after the data is sent or received correspondingly, the previously allocated data cache is released to release the cache.
  • the embodiment of the invention provides a frame flow control method.
  • the frame stream timer is used to count and determine the expired frame stream, and the expired frame stream is released; when the station has data transmission, the preemption is performed.
  • the idle frame stream transmits data, and realizes asynchronous release of the frame stream and resource multiplexing of the frame stream.
  • an embodiment of the present invention provides a frame flow control method for implementing asynchronous release of a frame stream between a first station and a second station by using a frame stream timer.
  • the method may include :
  • the first station sends data to the second station by sending a frame stream, and resets a timer count of the sent frame stream.
  • the first station and the second station perform data transmission, the first station sends data to the second station by sending a frame stream.
  • the transmission frame stream of the first station and the received frame stream of the second station enable data to be transmitted between the two sites by establishing a data transmission link.
  • a timer is set, and the timer for sending the frame stream is reset every time data is sent, so that it remains active.
  • the received frame stream of the second station receives data sent by the sending frame stream, and resets a timer count of the received frame stream.
  • the data sent by the sending frame stream of the first station is sent to the second station through the data transmission link, and the received frame stream of the second station receives the data transmitted by the sending frame stream of the first station.
  • the timer frame of the first station and the received frame stream of the second station are kept synchronized.
  • the timing period of sending the frame stream is greater than or equal to the packet sending interval of the two packets before and after the data transmission link represented by the sending frame stream, and a fixed value may be selected according to actual service requirements.
  • the timing period of receiving the frame stream is greater than the timing period of the sending frame stream, and is guaranteed to be released later than the sending frame stream of the transmitting side of the same data transmission link under normal conditions, and a fixed value may be selected according to actual service requirements.
  • the first station needs to check the sending frame stream of the first station.
  • the content to be checked includes whether the first frame's transmitted frame stream further contains data, and whether the timer count of the transmitted frame stream expires.
  • Step S303 Checking the sent frame stream of the first station, and obtaining the updated timer count, which specifically includes the following two situations:
  • the first station resets the timer count of the sending frame stream, and the reset the received frame stream timer count is determined as if the data is included in the sending frame stream of the first station.
  • the updated first timer counts are used to determine the timer count of the sending frame stream.
  • the timer count of the transmitted frame stream needs to be reset.
  • the function of the reset is to re-time the timer for transmitting the frame stream to maintain the activity of the data transmission link represented by the transmission frame stream and ensure the transmission of data.
  • the device If the data of the first station's sending frame stream does not contain data, the device is in an idle state. The first station subtracts the idle time of the sent frame stream from the timer count of the sent frame stream, obtains the remaining timer count of the sent frame stream, and determines the remaining timer count of the sent frame stream as The updated second timer counts.
  • the first station will subtract the transmission frame stream from the timer stream of the frame stream.
  • the idle time is obtained by the remaining time count of the transmit frame stream timer, that is, the updated second timer count.
  • the updated second timer count is used to determine whether the timer count of the transmitted frame stream has expired.
  • the updated timer count of the sent frame stream is determined to be expired, indicating that the timer of the sent frame stream is expired, and the sent frame stream is no longer occupied, and is released.
  • the received frame stream of the second station does not receive the data sent by the sending frame stream of the first station, the received frame stream of the second station is time-decayed according to the timer count, and the timer technology is no longer performed. Reset and other updates.
  • the transmission frame stream TX1 of the station C is used to send data to the site A, and is carried by the site.
  • the RX2 receiving frame stream of A receives the data transmitted by station C.
  • station C has no data to send to station A, to release the transmission frame stream TX1
  • the transmission frame stream TX1 is directly released, and at this time, the received frame stream RX2 of station A remains unexpired due to the timer. Reserved. Since the transmission frame stream TX1 of the station C has been released, the received frame stream RX2 of the station A does not receive data, so its timer time is not reset.
  • the received frame stream RX2 timer count of station A expires, the frame stream is also released. Finally, the transmit frame stream TX1 of the station C and the receive frame stream RX2 of the station A are all released by the timer count, realizing the asynchronous release of the transmit frame stream and the received frame stream in the data transmission link.
  • the embodiment of the present invention provides a frame stream control method.
  • the frame stream timer is used to count and determine the expired frame stream, and the expired frame stream is released, thereby realizing the asynchronous release of the frame stream.
  • an embodiment of the present invention provides a frame flow control method, which is used to implement resource multiplexing of a frame stream by using idle frame stream preemption.
  • the method may include:
  • the first station sends data to the second station by sending a frame stream.
  • the first station transmits the data to the second station by creating a transmission frame stream as the transmitting station.
  • the second station receives data sent by the first station, and acquires source address information and destination address information of the sent data.
  • the source address information and the destination address information carried in the sending data are acquired.
  • the source data and the destination address information carried in the data may also carry information such as data service classification information.
  • the second station searches, according to the source address information and the destination address information, whether there is a received frame stream that is connected to the sending frame stream.
  • the second station since the second station cannot determine whether there is an already allocated received frame stream to buffer the received data at this time, it is necessary to find itself whether there is a received frame stream that is connected to the transmitted frame stream.
  • the second station if it does not find the received frame stream corresponding to the transmitted frame stream, it searches for itself whether there is an unallocated received frame stream.
  • the unassigned received frame stream means that the received frame stream is not used as a received frame stream corresponding to any other station sending frame stream, that is, the unallocated received frame stream does not currently have any task of receiving the data buffer.
  • the idle received frame stream refers to a received frame stream that is currently in an idle state and has no received data in the already received received frame stream.
  • the second station searches, in the idle received frame stream, a temporary idle received frame stream whose timer counts the shortest remaining time, and uses the temporary idle received frame stream as a docking with the sending frame stream. Receive frame stream.
  • the second station may find more than one idle received frame stream, and look up the idle idle received frame stream with the shortest remaining time from the found idle received frame stream, so as to expire soon.
  • the released idle received frame stream is multiplexed to maximize the utilization of the idle idle received frame stream.
  • the second station initializes the temporary idle receiving frame stream, so that the temporary idle receiving frame stream establishes a data transmission link with the sending frame stream.
  • the idle idle receive frame stream and the transmit frame stream establish a data transmission link for implementing data cache management.
  • the second station allocates a data buffer from the shared buffer pool according to the source address information and the destination address information, and receives data sent by the sending frame stream.
  • the second station allocates a data buffer from the shared buffer pool to receive the data sent by the first station.
  • the second station releases the allocated data cache after the data receiving is completed.
  • the second data station releases the allocated data cache, and the released cache is used for buffering other data.
  • the idle frame stream preemption mechanism is used to implement multiplexing of the received frame stream resources.
  • Site A has only two transmit and receive frame streams available, but maintains communication with three sites B, C, and D, maintaining network topology relationships and transmitting data.
  • Site A communicates with Site D, it is necessary to obtain the available frame stream according to the above procedure according to the actual situation.
  • site A after receiving the data packet sent by site D, site A extracts the source and destination addresses of the packet. Then, according to the source address and the destination address, it is searched whether there is a corresponding received frame stream. If no allocated received frame stream is docked with the transmitted frame stream of station D, then it is found whether station A has an unassigned received frame stream.
  • the station A has no unassigned received frame stream, the received frame stream in the idle state with the shortest remaining timer time is found from the allocated frame streams RX1 and RX2, and it is assumed here that the received frame stream satisfying the above condition is RX2. After the received frame stream RX2 is found, the received frame stream RX2 is initialized, and a data transmission link is established with the station D to complete the data receiving process.
  • the embodiment of the present invention only uses the resource multiplexing of the received frame stream as an example.
  • the resource multiplexing method for receiving the frame stream is also applicable to resource multiplexing of the transmitted frame stream in the station.
  • the foregoing method implements resource multiplexing of the frame stream by preempting the idle frame stream.
  • the data transmission link destroyed in the above scheme due to being preempted can be recovered. Referring to FIG. 14, the recovery process of the data transmission link that is destroyed due to preemption is further explained by using an example:
  • the station A occupies the received frame in the idle state and the shortest remaining time of the timer from the allocated frame streams RX1 and RX2. Flow, so the data transmission link established when the original site C sends data to the site A is temporarily interrupted because the received frame stream RX2 of the site A is preempted, as shown in FIG. 13, the received frame stream RX2 of the A and the site D TX1 has established a new data transmission link. It is assumed that the transmission frame stream of the station C in the example of the third embodiment has new data to be sent to the station A before being released, and the received frame stream RX1 of the station A is just in an idle state. Then, like the resource multiplexing of the above received frame stream, the idle received frame stream RX1 of station A can be initialized and used to receive data from station C.
  • the embodiment of the invention provides a frame stream control method, which preempts an idle frame stream to transmit data when the station has data transmission, and implements resource multiplexing of the frame stream.
  • an embodiment of the present invention provides a frame stream control apparatus 15 that includes: an inspection module 1501, a release module 1502, and a transmission module 1503;
  • the checking module 1501 is configured to check a timer count of the transmit/receive frame stream in the station when it is determined that the station has no data transmission;
  • the release module 1502 is configured to release the transmit/receive frame stream whose timer count expires;
  • the transmitting module 1503 is configured to: when it is determined that the station has data transmission, and determine that an idle docking frame stream is available in the station, use the idle docking frame stream to establish a data transmission link to transmit data.
  • the device further includes: an obtaining module 1504;
  • the obtaining module 1504 is configured to: when it is determined that the station has no data transmission, check the timer count of the sent/received frame stream, and obtain an updated timer count;
  • the release module 1502 is configured to directly release the transmit/receive frame stream when it is determined that the updated timer count of the transmit/receive frame stream expires.
  • the checking module 1501 includes: a reset submodule 1505, a determining submodule 1506, and a subtraction submodule 1507;
  • the reset submodule 1505 is configured to reset a timer count of the send/receive frame stream if the transmit/receive frame stream of the station includes data;
  • the determining sub-module 1506 is configured to determine the reset transmit/receive frame flow timer count as an updated first timer count
  • the subtraction sub-module 1507 is configured to: if the data in the transmit/receive frame stream of the station does not include data in an idle state, the station subtracts the timer count of the transmit/receive frame stream from the sending/receiving The idle time of the frame stream, and the remaining timer count of the transmitted/received frame stream is obtained;
  • the determining sub-module 1506 is further configured to determine a timer count remaining in the transmit/receive frame stream as an updated second timer count.
  • the device further includes: a searching module 1508;
  • the obtaining module 1504 is configured to acquire a source address and a destination address of the sending/receiving data when determining that the station has sending/receiving data;
  • the searching module 1508 is configured to: when the site is determined according to the source address and the destination address When the data transmission link is not established through the transmit/receive frame stream, the idle docked frame stream is searched;
  • the transmission module 1503 is configured to establish, by using the idle connected frame stream, a data transmission link to transmit the transmission/reception data.
  • the searching module 1508 is configured to: when the station determines that the data transmission link is not established by sending/receiving a frame stream according to the source address and the destination address, searching for unallocated docking itself Frame stream
  • the station looks for an idle docked frame stream from its own assigned docked frame stream.
  • the device further includes: an allocation module 1509;
  • the searching module 1508 is configured to: search, from the idle docked frame stream, a temporary idle received frame stream whose timer counts the shortest remaining time;
  • the allocating module 1509 is configured to establish, by the station, the data transmission link by using the temporary idle docking frame stream according to the source address and the destination address of the sending/receiving data, and according to the source address and the destination address. Allocate data caches from the shared cache pool;
  • the release module 1502 is configured to perform a corresponding transmission/reception operation on the transmit/receive data according to the allocated data cache, and release the allocated data cache after completing the send/receive operation.
  • the checking module 1501, the releasing module 1502, the transmitting module 1503, the obtaining module 1504, the reset submodule 1505, the determining submodule 1506, the subtracting submodule 1507, the searching module 1508, and the allocating module 1509 may all be located in a frame.
  • a central processing unit CPU, Central Processing Unit
  • MPU Micro Processor Unit
  • DSP Digital Signal Processor
  • FPGA Field Programmable Gate Array
  • the embodiment of the invention provides a frame stream control device, which uses a frame stream timer to count and determine an expired frame stream when the station has no data transmission, and releases the expired frame stream; when the station has data transmission, the preemption
  • the idle frame stream transmits data, and realizes asynchronous release of the frame stream and resource multiplexing of the frame stream.
  • Embodiments of the present invention also provide a computer storage medium in which computer executable instructions are stored, the computer executable instructions being configured to perform the frame flow control method.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the frame stream timer when there is no data transmission at the station, the frame stream timer is used to count and determine the expired frame stream, and the expired frame stream is released; when the station has data transmission, preempt the idle frame stream to perform data transmission. Transmission, the asynchronous release of the frame stream and the resource multiplexing of the frame stream are realized.

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiments of the invention disclose a frame stream control method. The method comprises: upon determining that a station is not performing data transmission, checking a timer count for a transmitting/ receiving frame stream in the station, and releasing the transmitting/ receiving frame stream corresponding to an expired timer; and upon determining that the station is performing data transmission, and an idle connected frame stream is available in the station, establishing, using the idle connected frame stream, a data transmission link, so as to perform data transmission. The embodiments of the invention also disclose a frame stream control device and a computer storage medium.

Description

一种帧流控制方法和装置、计算机存储介质Frame flow control method and device, computer storage medium
相关申请的交叉引用Cross-reference to related applications
本申请基于申请号为201610570353.4、申请日为2016年07月18日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。The present application is filed on the basis of the Chinese Patent Application No. No. No. No. No. No. No. No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No
技术领域Technical field
本发明涉及电力线通信技术领域,尤其涉及一种帧流控制方法和装置、计算机存储介质。The present invention relates to the field of power line communication technologies, and in particular, to a frame stream control method and apparatus, and a computer storage medium.
背景技术Background technique
电力线通信网络一般采用树型拓扑结构。在父子节点关系的两个站点(分别为发送站点和接收站点)间,存在着连续的数据流。在发送/接收站点上保存有该数据流缓存,管理该数据流缓存的数据结构为帧流。在该发送帧流和接收帧流之间构成了逻辑上的数据传输链路。每个站点与在网络拓扑结构上直接相邻的其他站点之间同时保持着数据通信。为了实现站点间收发数据的同步,必须通过一些指令及应答来协调两个站点的发送/接收帧流之间的数据传输。Power line communication networks generally adopt a tree topology. There are continuous data flows between the two sites of the parent-child relationship (the sending site and the receiving site, respectively). The data stream buffer is saved on the sending/receiving site, and the data structure of the data stream buffer is managed as a frame stream. A logical data transmission link is formed between the transmission frame stream and the received frame stream. Each site maintains data communication at the same time with other sites directly adjacent to the network topology. In order to synchronize the data transmitted and received between sites, data transmission between the transmit/receive frame streams of the two sites must be coordinated through some commands and responses.
现有的HomePlug Green PHY标准定义了电力线通信协议栈各层级组织结构及功能,其中介质访问控制层(MAC,Media Access Control)实现了一套帧流控制机制,来协调两个站点的发送/接收帧流,使之保持同步。该帧流控制中有一个释放(RELEASE)指令用于发送站点的发送帧流与接收站点的对应的接收帧流之间实现同步释放,即发送站点要释放某一发送帧流时,通知接收站点也释放对应的接收帧流。这一操作会占用一定的信 道带宽。在信道不好的环境下可能会收不到应答,发送站点也只能通过定时器单方面地释放该发送帧流。The existing HomePlug Green PHY standard defines the hierarchical structure and functions of the power line communication protocol stack. The Media Access Control (MAC) implements a set of frame flow control mechanisms to coordinate the transmission/reception of two sites. Frame the stream to keep it in sync. The frame stream control has a release (RELEASE) command for synchronous release between the sending frame stream of the transmitting station and the corresponding receiving frame stream of the receiving station, that is, the transmitting station notifies the receiving station when releasing a certain sending frame stream. The corresponding received frame stream is also released. This operation will take up a certain letter Channel bandwidth. In the environment where the channel is not good, the response may not be received, and the sending station can only release the transmitted frame stream unilaterally through the timer.
发明内容Summary of the invention
为解决上述技术问题,本发明实施例期望提供一种帧流控制方法和装置、计算机存储介质,利用帧流定时器计数和空闲帧流抢占机制,实现了帧流的异步释放以及帧流资源复用。In order to solve the above technical problem, an embodiment of the present invention is to provide a frame stream control method and apparatus, and a computer storage medium, which utilizes a frame stream timer count and an idle frame stream preemption mechanism to implement asynchronous release of frame streams and frame stream resource recovery. use.
本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is implemented as follows:
第一方面,本发明实施例提供了一种帧流控制方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a frame flow control method, where the method includes:
当确定站点没有数据传输时,对所述站点中的发送/接收帧流的定时器计数进行检查,将定时器计数到期的所述发送/接收帧流进行释放;When it is determined that the station has no data transmission, checking a timer count of the transmit/receive frame stream in the station, and releasing the transmit/receive frame stream whose timer count expires;
当确定所述站点有数据传输,并且确定所述站点中有空闲的对接帧流可用时,利用所述空闲的对接帧流建立数据传输链路对数据进行传输。When it is determined that the station has data transmission, and it is determined that there is an idle docking frame stream available in the station, the idle connection frame stream is used to establish a data transmission link to transmit data.
上述方案中,所述当确定站点没有数据传输时,对所述站点中的发送/接收帧流的定时器计数进行检查,将定时器计数到期的所述发送/接收帧流进行释放,包括:In the above solution, when it is determined that the station has no data transmission, the timer count of the transmit/receive frame stream in the station is checked, and the transmit/receive frame stream whose timer count expires is released, including :
当确定站点没有数据传输时,对所述发送/接收帧流的定时器计数进行检查,获取更新后的定时器计数;When it is determined that the station has no data transmission, checking a timer count of the sent/received frame stream, and obtaining an updated timer count;
当确定所述发送/接收帧流的更新后的定时器计数到期时,将所述发送/接收帧流直接进行释放。When it is determined that the updated timer count of the transmission/reception frame stream expires, the transmission/reception frame stream is directly released.
上述方案中,所述当确定站点没有数据传输时,对所述发送/接收帧流的定时器计数进行检查,获取更新后的定时器计数,包括:In the above solution, when it is determined that the station does not have data transmission, the timer count of the sent/received frame stream is checked, and the updated timer count is obtained, including:
若所述站点的发送/接收帧流中包含有数据,则所述站点重置所述发送/接收帧流的定时器计数,将所述重置后的发送/接收帧流定时器计数确定为更新后的第一定时器计数;If the transmit/receive frame stream of the station includes data, the station resets a timer count of the transmit/receive frame stream, and determines the reset transmit/receive frame stream timer count as The updated first timer count;
若所述站点的发送/接收帧流中没有包含数据处于空闲状态,则所述站 点将所述发送/接收帧流的定时器计数减去所述发送/接收帧流的空闲时间,得到所述发送/接收帧流剩余的定时器计数,将所述发送/接收帧流剩余的定时器计数确定为更新后的第二定时器计数。If the data in the transmit/receive frame stream of the station is not in an idle state, the station Pointing a timer count of the transmit/receive frame stream minus an idle time of the transmit/receive frame stream, obtaining a timer count remaining for the transmit/receive frame stream, and remaining the transmit/receive frame stream The timer count is determined to be the updated second timer count.
上述方案中,所述当确定所述站点有数据传输,并且确定所述站点中有空闲的对接帧流可用时,利用所述空闲的对接帧流对数据进行传输,包括:In the above solution, when it is determined that the station has data transmission, and it is determined that an idle connection frame stream is available in the station, the idle transmission frame stream is used to transmit data, including:
当确定所述站点有发送/接收数据时,获取所述发送/接收数据的源地址和目的地址;Obtaining a source address and a destination address of the transmitting/receiving data when it is determined that the station has transmitting/receiving data;
当所述站点根据所述源地址和目的地址确定没有通过所述发送/接收帧流建立数据传输链路时,对所述空闲的对接帧流进行查找;When the station determines, according to the source address and the destination address, that the data transmission link is not established by using the transmit/receive frame stream, searching for the idle docked frame stream;
利用所述空闲的对接帧流建立数据传输链路对所述发送/接收数据进行传输。The transmit/receive data is transmitted using the idle docked frame stream to establish a data transmission link.
上述方案中,所述当所述站点根据源地址和目的地址确定没有通过发送/接收帧流建立数据传输链路时,对所述空闲的对接帧流进行查找,包括:In the above solution, when the station determines that the data transmission link is not established by using the transmit/receive frame stream according to the source address and the destination address, searching for the idle docked frame stream includes:
当所述站点根据源地址和目的地址确定没有通过发送/接收帧流建立数据传输链路时,在其自身查找未分配的对接帧流;When the station determines, according to the source address and the destination address, that the data transmission link is not established by sending/receiving the frame stream, searching for the unallocated docking frame stream by itself;
当确定所述站点没有未分配的对接帧流时,所述站点从其自身已分配的对接帧流中查找空闲的对接帧流。When it is determined that the station has no unassigned docked frame streams, the station looks for an idle docked frame stream from its own assigned docked frame stream.
上述方案中,所述利用所述空闲的对接帧流建立数据传输链路对所述发送/接收数据进行传输,包括:In the above solution, the establishing, by using the idle connected frame stream, a data transmission link to transmit the transmit/receive data, including:
从所述空闲的对接帧流中查找定时器计数剩余时间最短的临期空闲对接帧流;Obtaining, from the idle connected frame stream, a temporary idle docked frame stream whose timer counts the shortest remaining time;
所述站点根据所述发送/接收数据的源地址和目的地址利用所述临期空闲对接帧流建立所述数据传输链路,并根据所述源地址和目的地址从共享缓存池中分配数据缓存; The station establishes the data transmission link by using the temporary idle docking frame stream according to the source address and the destination address of the sending/receiving data, and allocates a data buffer from the shared buffer pool according to the source address and the destination address. ;
根据所述分配的数据缓存对所述发送/接收数据进行相对应的发送/接收操作,在完成所述发送/接收操作后释放所述分配的数据缓存。And correspondingly transmitting/receiving the transmission/reception data according to the allocated data buffer, releasing the allocated data cache after completing the transmitting/receiving operation.
第二方面,本发明实施例提供了一种帧流控制装置,所述装置包括:检查模块、释放模块和传输模块;其中,In a second aspect, an embodiment of the present invention provides a frame flow control device, where the device includes: an inspection module, a release module, and a transmission module;
所述检查模块,配置为当确定站点没有数据传输时,对所述站点中的发送/接收帧流的定时器计数进行检查;The checking module is configured to check a timer count of a transmit/receive frame stream in the station when it is determined that the station has no data transmission;
所述释放模块,配置为将定时器计数到期的所述发送/接收帧流进行释放;The release module is configured to release the transmit/receive frame stream whose timer count expires;
所述传输模块,配置为当确定所述站点有数据传输,并且确定所述站点中有空闲的对接帧流可用时,利用所述空闲的对接帧流建立数据传输链路对数据进行传输。And the transmitting module is configured to: when it is determined that the station has data transmission, and determine that an idle docking frame stream is available in the station, use the idle docking frame stream to establish a data transmission link to transmit data.
上述方案中,所述装置还包括:获取模块;其中,In the above solution, the device further includes: an acquiring module; wherein
所述获取模块,配置为当确定站点没有数据传输时,对所述发送/接收帧流的定时器计数进行检查,获取更新后的定时器计数;The acquiring module is configured to: when it is determined that the station has no data transmission, check a timer count of the sent/received frame stream, and obtain an updated timer count;
所述释放模块,配置为当确定所述发送/接收帧流的更新后的定时器计数到期时,将所述发送/接收帧流直接进行释放。And the releasing module is configured to directly release the sent/received frame stream when it is determined that the updated timer count of the sent/received frame stream expires.
上述方案中,所述检查模块包括:重置子模块、确定子模块和减法子模块;其中,In the above solution, the checking module includes: a reset submodule, a determining submodule, and a subtraction submodule; wherein
所述重置子模块,配置为若所述站点的发送/接收帧流中包含有数据,则所述站点重置所述发送/接收帧流的定时器计数;The reset submodule is configured to reset a timer count of the transmit/receive frame stream if the transmit/receive frame stream of the station includes data;
所述确定子模块,配置为将所述重置后的发送/接收帧流定时器计数确定为更新后的第一定时器计数;The determining submodule is configured to determine the reset transmit/receive frame flow timer count as an updated first timer count;
所述减法子模块,配置为若所述站点的发送/接收帧流中没有包含数据处于空闲状态,则所述站点将所述发送/接收帧流的定时器计数减去所述发送/接收帧流的空闲时间,得到所述发送/接收帧流剩余的定时器计数; The subtraction submodule is configured to: if the data in the transmit/receive frame stream of the station does not include data in an idle state, the station subtracts the timer count of the transmit/receive frame stream from the transmit/receive frame The idle time of the stream, and the remaining timer count of the transmitted/received frame stream is obtained;
所述确定子模块,还配置为将所述发送/接收帧流剩余的定时器计数确定为更新后的第二定时器计数。The determining submodule is further configured to determine a timer count remaining in the transmit/receive frame stream as an updated second timer count.
上述方案中,所述装置还包括:查找模块;其中,In the above solution, the device further includes: a lookup module; wherein
所述获取模块,配置为当确定所述站点有发送/接收数据时,获取所述发送/接收数据的源地址和目的地址;The acquiring module is configured to acquire a source address and a destination address of the sending/receiving data when determining that the station has sending/receiving data;
所述查找模块,配置为当所述站点根据所述源地址和目的地址确定没有通过所述发送/接收帧流建立数据传输链路时,对所述空闲的对接帧流进行查找;The searching module is configured to: when the station determines, according to the source address and the destination address, that the data transmission link is not established by using the sending/receiving frame stream, searching for the idle docking frame stream;
所述传输模块,配置为利用所述空闲的对接帧流建立数据传输链路对所述发送/接收数据进行传输。The transmission module is configured to use the idle docked frame stream to establish a data transmission link to transmit the transmit/receive data.
上述方案中,所述查找模块,配置为当所述站点根据源地址和目的地址确定没有通过发送/接收帧流建立数据传输链路时,在其自身查找未分配的对接帧流;In the foregoing solution, the searching module is configured to: when the station determines, according to the source address and the destination address, that the data transmission link is not established by sending/receiving the frame stream, searching for the unassigned docking frame stream by itself;
以及,当确定所述站点没有未分配的对接帧流时,所述站点从其自身已分配的对接帧流中查找空闲的对接帧流。And, when it is determined that the station has no unassigned docked frame streams, the station looks for an idle docked frame stream from its own assigned docked frame stream.
上述方案中,所述装置还包括:分配模块;其中,In the above solution, the device further includes: an allocation module; wherein
所述查找模块,配置为从所述空闲的对接帧流中查找定时器计数剩余时间最短的临期空闲对接帧流;The searching module is configured to: search for, from the idle connected frame stream, a temporary idle docking frame stream whose timer counts the shortest remaining time;
所述分配模块,配置为所述站点根据所述发送/接收数据的源地址和目的地址利用所述临期空闲对接帧流建立所述数据传输链路,并根据所述源地址和目的地址从共享缓存池中分配数据缓存;The allocating module is configured to establish, by the station, the data transmission link by using the temporary idle docking frame stream according to the source address and the destination address of the sending/receiving data, and according to the source address and the destination address. Allocating data caches in the shared cache pool;
所述释放模块,配置为根据所述分配的数据缓存对所述发送/接收数据进行相对应的发送/接收操作,在完成所述发送/接收操作后释放所述分配的数据缓存。And the releasing module is configured to perform a corresponding sending/receiving operation on the sending/receiving data according to the allocated data buffer, and release the allocated data cache after completing the sending/receiving operation.
所述检查模块、所述释放模块、所述传输模块、所述获取模块、所述 重置子模块、所述确定子模块、所述减法子模块、所述查找模块、所述分配模块在执行处理时,可以采用中央处理器(CPU,Central Processing Unit)、数字信号处理器(DSP,Digital Singnal Processor)或可编程逻辑阵列(FPGA,Field-Programmable Gate Array)实现。The inspection module, the release module, the transmission module, the acquisition module, the The reset submodule, the determining submodule, the subtraction submodule, the lookup module, and the allocation module may use a central processing unit (CPU) and a digital signal processor (DSP) when performing processing. , Digital Singnal Processor) or Field-Programmable Gate Array (FPGA) implementation.
本发明实施例还提供一种计算机存储介质,其中存储有计算机可执行指令,该计算机可执行指令配置执行上述帧流控制方法。Embodiments of the present invention also provide a computer storage medium in which computer executable instructions are stored, the computer executable instructions being configured to perform the frame flow control method.
本发明实施例提供了一种帧流控制方法和装置,在站点没有数据传输时,利用帧流定时器计数确定到期的帧流,将到期的帧流进行释放;在站点有数据传输时,抢占空闲的帧流对数据进行传输,实现了帧流的异步释放以及帧流的资源复用。The embodiment of the invention provides a frame flow control method and device. When there is no data transmission at the station, the frame stream timer is used to count and determine the expired frame stream, and the expired frame stream is released; when the station has data transmission The preemptive idle frame stream transmits data, and realizes asynchronous release of the frame stream and resource multiplexing of the frame stream.
附图说明DRAWINGS
图1为电力线通信网络拓扑图;Figure 1 is a topological diagram of a power line communication network;
图2为电力线通信网络拓扑中的数据传输链路示意图;2 is a schematic diagram of a data transmission link in a power line communication network topology;
图3为本发明实施例一提供的一种帧流控制方法具体实现流程示意图;FIG. 3 is a schematic flowchart of a specific implementation process of a frame flow control method according to Embodiment 1 of the present invention; FIG.
图4为本发明实施例二提供的一种帧流控制方法流程示意图;4 is a schematic flowchart of a frame flow control method according to Embodiment 2 of the present invention;
图5为本发明实施例二提供的对帧流进行释放的方法流程示意图;FIG. 5 is a schematic flowchart of a method for releasing a frame stream according to Embodiment 2 of the present invention;
图6为本发明实施例二提供的获取更新后的定时器计数的方法流程示意图;FIG. 6 is a schematic flowchart of a method for obtaining an updated timer count according to Embodiment 2 of the present invention;
图7为本发明实施例二提供的利用空闲对接帧流对数据进行传输的方法流程示意图;FIG. 7 is a schematic flowchart of a method for transmitting data by using an idle docked frame stream according to Embodiment 2 of the present invention;
图8为本发明实施例二提供的查找空闲对接帧流的方法流程示意图;FIG. 8 is a schematic flowchart of a method for searching for an idle docked frame stream according to Embodiment 2 of the present invention;
图9为本发明实施例二提供的利用空闲对接帧流对数据进行传输的具体方法流程示意图;9 is a schematic flowchart of a specific method for transmitting data by using an idle docked frame stream according to Embodiment 2 of the present invention;
图10为本发明实施例三提供的另一种对帧流进行释放的方法流程示意图; FIG. 10 is a schematic flowchart of another method for releasing a frame stream according to Embodiment 3 of the present invention;
图11为本发明实施例三提供的电力线通信网络拓扑中的帧流释放示意图;11 is a schematic diagram of frame stream release in a power line communication network topology according to Embodiment 3 of the present invention;
图12为本发明实施例四提供的另一种利用空闲对接帧流对数据进行传输的方法流程示意图;FIG. 12 is a schematic flowchart of another method for transmitting data by using an idle docked frame stream according to Embodiment 4 of the present invention;
图13为本发明实施例四提供的电力线通信网络拓扑中的帧流复用示意图;13 is a schematic diagram of frame stream multiplexing in a power line communication network topology according to Embodiment 4 of the present invention;
图14为本发明实施例四提供的电力线通信网络拓扑中的帧流恢复示意图;14 is a schematic diagram of frame stream recovery in a power line communication network topology according to Embodiment 4 of the present invention;
图15为本发明实施例五提供的一种帧流控制装置结构示意图;FIG. 15 is a schematic structural diagram of a frame flow control apparatus according to Embodiment 5 of the present invention;
图16为本发明实施例五提供的另一种帧流控制装置结构示意图;FIG. 16 is a schematic structural diagram of another frame flow control apparatus according to Embodiment 5 of the present invention;
图17为本发明实施例五提供的检查模块结构示意图。FIG. 17 is a schematic structural diagram of an inspection module according to Embodiment 5 of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings.
参见图1,其为电力线通信网络拓扑示意图,图1中所示父站点A下面有三个子站点,分别为站点B、站点C、站点D。站点C下面有二个子站点,分别为站点E、站点F。假定每个站点最大有两个发送帧流(TX1和TX2)和两个接收帧流(RX1和RX2)。站点间通过发送/接收帧流建立数据传输链路,实现数据发送/接收。如图2所示,以站点A为例,站点A的TX2与站点C的RX1建立起了从站点A往站点C发送数据的链路,同时站点A的TX1与站点B的RX1建立起了从站点A往站点B发送数据的链路。由图2还可以看出,站点B的TX1与站点A的RX1建立起了从站点B往站点A发送数据的链路,同时站点C的TX1与站点A的RX2建立起了从站点C往站点A发送数据的链路。这样站点A中的两个发送帧流(TX1和TX2)和两个接收帧流(RX1和RX2)都分别与站点B与站点C的发送帧流或接收 帧流组成了数据传输链路,建立起数据传输链路后就可以对数据进行传输。Referring to FIG. 1 , which is a schematic diagram of a power line communication network topology, there are three sub-sites under the parent site A shown in FIG. 1 , namely, site B, site C, and site D. There are two sub-sites under Site C, namely Site E and Site F. Assume that each station has a maximum of two transmit frame streams (TX1 and TX2) and two receive frame streams (RX1 and RX2). The data transmission link is established between the stations by transmitting/receiving the frame stream to implement data transmission/reception. As shown in FIG. 2, taking the site A as an example, the TX2 of the site A and the RX1 of the site C establish a link for transmitting data from the site A to the site C, and the TX1 of the site A and the RX1 of the site B establish a slave. The link from Site A to Site B to send data. It can also be seen from FIG. 2 that the TX1 of the site B and the RX1 of the site A establish a link for transmitting data from the site B to the site A, and the TX1 of the site C and the RX2 of the site A are established from the site C to the site. A link to send data. Thus, two transmit frame streams (TX1 and TX2) and two receive frame streams (RX1 and RX2) in station A are respectively transmitted or received with station B and station C. The frame stream constitutes a data transmission link, and data can be transmitted after the data transmission link is established.
在具体应用中,每个站点的发送/接收帧流不止两个,假定为N个。本发明通过帧流定时器计数和空闲帧流抢占机制,实现站点间帧流的异步释放以及帧流的资源复用,使得站点可以在仅有N个发送/接收帧流的前提下同时与大于N个的站点保持数据通信。In a specific application, each station has more than two transmit/receive frame streams, assuming N. The invention realizes the asynchronous release of the inter-site frame stream and the resource multiplexing of the frame stream by the frame stream timer counting and the idle frame stream preemption mechanism, so that the station can simultaneously and greater than the N transmit/receive frame streams. N sites maintain data communication.
实施例一Embodiment 1
参见图3,其示出了本发明实施例提供一种帧流控制方法,所述方法可以包括:Referring to FIG. 3, an embodiment of the present invention provides a method for controlling a frame stream, where the method may include:
S101、判断站点是否有发送/接收数据,若站点有发送/接收数据,则执行步骤S102和步骤S103;若站点没有发送/接收数据,则执行步骤S106至S108。S101. Determine whether the station has transmission/reception data. If the station has transmission/reception data, step S102 and step S103 are performed; if the station does not send/receive data, steps S106 to S108 are performed.
S102、若站点有发送/接收数据,则获取所发送/接收数据的源地址/目的地址信息。S102. If the station has sending/receiving data, obtain source address/destination address information of the sent/received data.
可以理解地,如果站点有需要发送/接收数据,则需要获取所需要发送/接收数据的源地址/目的地址信息,用以对数据进行发送或接收。It can be understood that if the station needs to send/receive data, it needs to obtain source address/destination address information of the required transmission/reception data for transmitting or receiving data.
S103、根据源地址/目的地址信息判断是否已通过发送/接收帧流建立传输链接,若判断出已通过发送/接收帧流建立传输链接,则执行步骤S104和S105;若判断出没有通过发送/接收帧流建立传输链接,则执行步骤S109。S103. Determine, according to the source address/destination address information, whether the transmission link has been established by sending/receiving the frame stream, and if it is determined that the transmission link has been established by sending/receiving the frame stream, step S104 and S105 are performed; if it is determined that the transmission link is not transmitted/ Receiving the frame stream to establish a transmission link, step S109 is performed.
S104、若已通过发送/接收帧流建立传输链接,则根据源地址/目的地址信息从共享缓存池中分配数据缓存。S104. If a transmission link has been established by sending/receiving a frame stream, the data buffer is allocated from the shared buffer pool according to the source address/destination address information.
需要说明的是,由于站点对数据的发送或接收需要通过发送/接收帧流建立传输链接之后才能对数据进行发送或接收,因此只有当发送/接收帧流建立起传输链接之后,数据才能在该链接中进行传输。It should be noted that since the station needs to send or receive data through the transmission/reception frame stream after the transmission or reception of the data, the data can be transmitted only after the transmission/reception frame stream establishes the transmission link. Transfer in the link.
S105、根据所分配的数据缓存完成发送/接收数据的操作,释放所述发送/接收后的数据的缓存。 S105. The operation of transmitting/receiving data is completed according to the allocated data cache, and the buffer of the transmitted/received data is released.
S106、若站点没有发送/接收数据,则对发送/接收帧流所包含的数据进行检查。S106. If the station does not send/receive data, check the data included in the transmit/receive frame stream.
S1061、若发送/接收帧流中包含有数据,则重置定时器计数。S1061. If data is included in the transmit/receive frame stream, the timer count is reset.
需要说明的是,当创建发送/接收帧流时,就设定一个定时器。在定时器中设定的时间表示一个发送/接收帧流所代表的数据传输链路能存在的最长时间。发送帧流的定时周期为大于等于发送帧流所代表的数据传输链路上的前后两个报文的发包间隔,可根据实际业务需求选一个固定值。接收帧流的定时周期为大于发送帧流的定时周期,这样设置的目的是为了保证正常情况下比同一个数据传输链路的发送侧的发送帧流更晚被释放,同样也可根据实际业务需求选一个固定值。It should be noted that when a transmission/reception frame stream is created, a timer is set. The time set in the timer indicates the maximum time that a data transmission link represented by a transmission/reception frame stream can exist. The timing period of sending the frame stream is greater than or equal to the packet sending interval of the two packets before and after the data transmission link represented by the sending frame stream, and a fixed value may be selected according to actual service requirements. The timing period of receiving the frame stream is greater than the timing period of the sending frame stream. The purpose of the setting is to ensure that the transmission frame stream on the transmitting side of the same data transmission link is released later than normal, and may also be based on the actual service. The demand chooses a fixed value.
当有数据进行发送或接收时,重置定时器计数,目的是为了保证发送/接收帧流的活跃状态。When there is data to be transmitted or received, the timer count is reset in order to ensure the active state of the transmit/receive frame stream.
S1062、若发送/接收帧流中没有包含数据处于空闲状态,则将定时器的计数减去发送/接收帧流的空闲时间。S1062: If the data that is not included in the transmit/receive frame stream is in an idle state, the timer count is subtracted from the idle time of the transmit/receive frame stream.
需要说明的是,将定时器的计数减去空闲时间是由于发送/接收帧当前没有包含数据,表明发送/接收帧当前处于空闲状态,需要将定时器的计数减去空闲的时间,计算定时器的剩余计数,即发送/接收帧的剩余时间。It should be noted that the timer is subtracted from the idle time because the transmit/receive frame does not currently contain data, indicating that the transmit/receive frame is currently in an idle state, and the timer count needs to be subtracted from the idle time to calculate the timer. The remaining count, that is, the remaining time of the transmitted/received frame.
S107、判断发送/接收帧流的定时器计数是否到期,若发送/接收帧流的定时器计数到期,则执行步骤S108;若发送/接收帧流的定时器计数没到期,则重新执行步骤S101。S107. Determine whether the timer count of the transmit/receive frame stream is expired. If the timer count of the transmit/receive frame stream expires, step S108 is performed; if the timer count of the send/receive frame stream is not expired, then Step S101 is performed.
S108、发送/接收帧流的定时器计数释放到期的发送/接收帧流,重新执行步骤S101。S108. The timer of the transmission/reception frame stream counts the release of the expired transmission/reception frame stream, and the step S101 is re-executed.
如果发送/接收帧流的定时器计数到期,说明该发送/接收帧流所代表的数据传输链路的存活期结束,可以将发送/接收帧流释放。If the timer count of the transmit/receive frame stream expires, indicating that the lifetime of the data transmission link represented by the transmit/receive frame stream ends, the transmit/receive frame stream may be released.
S109、若没有通过发送/接收帧流建立传输链接,则判断是否有未分配 的发送/接收帧流,若有未分配的发送/接收帧流,则执行步骤S110;若没有有未分配的发送/接收帧流,则执行步骤S111。S109. If the transmission link is not established by sending/receiving the frame stream, determining whether there is unallocated The transmission/reception frame stream, if there is an unallocated transmission/reception frame stream, performs step S110; if there is no unallocated transmission/reception frame stream, step S111 is performed.
S110、若有未分配的发送/接收帧流,则初始化获得的发送/接收帧流,建立发送/接收链路,跳转到步骤S104。S110. If there is an unallocated transmission/reception frame stream, initialize the obtained transmission/reception frame stream, establish a transmission/reception link, and go to step S104.
可以理解地,虽然站点中有发送/接收数据,但是没有通过发送/接收帧流建立传输链接,此时若站点中存在没有分配的发送/接收帧流,则可以初始化获得的发送/接收帧流,通过发送/接收帧流建立起发送/接收链路。通过上述过程就可以跳转到步骤S104完成发送/接收数据的操作。It can be understood that although there is transmission/reception data in the station, the transmission link is not established by transmitting/receiving the frame stream. In this case, if there is no transmission/reception frame stream allocated in the station, the obtained transmission/reception frame stream can be initialized. The transmission/reception link is established by transmitting/receiving a frame stream. Through the above process, it is possible to jump to step S104 to complete the operation of transmitting/receiving data.
S111、若没有未分配的发送/接收帧流,则判断是否有空闲的发送/接收帧流,若有空闲的发送/接收帧流,则执行步骤S112;若没有有空闲的发送/接收帧流,则执行步骤S113。S111. If there is no unassigned transmit/receive frame stream, it is determined whether there is an idle transmit/receive frame stream. If there is an idle transmit/receive frame stream, step S112 is performed; if there is no idle transmit/receive frame stream Then, step S113 is performed.
S112、若有空闲的发送/接收帧流,则抢占空闲发送/接收帧流,从已有的空闲发送/接收帧流中选取一个剩余存活时间最短的帧流,然后跳转到步骤S110。S112. If there is an idle transmit/receive frame stream, preempt the idle transmit/receive frame stream, select a frame stream with the shortest remaining survival time from the existing idle transmit/receive frame stream, and then jump to step S110.
需要说明的是,这里选取剩余存活时间最短的帧流,目的是为了在空闲的发送/接收帧流中选择一个活性最短的空闲的发送/接收帧流对其加以利用,将定时器计数即将到期的空闲发送/接收帧流利用起来。It should be noted that the frame stream with the shortest surviving time is selected here, in order to select a shortest active idle transmit/receive frame stream in the idle transmit/receive frame stream, and use the timer to count up. The idle transmit/receive frame stream of the period is utilized.
S113、若没有空闲的发送/接收帧流,则丢弃发送/接收的数据,跳转到步骤S106。S113. If there is no idle transmission/reception frame stream, the transmitted/received data is discarded, and the process proceeds to step S106.
可以理解地,若没有空闲的发送/接收帧流,则无法通过发送/接收帧流建立传输链接对数据进行发送/接收,此时,将发送/接收的数据丢弃,跳转到步骤S106对发送/接收帧流所包含的数据进行检查。It can be understood that if there is no idle transmit/receive frame stream, the data cannot be transmitted/received by transmitting/receiving a frame stream to establish a transmission link. At this time, the transmitted/received data is discarded, and the process proceeds to step S106 to transmit. / Receive the data contained in the frame stream for inspection.
本发明实施例提供了一种帧流控制方法,在站点没有数据传输时,利用帧流定时器计数确定到期的帧流,将到期的帧流进行释放;在站点有数据传输时,抢占空闲的帧流对数据进行传输,实现了帧流的异步释放以及 帧流的资源复用。The embodiment of the invention provides a frame flow control method. When there is no data transmission at the station, the frame stream timer is used to count and determine the expired frame stream, and the expired frame stream is released; when the station has data transmission, the preemption is performed. The idle frame stream transmits data, realizing the asynchronous release of the frame stream and Resource multiplexing of frame streams.
实施例二Embodiment 2
参见图4,其示出了本发明实施例提供一种帧流控制方法,所述方法可以包括:Referring to FIG. 4, an embodiment of the present invention provides a method for controlling a frame stream, where the method may include:
S201、当确定站点没有数据传输时,对所述站点中的发送/接收帧流的定时器计数进行检查,将定时器计数到期的所述发送/接收帧流进行释放。S201. When it is determined that the station has no data transmission, check a timer count of the transmit/receive frame stream in the station, and release the transmit/receive frame stream whose timer count expires.
参见图5,具体地,步骤S201包括步骤S2011和S2012:Referring to FIG. 5, specifically, step S201 includes steps S2011 and S2012:
S2011、当确定站点没有数据传输时,对所述发送/接收帧流的定时器计数进行检查,获取更新后的定时器计数。S2011. When it is determined that the station has no data transmission, check the timer count of the sent/received frame stream to obtain an updated timer count.
可以理解地,在站点没有数据需要传输的时候,就考虑对其发送/接收帧流进行释放,解除占用。对发送/接收帧流的释放是基于发送/接收帧的定时器计数是否到期来判断的,因此首先对发送/接收帧流的定时器计数进行更新,确定发送/接收帧流定时器剩余的时间。Understandably, when there is no data to be transmitted at the site, it is considered to release and unoccupy the transmit/receive frame stream. The release of the transmission/reception frame stream is judged based on whether the timer count of the transmission/reception frame is expired, so the timer count of the transmission/reception frame stream is first updated to determine the remaining of the transmission/reception frame stream timer. time.
参见图6,具体地,步骤S2011包括S20111和S20112:Referring to FIG. 6, specifically, step S2011 includes S20111 and S20112:
S20111、若所述站点的发送/接收帧流中包含有数据,则所述站点重置所述发送/接收帧流的定时器计数,将所述重置后的发送/接收帧流定时器计数确定为更新后的第一定时器计数。S20111: If the transmit/receive frame stream of the station includes data, the station resets a timer count of the sent/received frame stream, and counts the reset transmit/receive frame flow timer Determined to count the updated first timer.
可以理解地,如果发送/接收帧流中仍然包含有数据,则不会对其进行释放,需要将其定时器计数进行重置,以保持其活跃性。这里需要说明的是,在站点没有数据传输时,发送/接收帧流中可能包含有数据的原因是,有可能所传输的数据是一个长报文。在对长报文分成多次进行传输的时候需要较长的时间,因此会出现站点没有数据需要传输,但是帧流中却仍然包含有数据需要传输。Understandably, if the transmit/receive frame stream still contains data, it will not be released, and its timer count needs to be reset to keep it active. It should be noted here that when there is no data transmission at the site, the reason that the transmission/reception frame stream may contain data is that it is possible that the transmitted data is a long message. It takes a long time to divide the long message into multiple times, so there is no data to be transmitted at the site, but the data still needs to be transmitted in the frame stream.
S20112、若所述站点的发送/接收帧流中没有包含数据处于空闲状态,则所述站点将所述发送/接收帧流的定时器计数减去所述发送/接收帧流的 空闲时间,得到所述发送/接收帧流剩余的定时器计数,将所述发送/接收帧流剩余的定时器计数确定为更新后的第二定时器计数。S20112: If the transmit/receive frame stream of the station does not include data in an idle state, the station subtracts a timer count of the transmit/receive frame stream from the transmit/receive frame stream. In the idle time, the remaining timer count of the transmitted/received frame stream is obtained, and the remaining timer count of the transmitted/received frame stream is determined as the updated second timer count.
具体地,如果站点的发送/接收帧流中没有包含数据,说明其处于空闲状态。帧流的空闲状态是指,指该帧流没有包含发送数据或接收数据,且该帧流所代表的数据传输链路的仍未到期的发送/接收帧流。为了确定空闲帧流剩余的定时器计数,因此,将该帧流的定时器计数减去该帧流的空闲时间,这样可以得到当前该帧流的定时器还剩余的时间。用上述方法就可以判断出时间的衰减,为后续判断帧流定时器是否到期做准备。Specifically, if the station does not contain data in the transmit/receive frame stream, it is in an idle state. The idle state of the frame stream refers to a transmission/reception frame stream of the data transmission link represented by the frame stream that does not contain the transmission data or the reception data, and the data stream represented by the frame stream. In order to determine the remaining timer count of the idle frame stream, the timer count of the frame stream is subtracted from the idle time of the frame stream, so that the time remaining for the timer of the current frame stream can be obtained. By using the above method, the time decay can be judged, and the subsequent determination of whether the frame stream timer is expired is prepared.
S2012、当确定所述发送/接收帧流的更新后的定时器计数到期时,将所述发送/接收帧流直接进行释放。S2012: When it is determined that the updated timer count of the sent/received frame stream expires, the sending/receiving frame stream is directly released.
可以理解地,如果确定发送/接收帧流的更新后的定时器计数到期,那么就可以对其直接进行释放。释放后的帧流可以重新用于其他数据的发送或者接收。Understandably, if it is determined that the updated timer count of the transmitted/received frame stream expires, it can be directly released. The released frame stream can be reused for the transmission or reception of other data.
S202、当确定所述站点有数据传输,并且确定所述站点中有空闲的对接帧流可用时,利用所述空闲的对接帧流建立数据传输链路对数据进行传输。S202. When it is determined that the station has data transmission, and it is determined that an idle connection frame stream is available in the station, the idle connection frame stream is used to establish a data transmission link to transmit data.
参见图7,具体地,步骤S202包括步骤S2021至S2023:Referring to FIG. 7, specifically, step S202 includes steps S2021 to S2023:
S2021、当确定所述站点有发送/接收数据时,获取所述发送/接收数据的源地址和目的地址。S2021: When it is determined that the station has sending/receiving data, obtain a source address and a destination address of the sending/receiving data.
需要说明的是,发送/接收数据的源地址和目的地址是用于对帧流的识别,即当站点有发送/接收数据时,可以通过源地址和目的地址识别出对应的发送/接收帧流。It should be noted that the source address and the destination address of the transmitted/received data are used for identifying the frame stream, that is, when the station has to send/receive data, the corresponding transmit/receive frame stream can be identified by the source address and the destination address. .
S2022、当所述站点根据所述源地址和目的地址确定没有通过所述发送/接收帧流建立数据传输链路时,对所述空闲的对接帧流进行查找。S2022: When the station determines, according to the source address and the destination address, that the data transmission link is not established by using the transmit/receive frame stream, searching for the idle docked frame stream.
参见图8,具体地,步骤S2022包括步骤S20221和S20222: Referring to FIG. 8, specifically, step S2022 includes steps S20221 and S20222:
S20221、当所述站点根据源地址和目的地址确定没有通过发送/接收帧流建立数据传输链路时,在其自身查找未分配的对接帧流。S2021. When the station determines, according to the source address and the destination address, that the data transmission link is not established by sending/receiving the frame stream, searching for the unallocated docking frame stream by itself.
需要说明的是,通过源地址和目的地址没有识别出对接的帧流,就表明在该站点中事先没有分配好对接帧流对数据进行传输。这种情况下,首先在站点中查找其未分配的对接帧流。It should be noted that, by identifying the frame stream that is docked by the source address and the destination address, it indicates that the data is transmitted in the site without the docking frame stream being allocated in advance. In this case, first look up the unassigned docked frame stream in the site.
其中,未分配的对接帧流是指,在站点中没有被分配用于任何数据的发送或接收的帧流。Wherein, the unallocated docking frame stream refers to a frame stream that is not allocated for transmission or reception of any data in the station.
S20222、当确定所述站点没有未分配的对接帧流时,所述站点从其自身已分配的对接帧流中查找空闲的对接帧流。S20222. When it is determined that the station has no unassigned docking frame stream, the station searches for an idle docking frame stream from its own allocated docking frame stream.
可以理解地,如果站点没有未分配的对接帧流,表明该站点中的所有帧流都已经被分配,此时需要对数据进行传输就需要在已经分配的对接帧流中查找空闲的对接帧流,将空闲的对接帧流进行复用。Understandably, if the station has no unassigned docking frame stream, indicating that all frame streams in the station have been allocated, and the data needs to be transmitted, it is necessary to find the idle docking frame stream in the already allocated docking frame stream. , multiplexing the idle docked frame stream.
S2023、利用所述空闲的对接帧流建立数据传输链路对所述发送/接收数据进行传输。S2023. Establish a data transmission link by using the idle connected frame stream to transmit the transmit/receive data.
参见图9,具体地,步骤S2023包括步骤S20231至S20233:Referring to FIG. 9, specifically, step S2023 includes steps S20231 to S20233:
S20231、从所述空闲的对接帧流中查找定时器计数剩余时间最短的临期空闲对接帧流。S20231. Search for, from the idle connected frame stream, a temporary idle docked frame stream whose timer counts the shortest remaining time.
需要说明的是,在站点中查找出的空闲的对接帧流有可能不止一个,在所查找出的空闲对接帧流中找出定时器计数剩余时间最短的临期空闲接收帧流,使其得到复用。其中,临期空闲对接帧流表示该空闲对接帧流为所有查找出的空闲对接帧流中最快即将到期的帧流。It should be noted that there may be more than one idle docking frame stream found in the station, and the idle idle receiving frame stream with the shortest timer remaining time is found in the found idle docking frame stream, so that it is obtained. Reuse. The temporary idle docked frame stream indicates that the idle docked frame stream is the fastest and soon to expire frame stream in all the found idle docked frame streams.
S20232、所述站点根据所述发送/接收数据的源地址和目的地址利用所述临期空闲对接帧流建立所述数据传输链路,并根据所述源地址和目的地址从共享缓存池中分配数据缓存。S20232. The station establishes the data transmission link by using the temporary idle docking frame stream according to the source address and the destination address of the sending/receiving data, and allocates the data transmission link according to the source address and the destination address. Data cache.
具体地,利用临期空闲对接帧流就可以建立其相应的数据传输链路, 建立起数据传输链路后站点就可以对数据进行传输。对数据进行传输首先需要在共享缓存池中为所传输的数据分配数据缓存。Specifically, the corresponding data transmission link can be established by using the idle idle docking frame stream. The data can be transmitted by the station after the data transmission link is established. Transferring data first requires allocating a data cache for the transmitted data in the shared buffer pool.
S20233、根据所述分配的数据缓存对所述发送/接收数据进行相对应的发送/接收操作,在完成所述发送/接收操作后释放所述分配的数据缓存。S20233. Perform a corresponding transmission/reception operation on the transmission/reception data according to the allocated data buffer, and release the allocated data cache after completing the sending/receiving operation.
可以理解地,在数据缓存中保存着需要发送或接收的数据,对数据进行相应的发送或接收之后,将之前分配的数据缓存进行释放解除对缓存的占用。It can be understood that the data to be sent or received is stored in the data cache, and after the data is sent or received correspondingly, the previously allocated data cache is released to release the cache.
本发明实施例提供了一种帧流控制方法,在站点没有数据传输时,利用帧流定时器计数确定到期的帧流,将到期的帧流进行释放;在站点有数据传输时,抢占空闲的帧流对数据进行传输,实现了帧流的异步释放以及帧流的资源复用。The embodiment of the invention provides a frame flow control method. When there is no data transmission at the station, the frame stream timer is used to count and determine the expired frame stream, and the expired frame stream is released; when the station has data transmission, the preemption is performed. The idle frame stream transmits data, and realizes asynchronous release of the frame stream and resource multiplexing of the frame stream.
实施例三Embodiment 3
参见图10,其示出了本发明实施例提供一种帧流控制方法,用于通过帧流定时器计数,在第一站点与第二站点间实现帧流的异步释放,所述方法可以包括:Referring to FIG. 10, an embodiment of the present invention provides a frame flow control method for implementing asynchronous release of a frame stream between a first station and a second station by using a frame stream timer. The method may include :
S301、第一站点通过发送帧流将数据发送至第二站点,并重置所述发送帧流的定时器计数。S301. The first station sends data to the second station by sending a frame stream, and resets a timer count of the sent frame stream.
需要说明的是,在第一站点与第二站点进行数据传输时,第一站点是通过发送帧流发送数据至第二站点的。此时,第一站点的发送帧流与第二站点的接收帧流通过建立数据传输链路使数据能够在两个站点间进行传输。It should be noted that, when the first station and the second station perform data transmission, the first station sends data to the second station by sending a frame stream. At this time, the transmission frame stream of the first station and the received frame stream of the second station enable data to be transmitted between the two sites by establishing a data transmission link.
在第一站点创建发送帧流的时候就设定了一个定时器,每当有数据发送的时候就重置发送帧流的定时器,使其保持活跃状态。When the first station creates a transmit frame stream, a timer is set, and the timer for sending the frame stream is reset every time data is sent, so that it remains active.
S302、所述第二站点的接收帧流接收所述发送帧流所发送的数据,并重置所述接收帧流的定时器计数。 S302. The received frame stream of the second station receives data sent by the sending frame stream, and resets a timer count of the received frame stream.
可以理解地,第一站点的发送帧流发送的数据通过数据传输链路发送至第二站点,此时第二站点的接收帧流接收第一站点的发送帧流所传输的数据。It can be understood that the data sent by the sending frame stream of the first station is sent to the second station through the data transmission link, and the received frame stream of the second station receives the data transmitted by the sending frame stream of the first station.
还需要说明的是,通过同步命令,第一站点的发送帧流和第二站点的接收帧流的定时器计数是保持同步的。发送帧流的定时周期为大于等于发送帧流所代表的数据传输链路上的前后两个报文的发包间隔,可根据实际业务需求选一个固定值。接收帧流的定时周期为大于发送帧流的定时周期,保证正常情况下比同一个数据传输链路的发送侧的发送帧流更晚被释放,可根据实际业务需求选一个固定值。It should also be noted that, by the synchronization command, the timer frame of the first station and the received frame stream of the second station are kept synchronized. The timing period of sending the frame stream is greater than or equal to the packet sending interval of the two packets before and after the data transmission link represented by the sending frame stream, and a fixed value may be selected according to actual service requirements. The timing period of receiving the frame stream is greater than the timing period of the sending frame stream, and is guaranteed to be released later than the sending frame stream of the transmitting side of the same data transmission link under normal conditions, and a fixed value may be selected according to actual service requirements.
S303、当所述第一站点没有数据发送至所述第二站点时,对所述第一站点的发送帧流进行检查,获取更新后的定时器计数。S303. When the first station does not send data to the second station, check the sending frame stream of the first station, and obtain an updated timer count.
具体地,第一站点在完成数据发送任务后,若确定其没有新的数据发送至第二站点,则需要对第一站点的发送帧流进行检查。所检查的内容包括:第一站点的发送帧流中是否还包含有数据,以及,发送帧流的定时器计数是否到期。Specifically, after the first station completes the data sending task, if it is determined that no new data is sent to the second station, the first station needs to check the sending frame stream of the first station. The content to be checked includes whether the first frame's transmitted frame stream further contains data, and whether the timer count of the transmitted frame stream expires.
步骤S303对第一站点的发送帧流进行检查,获取更新后的定时器计数,具体包括以下两种情况:Step S303: Checking the sent frame stream of the first station, and obtaining the updated timer count, which specifically includes the following two situations:
一、若所述第一站点的发送帧流中包含有数据,则所述第一站点重置所述发送帧流的定时器计数,将所述重置后的发送帧流定时器计数确定为更新后的第一定时器计数。The first station resets the timer count of the sending frame stream, and the reset the received frame stream timer count is determined as if the data is included in the sending frame stream of the first station. The updated first timer counts.
可以理解地,若第一站点的发送帧流中仍然包含有数据需要发送,那么需要对发送帧流的定时器计数进行重置。重置的作用为将发送帧流的定时器进行重新计时,以保持该发送帧流所代表的数据传输链路的活性,保证数据的发送。It can be understood that if the data stream of the first station still contains data to be sent, the timer count of the transmitted frame stream needs to be reset. The function of the reset is to re-time the timer for transmitting the frame stream to maintain the activity of the data transmission link represented by the transmission frame stream and ensure the transmission of data.
二、若所述第一站点的发送帧流中没有包含数据处于空闲状态,则所 述第一站点将所述发送帧流的定时器计数减去所述发送帧流的空闲时间,得到所述发送帧流剩余的定时器计数,将所述发送帧流剩余的定时器计数确定为更新后的第二定时器计数。2. If the data of the first station's sending frame stream does not contain data, the device is in an idle state. The first station subtracts the idle time of the sent frame stream from the timer count of the sent frame stream, obtains the remaining timer count of the sent frame stream, and determines the remaining timer count of the sent frame stream as The updated second timer counts.
可以理解地,若第一站点的发送帧流中没有包含数据处于空闲状态,说明当前的发送帧流没有新的数据需要发送,那么第一站点将发送帧流的定时器计数减去发送帧流的空闲时间,得到该发送帧流定时器剩余的时间计数,即更新后的第二定时器计数。上述更新后的第二定时器计数用于判断该发送帧流的定时器计数是否到期。It can be understood that if the data of the first station does not contain data in the idle state, indicating that there is no new data to be sent in the current transmission frame stream, the first station will subtract the transmission frame stream from the timer stream of the frame stream. The idle time is obtained by the remaining time count of the transmit frame stream timer, that is, the updated second timer count. The updated second timer count is used to determine whether the timer count of the transmitted frame stream has expired.
S304、当确定所述发送帧流的更新后的定时器计数到期时,将所述发送帧流直接进行释放。S304. When it is determined that the updated timer count of the sent frame stream expires, the sending frame stream is directly released.
需要说明的是,确定发送帧流的更新后的定时器计数到期,表明发送帧流的定时器计数到期,则不再占用该发送帧流,对其进行释放。It should be noted that the updated timer count of the sent frame stream is determined to be expired, indicating that the timer of the sent frame stream is expired, and the sent frame stream is no longer occupied, and is released.
S305、当所述第二站点的接收帧流没有接收到所述第一站点的发送帧流所发送的数据时,所述接收帧流的定时器计数不进行更新。S305. When the received frame stream of the second station does not receive the data sent by the sending frame stream of the first station, the timer count of the received frame stream is not updated.
可以理解地,若第二站点的接收帧流没有接收到第一站点的发送帧流所发送的数据,那么第二站点的接收帧流按照定时器计数进行时间衰减,不再对定时器技术进行重置等更新。It can be understood that if the received frame stream of the second station does not receive the data sent by the sending frame stream of the first station, the received frame stream of the second station is time-decayed according to the timer count, and the timer technology is no longer performed. Reset and other updates.
S306、当确定所述接收帧流的定时器计数到期时,对所述接收帧流进行释放。S306. When it is determined that the timer count of the received frame stream expires, release the received frame stream.
可以理解地,随着第二站点的接收帧流的定时器时间衰减,当其定时器计数时间衰减到零之后,表明其定时器计数到期,则不再对其进行占用,将接收帧流进行释放,同时其代表的数据传输链路也得到释放。It can be understood that, as the timer time of the received frame stream of the second station is attenuated, when its timer count time decays to zero, indicating that its timer count expires, it is no longer occupied, and the frame stream will be received. The release is performed while the data transmission link it represents is also released.
这里结合实例对数据传输链路中发送帧流和接收帧流的异步释放进行进一步说明:Here, an example is given to further explain the asynchronous release of the transmit frame stream and the receive frame stream in the data transmission link:
参见图11,站点C的发送帧流TX1用于发送数据给站点A,并由站点 A的RX2接收帧流接收站点C所发送的数据。当站点C没有数据发送给站点A,要释放发送帧流TX1时,当其定时器计数到期后直接释放发送帧流TX1,而此时站点A的接收帧流RX2由于定时器未到期依然保留。由于站点C的发送帧流TX1已经释放,站点A的接收帧流RX2没有接收数据,因此不会重置其定时器时间。当站点A的接收帧流RX2定时器计数到期时,该帧流也被释放。最终,站点C的发送帧流TX1和站点A的接收帧流RX2通过定时器计数都被释放,实现了数据传输链路中发送帧流和接收帧流的异步释放。Referring to FIG. 11, the transmission frame stream TX1 of the station C is used to send data to the site A, and is carried by the site. The RX2 receiving frame stream of A receives the data transmitted by station C. When station C has no data to send to station A, to release the transmission frame stream TX1, when the timer count expires, the transmission frame stream TX1 is directly released, and at this time, the received frame stream RX2 of station A remains unexpired due to the timer. Reserved. Since the transmission frame stream TX1 of the station C has been released, the received frame stream RX2 of the station A does not receive data, so its timer time is not reset. When the received frame stream RX2 timer count of station A expires, the frame stream is also released. Finally, the transmit frame stream TX1 of the station C and the receive frame stream RX2 of the station A are all released by the timer count, realizing the asynchronous release of the transmit frame stream and the received frame stream in the data transmission link.
本发明实施例提供了一种帧流控制方法,在站点没有数据传输时,利用帧流定时器计数确定到期的帧流,将到期的帧流进行释放,实现了帧流的异步释放。The embodiment of the present invention provides a frame stream control method. When there is no data transmission at the station, the frame stream timer is used to count and determine the expired frame stream, and the expired frame stream is released, thereby realizing the asynchronous release of the frame stream.
实施例四Embodiment 4
参见图12,其示出了本发明实施例提供一种帧流控制方法,用于通过空闲帧流抢占,实现帧流的资源复用,所述方法可以包括:Referring to FIG. 12, an embodiment of the present invention provides a frame flow control method, which is used to implement resource multiplexing of a frame stream by using idle frame stream preemption. The method may include:
S401、第一站点通过发送帧流将数据发送至第二站点。S401. The first station sends data to the second station by sending a frame stream.
可以理解地,第一站点作为发送的站点通过创建发送帧流将数据发送至第二站点。It can be understood that the first station transmits the data to the second station by creating a transmission frame stream as the transmitting station.
S402、所述第二站点接收所述第一站点发送的数据,并获取所述发送数据的源地址信息和目的地址信息。S402. The second station receives data sent by the first station, and acquires source address information and destination address information of the sent data.
需要说明的是,在第二站点接收到第一站点所发送的数据的同时会获取发送数据中携带的源地址信息和目的地址信息。其中,发送数据中除了携带的源地址信息和目的地址信息,可能还会携带数据业务分类信息等消息。It should be noted that, when the second station receives the data sent by the first station, the source address information and the destination address information carried in the sending data are acquired. The source data and the destination address information carried in the data may also carry information such as data service classification information.
S403、所述第二站点根据所述源地址信息和目的地址信息在自身查找是否有与所述发送帧流对接的接收帧流。 S403. The second station searches, according to the source address information and the destination address information, whether there is a received frame stream that is connected to the sending frame stream.
需要说明是,由于此时第二站点不能确定是否有已经分配好的接收帧流来对所接收的数据进行缓存,因此需要在其自身查找是否有与所述发送帧流对接的接收帧流。It should be noted that, since the second station cannot determine whether there is an already allocated received frame stream to buffer the received data at this time, it is necessary to find itself whether there is a received frame stream that is connected to the transmitted frame stream.
S404、当所述第二站点没有在自身查找到有与所述发送帧流对接的接收帧流时,判断其自身是否有未分配的接收帧流。S404. When the second station does not find the received frame stream that is connected to the sending frame stream, determine whether it has an unassigned received frame stream.
可以理解地,若第二站点没有在自身查找到有与发送帧流对应的接收帧流,则再次在其自身查找是否有未分配的接收帧流。其中,未分配的接收帧流是指,该接收帧流没有用作任何一个其他站点发送帧流对应的接收帧流,也就是说,未分配的接收帧流当前没有任何接收数据缓存的任务。It can be understood that if the second station does not find the received frame stream corresponding to the transmitted frame stream, it searches for itself whether there is an unallocated received frame stream. The unassigned received frame stream means that the received frame stream is not used as a received frame stream corresponding to any other station sending frame stream, that is, the unallocated received frame stream does not currently have any task of receiving the data buffer.
S405、当所述第二站点中没有未分配的接收帧流时,从其自身已分配的接收帧流中查找空闲的接收帧流。S405. When there is no unassigned received frame stream in the second station, look for an idle received frame stream from its own allocated received frame stream.
需要说明的是,若第二站点所有的接收帧流均被已分配,那么就需要从这些已分配的接收帧流中查找出空闲的接收帧流。其中,上述空闲的接收帧流是指,在已经分配的接收帧流中,当前暂时处于空闲状态,没有接收数据的接收帧流。It should be noted that if all the received frame streams of the second station are allocated, it is necessary to find an idle received frame stream from these allocated received frame streams. The idle received frame stream refers to a received frame stream that is currently in an idle state and has no received data in the already received received frame stream.
S406、所述第二站点在所述空闲的接收帧流中查找定时器计数剩余时间最短的临期空闲接收帧流,并将所述临期空闲接收帧流作为与所述发送帧流对接的接收帧流。S406. The second station searches, in the idle received frame stream, a temporary idle received frame stream whose timer counts the shortest remaining time, and uses the temporary idle received frame stream as a docking with the sending frame stream. Receive frame stream.
具体地,第二站点所查找出的空闲接收帧流可能不止一个,从所查找出的空闲的接收帧流中查找定时器计数剩余时间最短的临期空闲接收帧流,是为了将快要到期被释放的空闲接收帧流进行复用,将临期空闲接收帧流进行最大化的利用。Specifically, the second station may find more than one idle received frame stream, and look up the idle idle received frame stream with the shortest remaining time from the found idle received frame stream, so as to expire soon. The released idle received frame stream is multiplexed to maximize the utilization of the idle idle received frame stream.
S407、所述第二站点对所述临期空闲接收帧流进行初始化,使所述临期空闲接收帧流与所述发送帧流建立起数据传输链路。S407. The second station initializes the temporary idle receiving frame stream, so that the temporary idle receiving frame stream establishes a data transmission link with the sending frame stream.
可以理解地,找到与发送帧流对接的临期空闲接收帧流后,就可以使 临期空闲接收帧流与发送帧流建立起数据传输链路,用以实现对数据缓存的管理。Understandably, after finding the temporary idle received frame stream that is connected to the transmitted frame stream, it can be made The idle idle receive frame stream and the transmit frame stream establish a data transmission link for implementing data cache management.
S408、所述第二站点根据所述源地址信息和目的地址信息,从共享缓存池中分配数据缓存,接收所述发送帧流发送的数据。S408. The second station allocates a data buffer from the shared buffer pool according to the source address information and the destination address information, and receives data sent by the sending frame stream.
具体地,按照第一站点所发送数据的源地址信息和目的地址信息,第二站点从共享缓存池中分配数据缓存用以对所第一站点所发送的数据进行接收。Specifically, according to the source address information and the destination address information of the data sent by the first station, the second station allocates a data buffer from the shared buffer pool to receive the data sent by the first station.
S409、所述第二站点在数据接收完成后,将所述分配的数据缓存进行释放。S409. The second station releases the allocated data cache after the data receiving is completed.
具体地,由于数据缓存资源是有线的,因此第二站点在完成了数据的接收之后,即对所分配的数据缓存进行释放,将释放后的缓存用于其他数据的缓存。Specifically, since the data cache resource is wired, after the second station completes the data reception, the second data station releases the allocated data cache, and the released cache is used for buffering other data.
参见图13,这里结合实例对接收帧流的资源复用进行进一步说明:Referring to Figure 13, the resource multiplexing of the received frame stream is further illustrated by an example:
在资源紧张情况下,由空闲帧流抢占机制来实现接收帧流资源的复用。在图2中,站点A可用的发送和接收帧流只有两个,却要与三个站点B、C、D维持通讯,保持网络拓扑关系并进行数据传输。当站点A与站点D进行通讯时,就要根据实际情况按照上述过程获取可用的帧流。在图13所示的场景下,站点A收到站点D发送的数据报文后,提取报文的源地址和目的地址。然后根据源地址和目的地址查找是否有对应的接收帧流。若没有已分配的接收帧流与站点D的发送帧流进行对接,则查找站点A是否有未分配的接收帧流。若站点A没有未分配的接收帧流,则从已分配的帧流RX1和RX2中找出处于空闲状态且定时器剩余时间最短的接收帧流,这里假定满足上述条件的接收帧流为RX2。找到接收帧流RX2后,初始化接收帧流RX2,并与站点D建立数据传输链路,完成数据的接收处理。In the case of resource shortage, the idle frame stream preemption mechanism is used to implement multiplexing of the received frame stream resources. In Figure 2, Site A has only two transmit and receive frame streams available, but maintains communication with three sites B, C, and D, maintaining network topology relationships and transmitting data. When Site A communicates with Site D, it is necessary to obtain the available frame stream according to the above procedure according to the actual situation. In the scenario shown in Figure 13, after receiving the data packet sent by site D, site A extracts the source and destination addresses of the packet. Then, according to the source address and the destination address, it is searched whether there is a corresponding received frame stream. If no allocated received frame stream is docked with the transmitted frame stream of station D, then it is found whether station A has an unassigned received frame stream. If the station A has no unassigned received frame stream, the received frame stream in the idle state with the shortest remaining timer time is found from the allocated frame streams RX1 and RX2, and it is assumed here that the received frame stream satisfying the above condition is RX2. After the received frame stream RX2 is found, the received frame stream RX2 is initialized, and a data transmission link is established with the station D to complete the data receiving process.
需要说明的是,本发明实施例仅以接收帧流的资源复用为示例进行说 明,上述接收帧流的资源复用方法也同样适用于站点中发送帧流的资源复用。It should be noted that the embodiment of the present invention only uses the resource multiplexing of the received frame stream as an example. The resource multiplexing method for receiving the frame stream is also applicable to resource multiplexing of the transmitted frame stream in the station.
还需要说明的是,上述方法通过空闲帧流抢占,实现帧流的资源复用。对上述方案中因为被抢占而破坏的数据传输链路可以进行恢复。参见图14,结合实例对因为被抢占而破坏的数据传输链路的恢复过程进行进一步说明:It should be noted that the foregoing method implements resource multiplexing of the frame stream by preempting the idle frame stream. The data transmission link destroyed in the above scheme due to being preempted can be recovered. Referring to FIG. 14, the recovery process of the data transmission link that is destroyed due to preemption is further explained by using an example:
在上述接收帧流的资源复用实例中,由于站点A与站点D进行通讯的过程中,站点A从已分配的帧流RX1和RX2中占用了处于空闲状态且定时器剩余时间最短的接收帧流,因此原本站点C发送数据给站点A时建立起的数据传输链路因站点A的接收帧流RX2被抢占暂时被中断了,如图13所示,A的接收帧流RX2与站点D的TX1建立了新的数据传输链路。假定实施例三的实例中站点C的发送帧流在被释放前又有新的数据要发送给站点A,且站点A的接收帧流RX1恰好处于空闲状态。那么,与上述接收帧流的资源复用相同,站点A的空闲接收帧流RX1可以被初始化并用于接收来自站点C的数据。In the resource multiplexing example of the received frame stream, in the process of communication between the station A and the station D, the station A occupies the received frame in the idle state and the shortest remaining time of the timer from the allocated frame streams RX1 and RX2. Flow, so the data transmission link established when the original site C sends data to the site A is temporarily interrupted because the received frame stream RX2 of the site A is preempted, as shown in FIG. 13, the received frame stream RX2 of the A and the site D TX1 has established a new data transmission link. It is assumed that the transmission frame stream of the station C in the example of the third embodiment has new data to be sent to the station A before being released, and the received frame stream RX1 of the station A is just in an idle state. Then, like the resource multiplexing of the above received frame stream, the idle received frame stream RX1 of station A can be initialized and used to receive data from station C.
本发明实施例提供了一种帧流控制方法,在站点有数据传输时,抢占空闲的帧流对数据进行传输,实现了帧流的资源复用。The embodiment of the invention provides a frame stream control method, which preempts an idle frame stream to transmit data when the station has data transmission, and implements resource multiplexing of the frame stream.
实施例五Embodiment 5
基于上述实施例,参见图15,本发明实施例提供一种帧流控制装置15,所述帧流控制装置15包括:检查模块1501、释放模块1502和传输模块1503;其中,Based on the foregoing embodiment, referring to FIG. 15, an embodiment of the present invention provides a frame stream control apparatus 15 that includes: an inspection module 1501, a release module 1502, and a transmission module 1503;
所述检查模块1501,配置为当确定站点没有数据传输时,对所述站点中的发送/接收帧流的定时器计数进行检查;The checking module 1501 is configured to check a timer count of the transmit/receive frame stream in the station when it is determined that the station has no data transmission;
所述释放模块1502,配置为将定时器计数到期的所述发送/接收帧流进行释放; The release module 1502 is configured to release the transmit/receive frame stream whose timer count expires;
所述传输模块1503,配置为当确定所述站点有数据传输,并且确定所述站点中有空闲的对接帧流可用时,利用所述空闲的对接帧流建立数据传输链路对数据进行传输。The transmitting module 1503 is configured to: when it is determined that the station has data transmission, and determine that an idle docking frame stream is available in the station, use the idle docking frame stream to establish a data transmission link to transmit data.
本发明实施例一实施方式中,参见图16,所述装置还包括:获取模块1504;其中,In an embodiment of the present invention, referring to FIG. 16, the device further includes: an obtaining module 1504;
所述获取模块1504,配置为当确定站点没有数据传输时,对所述发送/接收帧流的定时器计数进行检查,获取更新后的定时器计数;The obtaining module 1504 is configured to: when it is determined that the station has no data transmission, check the timer count of the sent/received frame stream, and obtain an updated timer count;
所述释放模块1502,配置为当确定所述发送/接收帧流的更新后的定时器计数到期时,将所述发送/接收帧流直接进行释放。The release module 1502 is configured to directly release the transmit/receive frame stream when it is determined that the updated timer count of the transmit/receive frame stream expires.
本发明实施例一实施方式中,参见图17,所述检查模块1501包括:重置子模块1505、确定子模块1506和减法子模块1507;其中,In an embodiment of the present invention, referring to FIG. 17, the checking module 1501 includes: a reset submodule 1505, a determining submodule 1506, and a subtraction submodule 1507;
所述重置子模块1505,配置为若所述站点的发送/接收帧流中包含有数据,则所述站点重置所述发送/接收帧流的定时器计数;The reset submodule 1505 is configured to reset a timer count of the send/receive frame stream if the transmit/receive frame stream of the station includes data;
所述确定子模块1506,配置为将所述重置后的发送/接收帧流定时器计数确定为更新后的第一定时器计数;The determining sub-module 1506 is configured to determine the reset transmit/receive frame flow timer count as an updated first timer count;
所述减法子模块1507,配置为若所述站点的发送/接收帧流中没有包含数据处于空闲状态,则所述站点将所述发送/接收帧流的定时器计数减去所述发送/接收帧流的空闲时间,得到所述发送/接收帧流剩余的定时器计数;The subtraction sub-module 1507 is configured to: if the data in the transmit/receive frame stream of the station does not include data in an idle state, the station subtracts the timer count of the transmit/receive frame stream from the sending/receiving The idle time of the frame stream, and the remaining timer count of the transmitted/received frame stream is obtained;
所述确定子模块1506,还配置为将所述发送/接收帧流剩余的定时器计数确定为更新后的第二定时器计数。The determining sub-module 1506 is further configured to determine a timer count remaining in the transmit/receive frame stream as an updated second timer count.
本发明实施例一实施方式中,参见图16,所述装置还包括:查找模块1508;其中,In an embodiment of the present invention, referring to FIG. 16, the device further includes: a searching module 1508;
所述获取模块1504,配置为当确定所述站点有发送/接收数据时,获取所述发送/接收数据的源地址和目的地址;The obtaining module 1504 is configured to acquire a source address and a destination address of the sending/receiving data when determining that the station has sending/receiving data;
所述查找模块1508,配置为当所述站点根据所述源地址和目的地址确 定没有通过所述发送/接收帧流建立数据传输链路时,对所述空闲的对接帧流进行查找;The searching module 1508 is configured to: when the site is determined according to the source address and the destination address When the data transmission link is not established through the transmit/receive frame stream, the idle docked frame stream is searched;
所述传输模块1503,配置为利用所述空闲的对接帧流建立数据传输链路对所述发送/接收数据进行传输。The transmission module 1503 is configured to establish, by using the idle connected frame stream, a data transmission link to transmit the transmission/reception data.
本发明实施例一实施方式中,所述查找模块1508,配置为当所述站点根据源地址和目的地址确定没有通过发送/接收帧流建立数据传输链路时,在其自身查找未分配的对接帧流;In an embodiment of the present invention, the searching module 1508 is configured to: when the station determines that the data transmission link is not established by sending/receiving a frame stream according to the source address and the destination address, searching for unallocated docking itself Frame stream
以及,当确定所述站点没有未分配的对接帧流时,所述站点从其自身已分配的对接帧流中查找空闲的对接帧流。And, when it is determined that the station has no unassigned docked frame streams, the station looks for an idle docked frame stream from its own assigned docked frame stream.
本发明实施例一实施方式中,参见图16,所述装置还包括:分配模块1509;其中,In an embodiment of the present invention, referring to FIG. 16, the device further includes: an allocation module 1509;
所述查找模块1508,配置为从所述空闲的对接帧流中查找定时器计数剩余时间最短的临期空闲接收帧流;The searching module 1508 is configured to: search, from the idle docked frame stream, a temporary idle received frame stream whose timer counts the shortest remaining time;
所述分配模块1509,配置为所述站点根据所述发送/接收数据的源地址和目的地址利用所述临期空闲对接帧流建立所述数据传输链路,并根据所述源地址和目的地址从共享缓存池中分配数据缓存;The allocating module 1509 is configured to establish, by the station, the data transmission link by using the temporary idle docking frame stream according to the source address and the destination address of the sending/receiving data, and according to the source address and the destination address. Allocate data caches from the shared cache pool;
所述释放模块1502,配置为根据所述分配的数据缓存对所述发送/接收数据进行相对应的发送/接收操作,在完成所述发送/接收操作后释放所述分配的数据缓存。The release module 1502 is configured to perform a corresponding transmission/reception operation on the transmit/receive data according to the allocated data cache, and release the allocated data cache after completing the send/receive operation.
具体的,本发明实施例提供的帧流控制装置的说明可以参考实施例一至实施例四的帧流控制方法的说明,本发明实施例在此不再赘述。For a description of the frame flow control device provided by the embodiment of the present invention, reference may be made to the description of the frame flow control method in the first embodiment to the fourth embodiment, and details are not described herein again.
在实际应用中,所述检查模块1501、释放模块1502、传输模块1503、获取模块1504、重置子模块1505、确定子模块1506、减法子模块1507、查找模块1508和分配模块1509均可由位于帧流控制装置15中的中央处理器(CPU,Central Processing Unit)、微处理器(MPU,Micro Processor Unit)、 数字信号处理器(DSP,Digital Signal Processor)、或现场可编程门阵列(FPGA,Field Programmable Gate Array)等实现。In an actual application, the checking module 1501, the releasing module 1502, the transmitting module 1503, the obtaining module 1504, the reset submodule 1505, the determining submodule 1506, the subtracting submodule 1507, the searching module 1508, and the allocating module 1509 may all be located in a frame. a central processing unit (CPU, Central Processing Unit), a microprocessor (MPU, Micro Processor Unit) in the flow control device 15, Digital signal processor (DSP, Digital Signal Processor), or Field Programmable Gate Array (FPGA) implementation.
本发明实施例提供了一种帧流控制装置,在站点没有数据传输时,利用帧流定时器计数确定到期的帧流,将到期的帧流进行释放;在站点有数据传输时,抢占空闲的帧流对数据进行传输,实现了帧流的异步释放以及帧流的资源复用。The embodiment of the invention provides a frame stream control device, which uses a frame stream timer to count and determine an expired frame stream when the station has no data transmission, and releases the expired frame stream; when the station has data transmission, the preemption The idle frame stream transmits data, and realizes asynchronous release of the frame stream and resource multiplexing of the frame stream.
本发明实施例还提供一种计算机存储介质,其中存储有计算机可执行指令,该计算机可执行指令配置执行上述帧流控制方法。Embodiments of the present invention also provide a computer storage medium in which computer executable instructions are stored, the computer executable instructions being configured to perform the frame flow control method.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。 The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.
工业实用性Industrial applicability
采用本发明实施例,在站点没有数据传输时,利用帧流定时器计数确定到期的帧流,将到期的帧流进行释放;在站点有数据传输时,抢占空闲的帧流对数据进行传输,实现了帧流的异步释放以及帧流的资源复用。 In the embodiment of the present invention, when there is no data transmission at the station, the frame stream timer is used to count and determine the expired frame stream, and the expired frame stream is released; when the station has data transmission, preempt the idle frame stream to perform data transmission. Transmission, the asynchronous release of the frame stream and the resource multiplexing of the frame stream are realized.

Claims (13)

  1. 一种帧流控制方法,所述方法包括:A frame flow control method, the method comprising:
    当确定站点没有数据传输时,对所述站点中的发送/接收帧流的定时器计数进行检查,将定时器计数到期的所述发送/接收帧流进行释放;When it is determined that the station has no data transmission, checking a timer count of the transmit/receive frame stream in the station, and releasing the transmit/receive frame stream whose timer count expires;
    当确定所述站点有数据传输,并且确定所述站点中有空闲的对接帧流可用时,利用所述空闲的对接帧流建立数据传输链路对数据进行传输。When it is determined that the station has data transmission, and it is determined that there is an idle docking frame stream available in the station, the idle connection frame stream is used to establish a data transmission link to transmit data.
  2. 根据权利要求1所述的方法,其中,所述当确定站点没有数据传输时,对所述站点中的发送/接收帧流的定时器计数进行检查,将定时器计数到期的所述发送/接收帧流进行释放,包括:The method according to claim 1, wherein said determining, when said station has no data transmission, checking a timer count of a transmission/reception frame stream in said station, said transmission of expiration of a timer count/ Receive frame stream for release, including:
    当确定站点没有数据传输时,对所述发送/接收帧流的定时器计数进行检查,获取更新后的定时器计数;When it is determined that the station has no data transmission, checking a timer count of the sent/received frame stream, and obtaining an updated timer count;
    当确定所述发送/接收帧流的更新后的定时器计数到期时,将所述发送/接收帧流直接进行释放。When it is determined that the updated timer count of the transmission/reception frame stream expires, the transmission/reception frame stream is directly released.
  3. 根据权利要求2所述的方法,其中,所述当确定站点没有数据传输时,对所述发送/接收帧流的定时器计数进行检查,获取更新后的定时器计数,包括:The method according to claim 2, wherein when it is determined that the station has no data transmission, the timer count of the transmitted/received frame stream is checked, and the updated timer count is obtained, including:
    若所述站点的发送/接收帧流中包含有数据,则所述站点重置所述发送/接收帧流的定时器计数,将所述重置后的发送/接收帧流定时器计数确定为更新后的第一定时器计数;If the transmit/receive frame stream of the station includes data, the station resets a timer count of the transmit/receive frame stream, and determines the reset transmit/receive frame stream timer count as The updated first timer count;
    若所述站点的发送/接收帧流中没有包含数据处于空闲状态,则所述站点将所述发送/接收帧流的定时器计数减去所述发送/接收帧流的空闲时间,得到所述发送/接收帧流剩余的定时器计数,将所述发送/接收帧流剩余的定时器计数确定为更新后的第二定时器计数。If the transmit/receive frame stream of the station does not include data in an idle state, the station subtracts a timer count of the transmit/receive frame stream from an idle time of the transmit/receive frame stream, to obtain the The remaining timer count of the transmit/receive frame stream is determined, and the remaining timer count of the transmit/receive frame stream is determined as the updated second timer count.
  4. 根据权利要求1所述的方法,其中,所述当确定所述站点有数据传输,并且确定所述站点中有空闲的对接帧流可用时,利用所述空闲的 对接帧流对数据进行传输,包括:The method of claim 1 wherein said utilizing said idle when said determining that said station has data transmission and determining that a free docked frame stream is available in said station The docked frame stream transmits data, including:
    当确定所述站点有发送/接收数据时,获取所述发送/接收数据的源地址和目的地址;Obtaining a source address and a destination address of the transmitting/receiving data when it is determined that the station has transmitting/receiving data;
    当所述站点根据所述源地址和目的地址确定没有通过所述发送/接收帧流建立数据传输链路时,对所述空闲的对接帧流进行查找;When the station determines, according to the source address and the destination address, that the data transmission link is not established by using the transmit/receive frame stream, searching for the idle docked frame stream;
    利用所述空闲的对接帧流建立数据传输链路对所述发送/接收数据进行传输。The transmit/receive data is transmitted using the idle docked frame stream to establish a data transmission link.
  5. 根据权利要求4所述的方法,其中,所述当所述站点根据源地址和目的地址确定没有通过发送/接收帧流建立数据传输链路时,对所述空闲的对接帧流进行查找,包括:The method according to claim 4, wherein said searching, when said station determines, according to a source address and a destination address, that a data transmission link is not established by transmitting/receiving a frame stream, searching for said idle docked frame stream, including :
    当所述站点根据源地址和目的地址确定没有通过发送/接收帧流建立数据传输链路时,在其自身查找未分配的对接帧流;When the station determines, according to the source address and the destination address, that the data transmission link is not established by sending/receiving the frame stream, searching for the unallocated docking frame stream by itself;
    当确定所述站点没有未分配的对接帧流时,所述站点从其自身已分配的对接帧流中查找空闲的对接帧流。When it is determined that the station has no unassigned docked frame streams, the station looks for an idle docked frame stream from its own assigned docked frame stream.
  6. 根据权利要求4所述的方法,其中,所述利用所述空闲的对接帧流建立数据传输链路对所述发送/接收数据进行传输,包括:The method of claim 4, wherein said utilizing said idle docked frame stream to establish a data transmission link for transmitting said transmit/receive data comprises:
    从所述空闲的对接帧流中查找定时器计数剩余时间最短的临期空闲对接帧流;Obtaining, from the idle connected frame stream, a temporary idle docked frame stream whose timer counts the shortest remaining time;
    所述站点根据所述发送/接收数据的源地址和目的地址利用所述临期空闲对接帧流建立所述数据传输链路,并根据所述源地址和目的地址从共享缓存池中分配数据缓存;The station establishes the data transmission link by using the temporary idle docking frame stream according to the source address and the destination address of the sending/receiving data, and allocates a data buffer from the shared buffer pool according to the source address and the destination address. ;
    根据所述分配的数据缓存对所述发送/接收数据进行相对应的发送/接收操作,在完成所述发送/接收操作后释放所述分配的数据缓存。And correspondingly transmitting/receiving the transmission/reception data according to the allocated data buffer, releasing the allocated data cache after completing the transmitting/receiving operation.
  7. 一种帧流控制装置,所述装置包括:检查模块、释放模块和传输模块;其中, A frame flow control device, the device comprising: an inspection module, a release module, and a transmission module; wherein
    所述检查模块,配置为当确定站点没有数据传输时,对所述站点中的发送/接收帧流的定时器计数进行检查;The checking module is configured to check a timer count of a transmit/receive frame stream in the station when it is determined that the station has no data transmission;
    所述释放模块,配置为将定时器计数到期的所述发送/接收帧流进行释放;The release module is configured to release the transmit/receive frame stream whose timer count expires;
    所述传输模块,配置为当确定所述站点有数据传输,并且确定所述站点中有空闲的对接帧流可用时,利用所述空闲的对接帧流建立数据传输链路对数据进行传输。And the transmitting module is configured to: when it is determined that the station has data transmission, and determine that an idle docking frame stream is available in the station, use the idle docking frame stream to establish a data transmission link to transmit data.
  8. 根据权利要求7所述的装置,其中,所述装置还包括:获取模块;其中,The apparatus of claim 7, wherein the apparatus further comprises: an acquisition module; wherein
    所述获取模块,配置为当确定站点没有数据传输时,对所述发送/接收帧流的定时器计数进行检查,获取更新后的定时器计数;The acquiring module is configured to: when it is determined that the station has no data transmission, check a timer count of the sent/received frame stream, and obtain an updated timer count;
    所述释放模块,配置为当确定所述发送/接收帧流的更新后的定时器计数到期时,将所述发送/接收帧流直接进行释放。And the releasing module is configured to directly release the sent/received frame stream when it is determined that the updated timer count of the sent/received frame stream expires.
  9. 根据权利要求8所述的装置,其中,所述检查模块包括:重置子模块、确定子模块和减法子模块;其中,The apparatus according to claim 8, wherein the checking module comprises: a reset submodule, a determining submodule, and a subtraction submodule; wherein
    所述重置子模块,配置为若所述站点的发送/接收帧流中包含有数据,则所述站点重置所述发送/接收帧流的定时器计数;The reset submodule is configured to reset a timer count of the transmit/receive frame stream if the transmit/receive frame stream of the station includes data;
    所述确定子模块,配置为将所述重置后的发送/接收帧流定时器计数确定为更新后的第一定时器计数;The determining submodule is configured to determine the reset transmit/receive frame flow timer count as an updated first timer count;
    所述减法子模块,配置为若所述站点的发送/接收帧流中没有包含数据处于空闲状态,则所述站点将所述发送/接收帧流的定时器计数减去所述发送/接收帧流的空闲时间,得到所述发送/接收帧流剩余的定时器计数;The subtraction submodule is configured to: if the data in the transmit/receive frame stream of the station does not include data in an idle state, the station subtracts the timer count of the transmit/receive frame stream from the transmit/receive frame The idle time of the stream, and the remaining timer count of the transmitted/received frame stream is obtained;
    所述确定子模块,还配置为将所述发送/接收帧流剩余的定时器计数确定为更新后的第二定时器计数。 The determining submodule is further configured to determine a timer count remaining in the transmit/receive frame stream as an updated second timer count.
  10. 根据权利要求7所述的装置,其中,所述装置还包括:查找模块;其中,The apparatus of claim 7, wherein the apparatus further comprises: a lookup module; wherein
    所述获取模块,配置为当确定所述站点有发送/接收数据时,获取所述发送/接收数据的源地址和目的地址;The acquiring module is configured to acquire a source address and a destination address of the sending/receiving data when determining that the station has sending/receiving data;
    所述查找模块,配置为当所述站点根据所述源地址和目的地址确定没有通过所述发送/接收帧流建立数据传输链路时,对所述空闲的对接帧流进行查找;The searching module is configured to: when the station determines, according to the source address and the destination address, that the data transmission link is not established by using the sending/receiving frame stream, searching for the idle docking frame stream;
    所述传输模块,配置为利用所述空闲的对接帧流建立数据传输链路对所述发送/接收数据进行传输。The transmission module is configured to use the idle docked frame stream to establish a data transmission link to transmit the transmit/receive data.
  11. 根据权利要求10所述的装置,其中,The device according to claim 10, wherein
    所述查找模块,配置为当所述站点根据源地址和目的地址确定没有通过发送/接收帧流建立数据传输链路时,在其自身查找未分配的对接帧流;The searching module is configured to: when the station determines, according to the source address and the destination address, that the data transmission link is not established by sending/receiving the frame stream, searching for an unassigned docking frame stream in itself;
    以及,当确定所述站点没有未分配的对接帧流时,所述站点从其自身已分配的对接帧流中查找空闲的对接帧流。And, when it is determined that the station has no unassigned docked frame streams, the station looks for an idle docked frame stream from its own assigned docked frame stream.
  12. 根据权利要求10所述的装置,其中,所述装置还包括:分配模块;其中,The apparatus of claim 10, wherein the apparatus further comprises: an allocation module; wherein
    所述查找模块,配置为从所述空闲的对接帧流中查找定时器计数剩余时间最短的临期空闲对接帧流;The searching module is configured to: search for, from the idle connected frame stream, a temporary idle docking frame stream whose timer counts the shortest remaining time;
    所述分配模块,配置为所述站点根据所述发送/接收数据的源地址和目的地址利用所述临期空闲对接帧流建立所述数据传输链路,并根据所述源地址和目的地址从共享缓存池中分配数据缓存;The allocating module is configured to establish, by the station, the data transmission link by using the temporary idle docking frame stream according to the source address and the destination address of the sending/receiving data, and according to the source address and the destination address. Allocating data caches in the shared cache pool;
    所述释放模块,配置为根据所述分配的数据缓存对所述发送/接收数据进行相对应的发送/接收操作,在完成所述发送/接收操作后释放所述分配的数据缓存。 And the releasing module is configured to perform a corresponding sending/receiving operation on the sending/receiving data according to the allocated data buffer, and release the allocated data cache after completing the sending/receiving operation.
  13. 一种计算机存储介质,其中存储有计算机可执行指令,该计算机可执行指令配置执行上述权利要求1-6任一项的帧流控制方法。 A computer storage medium having stored therein computer executable instructions configured to perform the frame flow control method of any of the above claims 1-6.
PCT/CN2017/089080 2016-07-18 2017-06-19 Frame stream control method and device, and computer storage medium WO2018014688A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610570353.4A CN107634914B (en) 2016-07-18 2016-07-18 Frame stream control method and device
CN201610570353.4 2016-07-18

Publications (1)

Publication Number Publication Date
WO2018014688A1 true WO2018014688A1 (en) 2018-01-25

Family

ID=60991902

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/089080 WO2018014688A1 (en) 2016-07-18 2017-06-19 Frame stream control method and device, and computer storage medium

Country Status (2)

Country Link
CN (1) CN107634914B (en)
WO (1) WO2018014688A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112039686A (en) * 2019-06-03 2020-12-04 杭州海康威视系统技术有限公司 Data stream transmission control method and device, monitoring equipment and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110868242B (en) * 2018-10-12 2022-04-19 南方电网数字电网研究院有限公司 Data acquisition method based on asynchronous communication

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852196A (en) * 2005-11-03 2006-10-25 华为技术有限公司 Method for releasing idling-resource in WiMAX system
CN1984025A (en) * 2006-05-17 2007-06-20 华为技术有限公司 Method for releasing invalid-occupied resource and storage converter
WO2015148022A1 (en) * 2014-03-26 2015-10-01 Intel Corporation Queueing mechanism for client-side network traffic to reduce radio power consumption on mobile clients
CN105210349A (en) * 2014-03-27 2015-12-30 三菱电机株式会社 Wireless communication quality information processing apparatus and communication system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626334B (en) * 2009-08-10 2013-06-12 中兴通讯股份有限公司 Method and device for controlling communication bus
KR101511150B1 (en) * 2014-04-14 2015-04-10 아주대학교산학협력단 Media access control method using channel preemption in distributed cognitive radio network
CN105101451B (en) * 2015-06-26 2019-06-04 上海无线通信研究中心 The adaptive certainty back-off method and system of MAC layer in wireless distributed network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852196A (en) * 2005-11-03 2006-10-25 华为技术有限公司 Method for releasing idling-resource in WiMAX system
CN1984025A (en) * 2006-05-17 2007-06-20 华为技术有限公司 Method for releasing invalid-occupied resource and storage converter
WO2015148022A1 (en) * 2014-03-26 2015-10-01 Intel Corporation Queueing mechanism for client-side network traffic to reduce radio power consumption on mobile clients
CN105210349A (en) * 2014-03-27 2015-12-30 三菱电机株式会社 Wireless communication quality information processing apparatus and communication system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112039686A (en) * 2019-06-03 2020-12-04 杭州海康威视系统技术有限公司 Data stream transmission control method and device, monitoring equipment and storage medium
CN112039686B (en) * 2019-06-03 2023-08-04 杭州海康威视系统技术有限公司 Data stream transmission control method, device, monitoring equipment and storage medium

Also Published As

Publication number Publication date
CN107634914B (en) 2021-01-22
CN107634914A (en) 2018-01-26

Similar Documents

Publication Publication Date Title
JP7214891B2 (en) Method, related apparatus and computer program for realizing time-sensitive network data transmission
KR102410422B1 (en) Distributed processing in a network
US6134514A (en) Large-scale network simulation method and apparatus
WO2015196685A1 (en) Clock synchronization method and apparatus
WO2014079091A1 (en) Time-triggered ethernet-based data transmission method and node device
EP2108234A2 (en) A method for transmitting a data packet and a method of allocating a channel in a wireless network
WO2015117501A1 (en) Time synchronization method, programmable logic device, single board and network element
CN106155014A (en) A kind of industry internet field layer wideband bus real-time implementation method
Striffler et al. Time-sensitive networking in 5th generation cellular networks-current state and open topics
WO2022040847A1 (en) Communication data processing method and apparatus
WO2017049558A1 (en) Uplink data transmission method and device
JP2022522984A (en) Resource cycle configuration method and device, link processing and establishment method and device
WO2018014688A1 (en) Frame stream control method and device, and computer storage medium
CN1668020B (en) Method, apparatus and system for guaranteed packet delivery times in asynchronous networks
WO2021092839A1 (en) Data transmission method, electronic devices, system and storage medium
CN107508648A (en) Time triggered Ethernet substep time synchronized strategy based on functions of the equipments classification
CN101478826B (en) Communication scheduling method and system for wireless sensor network
CN114095901A (en) Communication data processing method and device
WO2014187089A1 (en) Data transmission system and method
CN114827781B (en) Network collaboration method, device, equipment and storage medium
CN108605006B (en) Control network system and node device thereof
JP2014033251A (en) Communication system and packet transmission method
EP3198437B1 (en) Static message placement in queues based on an apriori defined placement plan
WO2022006725A1 (en) Communication method and apparatus
CN116528369B (en) Private network base station control method, equipment and system

Legal Events

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

Ref document number: 17830323

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17830323

Country of ref document: EP

Kind code of ref document: A1