CN102523608B - Message sending method and device - Google Patents

Message sending method and device Download PDF

Info

Publication number
CN102523608B
CN102523608B CN201110440971.4A CN201110440971A CN102523608B CN 102523608 B CN102523608 B CN 102523608B CN 201110440971 A CN201110440971 A CN 201110440971A CN 102523608 B CN102523608 B CN 102523608B
Authority
CN
China
Prior art keywords
message
channel reservation
sending
channel
transmission
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201110440971.4A
Other languages
Chinese (zh)
Other versions
CN102523608A (en
Inventor
卢明勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Star Net Communication Co Ltd
Original Assignee
Fujian Star Net Communication Co Ltd
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 Fujian Star Net Communication Co Ltd filed Critical Fujian Star Net Communication Co Ltd
Priority to CN201110440971.4A priority Critical patent/CN102523608B/en
Publication of CN102523608A publication Critical patent/CN102523608A/en
Application granted granted Critical
Publication of CN102523608B publication Critical patent/CN102523608B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a message sending method and a message sending device which are used for accurately judging whether a channel reservation mechanism is started when a sending end of a wireless network sends a message, so that irrational speed reduction in the wireless network is avoided, the performance of the wireless network is improved, and the expense of a wireless network system is reduced. The message sending method comprises the following steps of: when the sending end sends the message at the time, judging whether a channel reservation parameter value stored at the sending end is less than a preset channel reservation parameter threshold value; if the channel reservation parameter value stored at the sending end is less than the preset channel reservation parameter threshold value, stopping the channel reservation mechanism; if the channel reservation parameter value stored at the sending end is not less than the preset channel reservation parameter threshold value, starting the channel reservation mechanism, and sending a channel reservation message to a receiving end; and after a confirm message of the channel reservation message, which is sent by the receiving end, is received, subtracting 1 from the channel reservation parameter value.

Description

A kind of file transmitting method and device
Technical field
The present invention relates to wireless communication technology field, relate in particular to a kind of file transmitting method and device.
Background technology
WLAN (WLAN, Wireless Local Area Network) provides a kind of wireless connections service of local area network (LAN), and wireless data access at a high speed can be provided in less scope.Access point (AP, Access Point) be a wireless transmitting-receiving equipments of WLAN (wireless local area network), the important composition equipment of WLAN (wireless local area network), AP can become wireless signal to send to terminal or other network equipments the data transaction receiving by cable network (as Internet), and the wireless signal receiving is converted to data and is forwarded to cable network.
As shown in Figure 1, for the schematic network structure of WLAN, terminal is generally to support the equipment of WLAN access, for example, with notebook computer or the smart mobile phone etc. of wireless network card, be associated with AP by wireless link upper, then, by Internet access services device, realize various application, for example, can carry out video-see by accessing video server, also can carry out FTP download etc. by access file host-host protocol (FTP, File Transfer Protocol) server.
General 802.11 agreements that adopt of WLAN, 802.11 protocol definitions the radio frames rate set allowing under different radio frequency pattern, stipulated the transmission rate of all kinds of radio frames.As all control frames and broadcast frame all send with basic rate collection, the Frame of clean culture, any one speed that management frames is all supported with both sides send.In WLAN (wireless local area network), owing to there is the impact of the factor such as multipath effect and doppler spread, therefore data have uncertainty at transmission time.If adopt fixing transmission rate, network performance will produce large fluctuating, and this had both been unfavorable for that system reaches maximum network throughput, can not guarantee service quality again well.And because of modulation system difference, two-forty has been used high-order modulating, reaching identical transmission success rate needs higher signal to noise ratio, that is to say that the transmission success rate of two-forty under same signal to noise ratio is lower than low rate, and the transmission success rate between different rates has very large difference.
In order to select best rate sending data on wireless link, must be according to the fine or not Dynamic Selection speed of the channel circumstance on wireless link, such as carrying out real-time adjustment according to the signal to noise ratio of wireless signal, message packet loss, message number of retransmissions etc.In many speed WLAN, the selection of speed is relevant to channel quality, and channel quality is by signal strength signal intensity (RSSI, Received signal strength Indication), the channel parameter performance such as message packet loss, throughput, therefore can and pass judgment on and select message transmitting spped rate according to the estimation to channel parameter.At present, mainly contain two classes for the rate adaptation algorithm of 802.11 agreements: a class is the method for directly measuring based on channel, for example, utilize the RSSI receiving to decide the transmission rate of transmitting terminal; One class is the method based on statistics, mainly contains two kinds of statistical methods: the statistics based on throughput and the statistics based on message packet loss, because the method for statistics realizes simply, most equipment adopts the method for statistics to select message transmitting spped rate at present.
But, in above-mentioned first kind method, depend merely on signal strength signal intensity and cannot reflect really channel quality, even if for example signal strength signal intensity is very high, but interference signal is when also very large, channel quality is also very poor; And in Equations of The Second Kind method, although the statistics based on message packet loss and throughput can reflect channel quality to a certain extent, but also there is certain defect: when message packet loss is not because of noise jamming but other reasons, for example, when conflict causes, even if this situation speed drops to minimum or packet loss can occur, simultaneously this irrational reduction of speed, has affected the performance of wireless network.
For the generation of avoiding a conflict, 802.11 agreements allow transmitting terminal to use request to send/allowed to send (RTS/CTS) mechanism to empty transit area.The use of RTS/CTS mechanism is optional, and still, the equipment of each support 802.11 agreements must be realized this function.By RTS/CTS mechanism, specify channel reservation.Its principle is as follows: 1) transmitting terminal sends RTS (request sends) frame, and RTS frame comprises receiving terminal address, sends the Frame time and send and confirm (ACK) frame time; 2) receiving terminal is responded with CTS frame, and when CTS frame is transmitting terminal channel reservation resource, the equipment that notice likely receives this CTS frame keeps mourning in silence.Due to RTS frame and CTS frame length very short, itself conflict probability reduce, therefore RTS/CTS mechanism can effectively run on exist conflict wireless environment in, still, RTS frame and CTS frame can extend message transmission procedure, bring certain overhead.Therefore, how can use exactly, selectively RTS/CTS mechanism, in improving wireless network performance, reduce overhead, become one of prior art technical problem urgently to be resolved hurrily.
Summary of the invention
The embodiment of the present invention provides a kind of file transmitting method and device, while sending message in order to transmitting terminal in wireless network, accurately judge whether to enable channel reservation mechanism, avoid the unreasonable reduction of speed in wireless network, in improving wireless network performance, reduce Radio Network System expense.
The embodiment of the present invention provides a kind of file transmitting method, comprising:
Transmitting terminal, in the time that this sends message, judges that whether the channel reservation parameter value of self storing is lower than the reserved parameter threshold of preset channel;
When being, close channel reservation mechanism in judged result;
In judged result while being no, open channel future mechanism, and to receiving terminal transmitting channel reserving message, and after receiving described receiving terminal acknowledge message that send, described channel reservation message, subtracts 1 by the channel reservation parameter value of self storage.
The embodiment of the present invention provides a kind of packet transmission device, comprising:
Memory cell, for pre-stored channel reservation parameter value;
The first judging unit, in the time that this sends message, judges that whether the channel reservation parameter value of described cell stores is lower than the reserved parameter threshold of preset channel;
Closing unit, in the judged result of described the first judging unit when being, close channel reservation mechanism;
Open unit, when being no in the judged result of described the first judging unit, open channel future mechanism;
Transmitting element, for after opening unit open channel future mechanism, to receiving terminal transmitting channel reserving message;
Receiving element, for receiving described receiving terminal acknowledge message that send, described channel reservation message;
The first counting unit, for after receiving the acknowledge message of described channel reservation message, the channel reservation parameter value that self is stored subtracts 1.
The file transmitting method that the embodiment of the present invention provides and device, by pre-stored channel reservation parameter value, make transmitting terminal before sending message, first judge that whether channel reservation parameter value is lower than the reserved parameter threshold of preset channel, if, explanation has reached the maximum times that continuous use channel reservation mechanism is carried out message transmission, and this message sends will close channel reservation mechanism; If not, transmitting terminal can continue to use channel reservation mechanism to carry out message transmission, and open channel future mechanism, to receiving terminal transmitting channel reserving message, after the acknowledge message of channel reservation message that receives receiving terminal transmission, channel reservation parameter value is subtracted to 1, like this, by the setting to channel reservation parameter value and renewal, in the time that transmitting terminal sends message, can accurately judge whether open channel future mechanism, avoid the unreasonable reduction of speed in wireless network, in improving wireless network performance, reduce Radio Network System expense.
Other features and advantages of the present invention will be set forth in the following description, and, partly from specification, become apparent, or understand by implementing the present invention.Object of the present invention and other advantages can be realized and be obtained by specifically noted structure in write specification, claims and accompanying drawing.
Accompanying drawing explanation
Fig. 1 is in prior art, the schematic network structure of WLAN;
Fig. 2 is in the embodiment of the present invention, concealed nodes scene schematic diagram;
Fig. 3 is in the embodiment of the present invention, the scene schematic diagram of Campus Wireless LAN;
Fig. 4 is in the embodiment of the present invention, the operation principle schematic diagram of RTS/CTS mechanism;
Fig. 5 is in the embodiment of the present invention, the implementing procedure schematic diagram of file transmitting method;
Fig. 6 is in the embodiment of the present invention, the entire flow schematic diagram of a message transmission;
Fig. 7 is in the embodiment of the present invention, the structural representation of packet transmission device.
Embodiment
Different from wired local area network, media access control layer (MAC, the Medium Access Control) agreement of WLAN can not detect the conflict in transmission.For this reason, what in WLAN (wireless local area network), adopt is that (CSMA/CA) mechanism is avoided in carrier sense/conflict, and whether each website detects channel by perception carrier wave idle, and the conflict of channel in the time of transfer of data just can have been avoided like this.CSMA/CA communication mode is closely linked the division of time-domain and frame format, guarantees that a certain moment only has website to send.On the one hand, carrier sense---check that whether medium is idle; On the other hand, avoid colliding---by random time wait, it is minimum that the probability that signal conflict is occurred is reduced to.
Under CSMA/CA method, signal transmission flow is specific as follows: certain work station (STA) is before sending message, whether idlely detect channel, and whether free time is greater than the frame period time (IFS) of IEEE802.11 regulation, if not, this STA just postpones access, until the current end of transmission.Afterwards, namely once successfully transmission just finishes, at this moment the incidence of conflicting is the highest, because all STA to be sent postpone to wait for the arrival in this moment, for further reducing conflict, STA selects random back (Backoff) again to postpone access, and Backofftime counter reciprocal in detecting channel, until its value is decremented to 0.At this moment,, if the Backofftime time that other work station is selected is shorter, it has just won channel occupancy power.If this STA detects again channel busy, have to again postpone access, otherwise, if channel idle sends message.
IEEE802.11 has stipulated computing formula specially to determining of Backofftime:
Backofftime=Random()*aSlotTime
Here, Backofftime represents back off time, and Random () represents the random random integers between [0, CW] that produce, and has peaked restriction.ASlotTime represents total propagation delay, and its value depends on physical layer; CW is " competition window " parameter, and between aCWmin and aCWmax, the initial value of CW parameter is taken as aCWmin, and when each transmission is unsuccessful later, CW value is with regard to double increase, until reach aCWmax.From above process, can find out that CSMA/CA mechanism still has certain probability to clash, particularly in high density subordinate's wireless network environment.
It is the existence of concealed nodes that another one exists the scene of conflict, as shown in Figure 2, distant between A and C, cannot receive the other side's radio wave.From the angle of A, C belongs to concealed nodes.Suppose that A forward B passes data, C also will pass data to B.Because A can't detect the existence of C, cause A and C simultaneously to B transmission data.If send data more than two nodes simultaneously, will, in the conflict of B place, when receiving data, B make a mistake.Because wireless link is semiduplex, node conflict of not knowing in sending exists, and therefore in the time of A and C transmission long message, clashes and will cause the waste of bandwidth.In WLAN (wireless local area network), the collision problem causing due to concealed nodes is difficult to monitor, because normally half-duplex mode of operation of wireless transceiver, cannot while transceiving data.
The existence of concealed nodes, has a great impact for the practical application of wireless network, and the situation that there will be some wireless terminal business almost cannot use even may show as the problem of wireless connections.The place covering in some high density, for example Campus Wireless LAN, may need an AP signal can cover 4-6 dormitory, is probably concealed nodes for the terminal in AP two ends, as shown in Figure 3, terminal 1 and terminal 2 concealed nodes each other.
For the generation of avoiding a conflict, 802.11 agreements allow transmitting terminal to use request to send/allowed to send (RTS/CTS) mechanism to empty transit area.As shown in Figure 4, for the operation principle schematic diagram of RTS/CTS mechanism, transmitting terminal is in the time that needs send message to receiving terminal, after waiting for through the distributed coordination frame period time (DIFS), send RTS frame to receiving terminal, receiving terminal through the short frame period time (SIFS) afterwards, return to CTS frame to transmitting terminal, transmitting terminal is after through a SIFS, send Frame to receiving terminal, receiving terminal is after receiving all Frames, and send ACK acknowledgement frame to transmitting terminal after a SIFS, after the SIFS waiting for from receiving terminal starts to send ACK frame to receiving terminal to transmitting terminal, in the duration between a DIFS, other transmitting terminal is all in postponing Access status, afterwards, each transmitting terminal sends data to receiving terminal after waiting for by competition window.As shown in Figure 4, RTS frame and CTS frame can extend message transmission procedure, bring certain overhead, therefore, should for example, needs (having conflict) in the situation that, re-use RTS/CTS mechanism as far as possible, rather than all use in any case.
Based on this, the embodiment of the present invention provides a kind of file transmitting method and device, in order to accurately to judge whether open channel future mechanism, avoids the unreasonable reduction of speed in wireless network, in improving wireless network performance, reduces Radio Network System expense.
It should be noted that, the channel reservation mechanism that the embodiment of the present invention relates to includes but not limited to RTS/CTS mechanism.
Below in conjunction with Figure of description, the application's preferred embodiment is described, be to be understood that, preferred embodiment described herein is only for description and interpretation the application, and be not used in restriction the application, and in the situation that not conflicting, the feature in embodiment and embodiment in the application can combine mutually.
As shown in Figure 5, the implementing procedure schematic diagram of the file transmitting method providing for the embodiment of the present invention, comprises the following steps:
S501, transmitting terminal, in the time that this sends message, judge that whether the channel reservation parameter value of self storing is lower than channel reservation parameter threshold, if so, and execution step S502, if not, execution step S503;
For example, channel reservation parameter threshold can be set to zero.
S502, close channel reservation mechanism;
S503, open channel future mechanism, and to receiving terminal transmitting channel reserving message, and after receiving this receiving terminal acknowledge message that send, channel reservation message, this channel reservation parameter value is subtracted to 1.
When concrete enforcement, transmitting terminal can pre-stored channel reservation information table, and a kind of form wherein can be as shown in table 1:
Table 1
Parameter name Explanation Parameter value
MinThSucc The successful threshold value of minimum transmission 10
MaxThSucc The successful threshold value of maximum transmission 60
ThSucc Send continuously number of success threshold value [MinThSucc,MaxThSucc]
ThFail Send continuously frequency of failure threshold value 2
nSuccess Send continuously successful counter [0,ThSucc]
nFailed Send continuously fail counter [0,ThFail]
MinRtsWnd Channel reservation parameter value minimum value 1
MaxRtsWnd Channel reservation parameter value maximum 40
RtsWnd Channel reservation parameter preset value [MinRtsWnd,MaxRtsWnd]
rtsCounter The continuous usage counter of RTS/CTS [0,RtsWnd]
The parameter value of each parameter can arrange according to the actual conditions of radio network information channel quality, and the parameter value providing in table 1 is only a kind of example, is not used in limitation of the invention, wherein:
The successful threshold value of minimum transmission refers to the minimum value that continuous transmission number of success threshold value can arrange;
The successful threshold value of maximum transmission refers to the maximum that continuous transmission number of success threshold value can arrange;
Sending continuously number of success threshold value is to specify big or small value, the span of its value is [MinThSucc, MaxThSucc], in the time that continuous transmission number of success reaches this threshold value, can carry out raising speed transmission upper while once sending message, in the embodiment of the present invention, send continuously number of success threshold value and be the first predetermined threshold value;
Send continuously successful counter and be used for adding up continuous transmission number of success, its span is 0~send continuously number of success threshold value, when continuous transmission number of success reaches while sending number of success threshold value, by zero clearing, and restarts counting;
In like manner, send continuously fail counter and be used for adding up the continuous transmission frequency of failure, its span is 0~send continuously frequency of failure threshold value, in the time that the continuous transmission frequency of failure reaches continuous transmission frequency of failure threshold value, and determine that this sends message not when open channel future mechanism, while sending message, need to carry out reduction of speed transmission next time, in the embodiment of the present invention, send continuously frequency of failure threshold value and be the second predetermined threshold value;
Channel reservation parameter value minimum value refers to the minimum value that channel reservation parameter preset value can arrange;
Channel reservation parameter value maximum refers to the maximum that channel reservation parameter preset value can arrange;
Channel reservation parameter preset value is to specify big or small value, refers to the number of times that can use continuously RTS/CTS mechanism, and the span of its value is [MinRtsWnd, MaxRtsWnd];
The continuous usage counter of RTS/CTS is for adding up the continuous access times after RTS/CTS mechanism is opened, its span is 0~channel reservation parameter preset value, when RTS/CTS mechanism access times reach after channel reservation parameter preset value, the continuous usage counter zero clearing of RTS/CTS.
In concrete enforcement, after this message is sent completely, can also comprise the following steps:
Step 1, transmitting terminal judge whether this message sends successful, if so, and execution step two, if not, execution step three;
Step 2, transmitting terminal will send number of success increase once continuously;
Step 3, transmitting terminal will send frequency of failure increase once continuously.
When concrete enforcement, if this message sends successfully, and after will sending continuously number of success increase once, transmitting terminal can continue to judge whether continuous transmission number of success exceedes default continuous transmission number of success threshold value, exceed default continuous transmission number of success threshold value if send continuously number of success, transmitting terminal while once sending message, can carry out raising speed transmission upper.This is because if all successes of continuous several times message transmission illustrate that radio network information channel condition is better, can carry out raising speed transmission in the time that send next time.Simultaneously, for fear of clashing, cause sending unsuccessfully, preferably, in the embodiment of the present invention, transmitting terminal is upper while once sending message, the no matter last channel reservation mechanism of whether having opened while sending message, all by open channel future mechanism, simultaneously, channel reservation parameter value is reset to preset value, for example, preset value can be set to 20 times, be that transmitting terminal at most can continuous 20 open channel future mechanisms, every use channel reservation mechanism sends a message, and after the acknowledge message of channel reservation message that receives receiving terminal transmission, channel reservation parameter value will subtract 1, for example, until (be kept to channel reservation parameter threshold, can be set to 0) till, do not exceed default continuous transmission number of success threshold value if send continuously number of success, transmitting terminal while once sending message, keeps this transmission rate constant upper.
Preferably, if this message sends unsuccessfully, transmitting terminal by continuous frequency of failure increase once, simultaneously, transmitting terminal further judges that this sends message and whether has opened channel reservation mechanism, if this sends message and has opened future mechanism, transmitting terminal need to continue to judge whether the continuous transmission frequency of failure has reached default continuous transmission frequency of failure threshold value, if reached continuous transmission frequency of failure threshold value, transmitting terminal will carry out reduction of speed transmission upper while once sending message, if do not reach continuous transmission frequency of failure threshold value, while sending message, keep this transmission rate constant next time.This be because, opening in channel reservation mechanism situation, still send message failure, the failed reason of explanation transmission is not because conflict, but because radio network information channel condition declines to be caused, so transmitting terminal needs reduction of speed to send upper while once sending message, meanwhile, close channel reservation mechanism; If this message sends not open channel future mechanism, transmitting terminal is at upper open channel future mechanism while once sending message.This be because, open channel future mechanism not when this message sends, send unsuccessfully may be because conflict causes for this message, thus while sending message next time by open channel future mechanism, preferably, the now success rate in order to guarantee that message sends, transmitting terminal can increase channel reservation parameter preset value, for example, can be set to original preset multiple by channel reservation parameter preset value, for example original preset value is set to 20, can be set to 40 by preset value now.
Especially, in the embodiment of the present invention, if this message sends unsuccessfully, transmitting terminal is by after continuous frequency of failure increase once, can also first judge whether the continuous transmission frequency of failure has reached the 3rd predetermined threshold value, if reached the 3rd predetermined threshold value, continue to judge that this message sends the channel reservation mechanism of whether having opened, if opened channel reservation mechanism, illustrate that current network channel condition is poor, therefore, can control and while sending message, carry out reduction of speed transmission next time, and close channel reservation mechanism, if this message sends not open channel future mechanism, while sending message next time, open channel future mechanism, and increase channel reservation parameter preset value, do not reach the 3rd predetermined threshold value if send continuously the frequency of failure,, in the time that send message next time, can control transmission next time message rate and remain unchanged.
In order to understand better the present invention, below the complete procedure that sends take message as example, the implementation process of the embodiment of the present invention is described, in the embodiment of the present invention, be set to 0 as example take channel reservation parameter threshold.
As shown in Figure 6, be the complete procedure of a message transmission, can comprise the following steps:
S601, transmitting terminal, in the time that this sends message, judge whether the channel reservation parameter of self storing is 0, if so, and execution step S602, otherwise execution step S603;
S602, transmitting terminal are closed channel reservation mechanism, and perform step S604;
S603, transmitting terminal open channel future mechanism, and to receiving terminal transmitting channel reserving message, and after receiving this receiving terminal acknowledge message that send, channel reservation message, channel reservation parameter value is subtracted to 1;
S604, transmitting terminal judge whether this message sends successful, if so, and execution step S605, if not, execution step S606;
S605, transmitting terminal will send continuously number of success increase once, and perform step S607;
S606, transmitting terminal will send continuously frequency of failure increase once, and perform step S610;
Whether S607, the transmitting terminal further continuous number of success that sends of judgement reach the first predetermined threshold value, if so, and execution step S608, if not, execution step S609;
When sending message next time, S608, transmitting terminal control carries out raising speed transmission;
When concrete enforcement, transmitting terminal, in the time that upper once raising speed sends message, by open channel future mechanism, and resets to preset value by channel reservation parameter value.
S609, transmitting terminal control keep this transmission rate constant next time while sending message;
S610, transmitting terminal further judge that this sends message and whether has opened channel reservation mechanism, if so, and execution step S611, if not, execution step S614;
S611, transmitting terminal continue the continuous frequency of failure that sends of judgement and whether have reached the second predetermined threshold value, if so, and execution step S612, if not, execution step S613;
When sending message next time, S612, transmitting terminal control carries out reduction of speed transmission;
When concrete enforcement, transmitting terminal, in the time that upper once reduction of speed sends message, will be closed channel reservation mechanism.
S613, transmitting terminal control keep this transmission rate constant next time while sending message;
S614, transmitting terminal in the time that send message next time, open channel future mechanism, and increase channel reservation parameter value preset value.
When concrete enforcement, step S611 can carry out prior to step S610, in the time that this message sends unsuccessfully, first whether the continuous frequency of failure that sends of judgement exceedes the 3rd predetermined threshold value, exceed the 3rd predetermined threshold value if send continuously the frequency of failure, perform step again S610, continue to judge that this message sends the channel reservation mechanism of whether having opened, correspondingly, if this message sends the channel reservation mechanism of having opened, while controlling transmission next time message, carry out reduction of speed transmission, if this message sends not open channel future mechanism, open channel future mechanism when send message next time, and increase channel reservation parameter preset value, be no more than the 3rd predetermined threshold value if send continuously the frequency of failure, control while sending message next time and keep this transmission rate constant.
Can be found out by said process, the file transmitting method that the embodiment of the present invention provides, in the time carrying out raising speed transmission message, by open channel future mechanism, or last in the time of open channel future mechanism not, send message when failure by open channel future mechanism, and by the continuous access times of channel reservation parameter preset value control open channel future mechanism that arrange, if transmitting terminal is found channel reservation parameter value and is kept at 0 o'clock, to close channel reservation mechanism, or while carrying out reduction of speed transmission message, to close channel reservation mechanism, thereby can reasonably judge whether to need open channel future mechanism, avoid increasing overhead because using too much channel reservation mechanism, simultaneously, avoid in the time occurring that message sends unsuccessfully by reasonable use channel reservation mechanism, adopt simply reduction of speed to improve the success rate that message sends, thereby, avoid reduction of speed unreasonably, improve wireless network performance.
Based on same inventive concept, a kind of packet transmission device is also provided in the embodiment of the present invention, because the principle that this device is dealt with problems is similar to above-mentioned file transmitting method, therefore the enforcement of this device can be referring to the enforcement of above-mentioned file transmitting method, repeats part and repeat no more.
As shown in Figure 7, the structural representation of the packet transmission device providing for the embodiment of the present invention, comprising:
Memory cell 701, for pre-stored channel reservation parameter value;
The first judging unit 702, for sending when message at this, judges that whether channel reservation parameter value that memory cell 701 stores is lower than channel reservation parameter threshold;
Closing unit 703, in the judged result of the first judging unit 702 when being, close channel reservation mechanism;
Open unit 704, when being no in the judged result of the first judging unit 702, open channel future mechanism;
Transmitting element 705, for after opening unit 704 open channel future mechanisms, to receiving terminal transmitting channel reserving message;
Receiving element 706, for receiving receiving terminal acknowledge message that send, channel reservation message;
The first counting unit 707, for after receiving the acknowledge message of channel reservation message, subtracts 1 by channel reservation parameter value.
When concrete enforcement, packet transmission device, can also comprise:
The second counting unit, in the time that this message sends successfully, will send number of success increase once continuously;
The second judging unit, for further judging whether send continuously number of success exceedes the first predetermined threshold value;
First rate control unit, in the judged result of the second judging unit when being, be controlled at and while sending message, carry out raising speed transmission next time;
The second speed control unit, when being no in the judged result of the second judging unit, controlling while sending message next time and keeps this transmission rate constant.
In concrete enforcement, packet transmission device, can also comprise reset cell, wherein:
Open unit 704, if also carry out raising speed when sending message while sending next time, open channel future mechanism when message once on sending;
Reset cell, for resetting to preset value by described channel reservation parameter value.
In concrete enforcement, open unit 704, also for sending unsuccessfully at this message and definite this transmission message not when open channel future mechanism, open channel future mechanism;
Reset cell, also for increasing channel reservation parameter preset value.
In concrete enforcement, packet transmission device, can also comprise:
The 3rd counting unit, in the time that this message sends unsuccessfully, will send frequency of failure increase once continuously;
The 3rd judging unit, while having opened channel reservation mechanism, continues the continuous transmission of the judgement frequency of failure and whether has reached the second predetermined threshold value for definite this transmission message;
Third speed control unit, in the judged result of the 3rd judging unit when being, control and while sending message, carry out reduction of speed transmission next time;
Four-speed rate control unit, when being no in the judged result of the 3rd judging unit, controlling while sending message next time and keeps current transmission rate constant.
In concrete enforcement, packet transmission device, can also comprise the 4th counting unit, the 4th judging unit and the 5th speed control unit and the 6th speed control unit, wherein:
The 4th counting unit, in the time that this message sends unsuccessfully, will send frequency of failure increase once continuously;
The 4th judging unit, in the time that the transmission frequency of failure has reached the 3rd predetermined threshold value continuously, continues to judge that this sends message and whether has opened channel reservation mechanism;
The 5th speed control unit, in the judged result of the 4th judging unit when being, control and while sending message, carry out reduction of speed transmission next time;
Open unit 704, when being no in the judged result of the 4th judging unit, open channel future mechanism;
Reset cell, in the time opening unit open channel future mechanism, increases channel reservation parameter preset value;
The 6th speed control unit, in the time that the transmission frequency of failure does not reach the 3rd predetermined threshold value continuously, controls while sending message next time and keeps this transmission rate constant.
In concrete enforcement, if closing unit 703 also carries out reduction of speed when sending message while sending next time, on sending, once close channel reservation mechanism when message.
Those skilled in the art should understand, the application's embodiment can be provided as method, system or computer program.Therefore, the application can adopt complete hardware implementation example, completely implement software example or the form in conjunction with the embodiment of software and hardware aspect.And the application can adopt the form at one or more upper computer programs of implementing of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) that wherein include computer usable program code.
The application is with reference to describing according to flow chart and/or the block diagram of the method for the embodiment of the present application, equipment (system) and computer program.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction that makes to carry out by the processor of computer or other programmable data processing device produces the device for realizing the function of specifying at flow process of flow chart or multiple flow process and/or square frame of block diagram or multiple square frame.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of specifying in flow process of flow chart or multiple flow process and/or square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computer or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of specifying in flow process of flow chart or multiple flow process and/or square frame of block diagram or multiple square frame on computer or other programmable devices.
Although described the application's preferred embodiment, once those skilled in the art obtain the basic creative concept of cicada, can make other change and modification to these embodiment.So claims are intended to be interpreted as comprising preferred embodiment and fall into all changes and the modification of the application's scope.
The file transmitting method that the embodiment of the present invention provides and device, by pre-stored channel reservation parameter value, make transmitting terminal before sending message, first judge that whether channel reservation parameter value is lower than the reserved parameter threshold of preset channel, if, explanation has reached the maximum times that continuous use channel reservation mechanism is carried out message transmission, and this message sends will close channel reservation mechanism; If not, transmitting terminal can continue to use channel reservation mechanism to carry out message transmission, and open channel future mechanism, to receiving terminal transmitting channel reserving message, after the acknowledge message of channel reservation message that receives receiving terminal transmission, channel reservation parameter value is subtracted to 1, like this, by the setting to channel reservation parameter value and renewal, in the time that transmitting terminal sends message, can accurately judge whether open channel future mechanism, avoid the unreasonable reduction of speed in wireless network, in improving wireless network performance, reduce Radio Network System expense.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.

Claims (12)

1. a file transmitting method, is characterized in that, comprising:
Transmitting terminal, in the time that this sends message, judges that whether the channel reservation parameter value of self storing is lower than the reserved parameter threshold of preset channel;
When being, close channel reservation mechanism in judged result;
In judged result while being no, open channel future mechanism, and to receiving terminal transmitting channel reserving message, and after receiving described receiving terminal acknowledge message that send, described channel reservation message, described channel reservation parameter value is subtracted to 1;
If this message sends unsuccessfully, described transmitting terminal will send frequency of failure increase once continuously; And
Determine when this transmission message has been opened channel reservation mechanism, continue the continuous transmission of the judgement frequency of failure and whether reached the second predetermined threshold value;
If so when, control sends message next time, carry out reduction of speed transmission;
If not, control while sending message next time and keep this transmission rate constant.
2. the method for claim 1, is characterized in that, also comprises:
If this message sends successfully, described transmitting terminal will send number of success increase once continuously; And
Further judge whether described continuous transmission number of success exceedes the first predetermined threshold value;
When being, when sending message next time, described transmitting terminal control carries out raising speed transmission in judged result;
In judged result, while being no, described transmitting terminal control keeps this transmission rate constant while sending message next time.
3. method as claimed in claim 2, is characterized in that, if while carrying out raising speed transmission while sending message, also comprise next time:
Described transmitting terminal open channel future mechanism when message once on sending; And
Described channel reservation parameter value is reset to preset value.
4. the method for claim 1, is characterized in that, also comprises:
If this message sends unsuccessfully and described transmitting terminal determines that this sends message not when open channel future mechanism, open channel future mechanism, and increase described channel reservation parameter preset value.
5. the method for claim 1, is characterized in that, also comprises:
If this message sends unsuccessfully, described transmitting terminal will send frequency of failure increase once continuously; And
In the time that the described continuous transmission frequency of failure reaches the 3rd predetermined threshold value, continue to judge that this sends message and whether has opened channel reservation mechanism;
If so when, control sends message next time, carry out reduction of speed transmission;
If not, open channel future mechanism, and increase described channel reservation parameter preset value;
In the time that the described continuous transmission frequency of failure does not reach the 3rd predetermined threshold value, control while sending message next time and keep this transmission rate constant.
6. method as claimed in claim 5, is characterized in that, if carry out reduction of speed while sending message while sending next time, described transmitting terminal is once closed channel reservation mechanism when message on sending.
7. a packet transmission device, is characterized in that, comprising:
Memory cell, for pre-stored channel reservation parameter value;
The first judging unit, in the time that this sends message, judges that whether the channel reservation parameter value of described cell stores is lower than the reserved parameter threshold of preset channel;
Closing unit, in the judged result of described the first judging unit when being, close channel reservation mechanism;
Open unit, when being no in the judged result of described the first judging unit, open channel future mechanism;
Transmitting element, for after opening unit open channel future mechanism, to receiving terminal transmitting channel reserving message;
Receiving element, for receiving described receiving terminal acknowledge message that send, described channel reservation message;
The first counting unit, for after receiving the acknowledge message of described channel reservation message, subtracts 1 by described channel reservation parameter value;
The 3rd counting unit, in the time that this message sends unsuccessfully, will send frequency of failure increase once continuously;
The 3rd judging unit, while having opened channel reservation mechanism, continues the continuous transmission of the judgement frequency of failure and whether has reached the second predetermined threshold value for definite this transmission message;
Third speed control unit, in the judged result of described the 3rd judging unit when being, control and while sending message, carry out reduction of speed transmission next time;
Four-speed rate control unit, when being no in the judged result of described the 3rd judging unit, controlling while sending message next time and keeps current transmission rate constant.
8. device as claimed in claim 7, is characterized in that, also comprises:
The second counting unit, in the time that this message sends successfully, will send number of success increase once continuously;
The second judging unit, for further judging whether described continuous transmission number of success exceedes the first predetermined threshold value;
First rate control unit, in the judged result of described the second judging unit when being, be controlled at and while sending message, carry out raising speed transmission next time;
The second speed control unit, when being no in the judged result of described the second judging unit, controlling while sending message next time and keeps this transmission rate constant.
9. device as claimed in claim 8, is characterized in that, also comprises: reset cell, wherein:
Described unlatching unit, if also carry out raising speed when sending message while sending next time, open channel future mechanism when message once on sending;
Described reset cell, for resetting to preset value by described channel reservation parameter value.
10. device as claimed in claim 9, is characterized in that,
Described unlatching unit, also for sending unsuccessfully at this message and determining that this sends message not when open channel future mechanism, open channel future mechanism;
Described reset cell, also for increasing described channel reservation parameter preset value.
11. devices as claimed in claim 9, is characterized in that, also comprise the 4th counting unit, the 4th judging unit, the 5th speed control unit and the 6th speed control unit, wherein:
The 4th counting unit, in the time that this message sends unsuccessfully, will send frequency of failure increase once continuously;
The 4th judging unit, in the time that the described continuous transmission frequency of failure has reached the 3rd predetermined threshold value, continues to judge that this sends message and whether has opened channel reservation mechanism;
The 5th speed control unit, in the judged result of described the 4th judging unit when being, control and while sending message, carry out reduction of speed transmission next time;
Described unlatching unit, when being no in the judged result of described the 4th judging unit, open channel future mechanism;
Described reset cell, for when the described unlatching unit open channel future mechanism, increases described channel reservation parameter preset value;
The 6th speed control unit, in the time that the described continuous transmission frequency of failure does not reach the 3rd predetermined threshold value, controls while sending message next time and keeps this transmission rate constant.
12. devices as described in claim 10 or 11, is characterized in that,
Described closing unit if also carry out reduction of speed when sending message while sending next time, is once closed channel reservation mechanism when message on sending.
CN201110440971.4A 2011-12-26 2011-12-26 Message sending method and device Active CN102523608B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110440971.4A CN102523608B (en) 2011-12-26 2011-12-26 Message sending method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110440971.4A CN102523608B (en) 2011-12-26 2011-12-26 Message sending method and device

Publications (2)

Publication Number Publication Date
CN102523608A CN102523608A (en) 2012-06-27
CN102523608B true CN102523608B (en) 2014-06-04

Family

ID=46294375

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110440971.4A Active CN102523608B (en) 2011-12-26 2011-12-26 Message sending method and device

Country Status (1)

Country Link
CN (1) CN102523608B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103269502B (en) * 2013-04-27 2016-09-28 杭州华三通信技术有限公司 A kind of method and device automatically adjusted without line rate
WO2014186939A1 (en) * 2013-05-20 2014-11-27 华为技术有限公司 Communication method and device of shared-frequency networking wireless local access network
CN103747479B (en) * 2013-12-30 2018-02-02 李炜峰 Wireless communications method and Wireless Telecom Equipment
EP3079432B1 (en) 2014-01-16 2020-06-10 Huawei Technologies Co., Ltd. Channel reservation method and communications device
CN105187120A (en) * 2015-08-21 2015-12-23 桂林聚联科技有限公司 Apparatus and method for monitoring extra long distance optical cables by using one monitoring wavelength
CN108260161A (en) * 2017-08-22 2018-07-06 新华三技术有限公司 A kind of file transmitting method and device
CN109061364B (en) * 2018-08-21 2020-12-01 天津经纬恒润科技有限公司 Non-response state detection method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101489267A (en) * 2008-01-16 2009-07-22 大唐移动通信设备有限公司 Accommodation control method and apparatus
CN101695019A (en) * 2009-11-10 2010-04-14 杭州华三通信技术有限公司 Method and device for message transmission
CN101895325A (en) * 2010-07-30 2010-11-24 杭州华三通信技术有限公司 Method and device for transmitting data

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8477689B2 (en) * 2009-03-26 2013-07-02 The John Hopkins University System and methods for distributed medium access control and QOS scheduling in mobile ad-hoc networks

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101489267A (en) * 2008-01-16 2009-07-22 大唐移动通信设备有限公司 Accommodation control method and apparatus
CN101695019A (en) * 2009-11-10 2010-04-14 杭州华三通信技术有限公司 Method and device for message transmission
CN101895325A (en) * 2010-07-30 2010-11-24 杭州华三通信技术有限公司 Method and device for transmitting data

Also Published As

Publication number Publication date
CN102523608A (en) 2012-06-27

Similar Documents

Publication Publication Date Title
CN102523608B (en) Message sending method and device
Capuzzo et al. Confirmed traffic in LoRaWAN: Pitfalls and countermeasures
US7974256B2 (en) Radio communication system, radio communication apparatus and method
KR100914940B1 (en) Method and apparatus for controlling wireless medium congestion by adjusting contention window size and disassociating selected mobile stations
US7616612B2 (en) Media access control apparatus and method for guaranteeing quality of service in wireless LAN
RU2517434C2 (en) Scheduling request initiating signal processing
JP5677280B2 (en) Wireless communication apparatus and wireless communication method
KR101176028B1 (en) Wireless lan system and communication method thereof
JP6162278B1 (en) Wireless environment determination method and wireless communication system
KR102635105B1 (en) Restored fairness in an 802.11 network implementing resource units
Capuzzo et al. Mathematical modeling of LoRa WAN performance with bi-directional traffic
CN110972105B (en) Communication method, communication device and user equipment
CN101932011A (en) Pta apparatus and pta method
CN102123020B (en) Distributed cooperative multiple access method and system providing guarantee for quality of service
US8514792B2 (en) Mobile station, base station, and method for uplink service
JPWO2010013410A1 (en) Wireless communication apparatus and wireless communication control method
Garcia-Saavedra et al. ORLA/OLAA: Orthogonal coexistence of LAA and WiFi in unlicensed spectrum
KR20210097955A (en) Reinforcement learning-based channel access control
KR101426578B1 (en) Dual mode terminal for supporting access in different network, network apparatus and method for operating thereof
JP6162787B2 (en) Method for testing a wireless communication network including a station and an access point
US7508802B2 (en) Method of controlling wireless local network medium access using pseudo-time division multiplexing
WO2011092370A1 (en) Coordinating contention access between wireless networks
JP2005012275A (en) Radio transmitter, radio packet transmitting method, and radio communication system
Gong et al. Distributed channel assignment algorithms for 802.11 n WLANs with heterogeneous clients
JP4549987B2 (en) Access system and base station apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant