CN101631337A - Method and device of data transmission - Google Patents
Method and device of data transmission Download PDFInfo
- Publication number
- CN101631337A CN101631337A CN200910165616A CN200910165616A CN101631337A CN 101631337 A CN101631337 A CN 101631337A CN 200910165616 A CN200910165616 A CN 200910165616A CN 200910165616 A CN200910165616 A CN 200910165616A CN 101631337 A CN101631337 A CN 101631337A
- Authority
- CN
- China
- Prior art keywords
- address information
- address list
- address
- current message
- workstation
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 230000005540 biological transmission Effects 0.000 title claims abstract description 25
- 230000007246 mechanism Effects 0.000 claims description 31
- 230000008569 process Effects 0.000 claims description 15
- 238000012545 processing Methods 0.000 claims description 14
- 230000032683 aging Effects 0.000 claims description 10
- 101100161473 Arabidopsis thaliana ABCB25 gene Proteins 0.000 description 42
- 101100096893 Mus musculus Sult2a1 gene Proteins 0.000 description 42
- 101150081243 STA1 gene Proteins 0.000 description 42
- 230000006854 communication Effects 0.000 description 19
- OVGWMUWIRHGGJP-WVDJAODQSA-N (z)-7-[(1s,3r,4r,5s)-3-[(e,3r)-3-hydroxyoct-1-enyl]-6-thiabicyclo[3.1.1]heptan-4-yl]hept-5-enoic acid Chemical compound OC(=O)CCC\C=C/C[C@@H]1[C@@H](/C=C/[C@H](O)CCCCC)C[C@@H]2S[C@H]1C2 OVGWMUWIRHGGJP-WVDJAODQSA-N 0.000 description 17
- 101000988961 Escherichia coli Heat-stable enterotoxin A2 Proteins 0.000 description 17
- 238000004891 communication Methods 0.000 description 16
- 101000674731 Homo sapiens TGF-beta-activated kinase 1 and MAP3K7-binding protein 1 Proteins 0.000 description 14
- 101000674728 Homo sapiens TGF-beta-activated kinase 1 and MAP3K7-binding protein 2 Proteins 0.000 description 14
- 102100021228 TGF-beta-activated kinase 1 and MAP3K7-binding protein 1 Human genes 0.000 description 14
- 102100021227 TGF-beta-activated kinase 1 and MAP3K7-binding protein 2 Human genes 0.000 description 14
- 101100172132 Mus musculus Eif3a gene Proteins 0.000 description 7
- 101000752249 Homo sapiens Rho guanine nucleotide exchange factor 3 Proteins 0.000 description 3
- 102100021689 Rho guanine nucleotide exchange factor 3 Human genes 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 239000008186 active pharmaceutical agent Substances 0.000 description 2
- 230000001419 dependent effect Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- OVGWMUWIRHGGJP-WTODYLRWSA-N (z)-7-[(1r,3s,4s,5r)-3-[(e,3r)-3-hydroxyoct-1-enyl]-6-thiabicyclo[3.1.1]heptan-4-yl]hept-5-enoic acid Chemical compound OC(=O)CCC\C=C/C[C@H]1[C@H](/C=C/[C@H](O)CCCCC)C[C@H]2S[C@@H]1C2 OVGWMUWIRHGGJP-WTODYLRWSA-N 0.000 description 1
- 101100366889 Caenorhabditis elegans sta-2 gene Proteins 0.000 description 1
- 206010033799 Paralysis Diseases 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- VYLDEYYOISNGST-UHFFFAOYSA-N bissulfosuccinimidyl suberate Chemical compound O=C1C(S(=O)(=O)O)CC(=O)N1OC(=O)CCCCCCC(=O)ON1C(=O)C(S(O)(=O)=O)CC1=O VYLDEYYOISNGST-UHFFFAOYSA-N 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002265 prevention Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a method and a device of data transmission, which are used for solving the problem that the wireless network bandwidth resource is avoided because of a hidden working station during the data transmission of the prior art. The method comprises the following steps: a current working station receives at least one message, updates a stored first address list including source address information according to source address information of the current message when the received current message is not sent by a center working station, updates a stored second address list including target address information according to target address information of the current message when the received current message is sent by the center working station and the target address information of the current message is not local address information, compares the source address information included in the first address list with the target address information included in the second address list, and determines whether to transmit data by adopting a handshake protocol according to the compared result.
Description
Technical Field
The present invention relates to the field of wireless communication network technologies, and in particular, to a method and an apparatus for data transmission.
Background
The Media Access Control (MAC) layer of the wlan standard IEEE802.11 is very similar to the MAC layer of the 802.3 protocol, and supports multiple network devices to share resources on a shared medium, and the network devices perform network availability check before sending data.
In the 802.3 protocol, regulation is accomplished by a protocol called carrier sense Multiple Access with Collision Detection (CSMA/CD), which solves the problem of how each network device on the Ethernet performs data transmission on the cable, using it to detect and avoid collisions on the network when two or more network devices need to perform data transmission.
In the IEEE802.11 wlan protocol, network devices, i.e., Stations (STAs), cannot transmit data signals while receiving data signals, and thus there is a problem in detecting collisions, and therefore, some adjustments are made to CSMA/CD in 802.11, and a new protocol is adopted, including: carrier Sense Multiple Access with collision Avoidance (CSMA/CA), or distributed contention communication over wireless (DCF) mechanisms. The CSMA/CA uses the ACK signal to avoid the message loss caused by collision, that is, only when the source workstation receives the ACK signal returned from the network, it is confirmed that the sent data has correctly arrived at the destination workstation. The specific workflow for transmitting data by utilizing the CSMA/CA protocol comprises the following steps:
the method comprises the following steps: and (4) before the workstation sends data, monitoring the state of the media, waiting for no other workstation to use the media, maintaining for a period of time, waiting for a random period of time, and then performing the step two. Since the random time employed by each station is different, the chance of collisions can be reduced.
Step two: the workstation sends a small Request To Send (RTS) message to the target workstation, and starts transmitting data after waiting for a Clear To Send (CTS) message responded by the target workstation. With the request to transmit/clear to send (RTS/CTS) handshake protocol, it is ensured that data is not collided when transmitted.
Step three: and (3) waiting for the ACK returned by the target workstation, repeating the steps 1 and 2 when the ACK is not received or the ACK is timed out, wherein the repetition times can be manually set until the data is successfully transmitted or discarded.
This explicit ACK mechanism in the CSMA/CA protocol is very effective in dealing with the problem of collisions on the network when two or more stations need to transmit data in a wireless local area network. Among them, the RTS/CTS mechanism is equivalent to a handshake protocol, and is mainly used to solve the "Hidden stations" (Hidden stations) problem in the above-mentioned collision problem. The hidden workstation means that when the workstation 1 sends a message to the workstation 2, the workstation 3 and the workstation 1 are not in the signal coverage range of each other, but are in the signal coverage range of the workstation 2, namely the central workstation; therefore, in the monitoring process of the first step, the workstation 3 cannot detect that the workstation 1 is sending data, at this time, the workstation 3 checks that the state of the medium is idle, and also sends a message to the workstation 2, so the workstation 1 and the workstation 3 send messages to the workstation 2 at the same time, message collision is caused, and finally, the messages sent to the workstation 2 are all lost. It can be seen that workstation 1 is a "hidden workstation" for workstation 3, and workstation 3 is a "hidden workstation" for workstation 1. The hidden work station is frequently generated in a network with a variable and movable network structure or an improper planning of signal coverage of some wireless networks, the hazard of the hidden work station is particularly obvious in a large-scale data communication process and a busy network, the great loss of the efficiency of data transmission is brought, and even the comprehensive paralysis of the network is caused under the condition that the hidden work station problem cannot be well solved. Therefore, the prevention of the phenomenon of 'hidden work station' is an important condition for ensuring the normal service of the network.
To solve the above problem of "hidden stations", the RTS/CTS mechanism is used in the CSMA/CA protocol of IEEE802.11, see fig. 1, which includes:
firstly, a work station 1 sends an RTS signal to a work station 2, which indicates that the work station 1 needs to send a plurality of data to the work station 2, after the work station 2 receives the RTS, the work station 2 sends CTS signals to all 802.11 wireless work stations of the same channel, which indicates that the work station is ready, the work station 1 determines that the data are sent with permission according to the received CTS signals, and when other 802.11 wireless work stations of the same channel, which want to send data to the work station 2, receive the CTS, the work station does not compete for the channel temporarily; the two parties start real data transmission after successfully exchanging RTS/CTS signals, namely completing handshaking, so that a plurality of invisible sending workstations cannot simultaneously send data to the same receiving workstation, and the receiving workstation can normally receive the data sent by the corresponding workstation completing RTS/CTS handshaking, thereby avoiding collision.
In the IEEE802.11 protocol, the RTS/CTS mechanism is used to solve and avoid the problem of "hidden stations", but the RTS/CTS mechanism used in the data transmission process occupies the bandwidth resources of the wireless network, and especially under the condition that the problem of "hidden stations" does not exist, the wireless network resource overhead caused by the RTS/CTS mechanism is not necessary.
Disclosure of Invention
The embodiment of the invention provides a data transmission method and a data transmission device, which are used for solving the problem that wireless network bandwidth resources are occupied due to the fact that a 'hidden work station' is avoided in the data transmission process in the prior art.
The embodiment of the invention provides a data transmission method, which comprises the following steps:
receiving at least one message, updating a stored first address list containing source address information according to the source address information of the current message when the received current message is not sent by a central workstation, and updating a stored second address list containing target address information according to the target address information of the current message when the received current message is sent by the central workstation and the target address information of the current message is not local address information;
and comparing the source address information contained in the first address list with the target address information contained in the second address list, and determining whether to adopt a handshake protocol to send data according to a comparison result.
The embodiment of the invention provides a data transmission workstation, which comprises
A receiving unit, configured to receive at least one packet;
the updating unit is used for updating a stored first address list containing source address information according to the source address information of the current message when the received current message is not sent by the central workstation, and updating a stored second address list containing target address information according to the target address information of the current message when the received current message is sent by the central workstation and the target address information of the current message is not local address information;
and the comparison unit is used for comparing the source address information contained in the first address list with the target address information contained in the second address list and determining whether to adopt a handshake protocol to send data or not according to a comparison result.
In the data transmission method provided by the embodiment of the invention, the current workstation updates the stored first address list containing source address information or the stored second address list containing target address information according to the address information carried by each received message, then compares the address information contained in the first address list with the address information contained in the second address list, and determines whether to adopt a handshake protocol to transmit data according to the comparison result, so that when the source address information contained in the first address list is the same as the target address information contained in the second address list, it is determined that no hidden workstation exists, and therefore no handshake protocol is adopted to transmit data, thereby avoiding the waste of wireless network resources caused by using the handshake protocol and increasing the throughput rate of the wireless network.
Drawings
Fig. 1 is a diagram illustrating a RTS/CTS mechanism for transmitting data in the prior art;
FIG. 2 is a flow chart of a method for data transmission according to an embodiment of the present invention;
FIG. 3 is a topology diagram of a communication system in an embodiment of the present invention;
FIG. 4 is a flow chart of the process of receiving data each time according to the embodiment of the present invention;
fig. 5 is a block diagram of a workstation in an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a data transmission method, optimizes the existing solution of the hidden workstation problem defined by an IEEE802.11 protocol, reduces the bandwidth overhead brought by an RTS/CTS mechanism, and solves the hidden workstation problem with lower cost.
The embodiment of the invention is applied to an Infrastructure Basic Service Set (Infrastructure BSS) network structure, the Infrastructure of the Infrastructure BSS is star-shaped, and is provided with a central workstation and a plurality of auxiliary workstations, and the communication between the auxiliary workstations is forwarded through the central workstation under most conditions. In a small part of cases, the auxiliary workstations use DLS action frame to establish direct-link connection direct communication.
An Infrastructure BSS is a Basic Service Set BSS, and a BSS can be uniquely determined by two attributes, namely a Basic Service Set Identifier (BSSID) and a Service Set Identifier (SSID); a plurality of Infrastructure BSSs with the same SSID may form an Extended Service Set (ESS), which is also a wireless network.
In an Infrastructure BSS wireless network, a central station broadcasts an SSID and BSSID to all its dependent stations within signal coverage using a specific beacon frame, and the dependent stations use the information in the received beacon frame to connect to the central station, thereby communicating via the central station.
In the embodiment of the present invention, the workstation is any one network device in a wireless communication network, and includes: a base station, an Access Point (AP), or a terminal device. The workstation can receive not only the message with the destination address as the local address, but also the message with the destination address not as the local address. I.e. the message can be received by all workstations sharing the same medium.
When the current workstation carries out network communication, firstly, an RTS/CRS mechanism is enabled by default, whether a hidden workstation exists in the current workstation or not is detected in the working process, if not, the RTS/CTS mechanism is closed, and data is directly sent to a central workstation in the subsequent communication process; and if the current workstation has the problem of hiding the workstation, sending data to the central workstation by adopting an RTS/CTS mechanism. The detection process is then repeated, and when the result of the detection changes, the operating state is also changed according to the above conditions.
Referring to fig. 2, in the Infrastructure BSS wireless network, a process of data transmission between a current station and a central station includes:
step 201: the current workstation receives the message.
The current workstation can receive not only the message with the destination address as the local address, but also the message with the destination address not as the local address, so that the current workstation can receive the message when the shared medium, namely the message exists on the same channel. The current workstation receives one or more messages.
Step 202: and the current workstation updates a stored first address list containing source address information or a stored second address list containing target address information according to the address information carried by each received message.
The current workstation receives one or more messages, so that when the received current message is not sent by the central workstation, the stored first address list containing the source address information can be updated according to the source address information of the current message; when the received current message is sent by the central workstation and the target address information of the current message is not the local address information, the stored second address list containing the target address information can be updated according to the target address information of the current message.
Thus, depending on the message or messages received, only the first address list or the second address list may be updated, both may be updated, or neither may be updated.
Here, when the destination address information of the received current message is local address information, the current workstation normally processes the current message; and when the target address information of the received current message is not the local address information, the current workstation discards the current message.
Step 203: the current workstation compares the source address information contained in the first address list with the destination address information contained in the second address list, and if the source address information and the destination address information contained in the first address list are the same, step 204 is executed, otherwise, step 205 is executed.
Before the comparison, the first address list and the second address list may be processed by sorting, hashing, or the like. Then, the current workstation may periodically compare the source address information contained in the first address list with the destination address information contained in the second address list, and perform step 204 when the source address information contained in the first address list is the same as the destination address information contained in the second address list, otherwise perform step 205.
Here, it is also possible to compare the first address list with the second address list only when source address information contained in the first address list, or destination address information contained in the second address list is updated, or both are updated.
Step 204: and closing the RTS/CTS mechanism and directly sending data to the central workstation.
When the source address information contained in the first address list is the same as the destination address information contained in the second address list, the current workstation can acquire all communication partners of the central workstation, that is, for the current workstation, no hidden workstation exists under the current communication architecture, so that when the monitored medium is in an idle state, the message is directly sent to the central workstation.
Step 205: and starting an RTS/CTS mechanism, and sending data by adopting the RTS/CTS mechanism.
The source address information contained in the first address list is different from the destination address information contained in the second address list, and for the current station, under the current communication architecture, a 'hidden station' may exist, so that an RTS/CTS mechanism must be started, and data is sent by using the RTS/CTS mechanism. That is, after the current workstation monitors that the medium is in an idle state, the RTS message is sent to the central workstation, and after receiving the CTS message returned by the central workstation, the data is sent to the central workstation.
In the embodiment of the invention, a handshake protocol of an RTS/CTS mechanism is adopted to solve the problem of 'hidden workstations' in an InfraStructureBSS wireless network. Of course, other handshaking protocols like the RTS/CTS mechanism may also be used to solve the "hidden workstation" problem in the ifrasstructure BSS wireless network. Therefore, the current workstation can also determine whether to adopt other handshake protocols similar to an RTS/CTS mechanism to transmit data according to the comparison result of the source address information contained in the first address list and the target address information contained in the second address list.
In the embodiment of the present invention, the first address list and the second address list not only include address information, but also include time information for recording each piece of address information, that is, the first address list and the second address list are lists in which the address information corresponds to the time information.
Therefore, the specific process of updating the stored first address list containing the source address information according to the source address information of the current message includes: firstly, judging whether a first address list containing source address information has the source address information carried in the current message, if not, adding the source address information and corresponding time information into the first address list, if so, the address information contained in the first address list is unchanged, and only the time information corresponding to the address information is modified.
Similarly, updating the stored second address list containing the destination address information according to the destination address information of the current packet also includes: firstly, judging whether target address information carried in a current message exists in a second address list containing the target address information, if not, adding the target address information and corresponding time information into the second address list, if so, keeping the address information contained in the second address list unchanged, and only modifying the time information corresponding to the address information.
Therefore, in the embodiment of the present invention, in the data communication process, the current workstation further needs to perform aging update processing on the first address list and the second address list, and the aging update processing may include:
the contents in the first address list and the second address list are periodically emptied, for example, all the contents in the first address list and the second address list may be deleted each time the first address list and the second address list are compared. Or,
in the process of updating the first address list or the second address list, the address information which is already appeared does not reappear in the set time, and the address information and the corresponding time information stored in the first address list or the second address list are deleted. Here, the first address list and the second address list are lists in which address information corresponds to time information. Therefore, each piece of address information has corresponding time information, and if the time information corresponding to one piece of address information is a first time, the first time is taken as a starting point of timing, and if the time is set, for example: if the address information does not appear within 1 hour, that is, the time information corresponding to the address information is not updated and is still the first time, the address information and the corresponding time information are deleted.
The embodiments of the present invention will be described in further detail with reference to the drawings attached hereto.
Referring to fig. 3, the Infrastructure BSS wireless network topology includes: the system comprises a central workstation AP, auxiliary workstations STA1 and STA2, wherein the AP, the STA1 and the STA2 can receive messages with a target address being a local address and can also receive messages with a target address not being a local address. STA1 and STA2 both establish a network link with the AP, typically communicate through the AP, and when communication begins, data communication is performed by default using the RTS/CTS mechanism. In this way, before the STA1 transmits data to the AP, it needs to determine whether there is a "hidden station" or not, and then, according to the determination result, adopts a different data transmission method.
The STA1 may update the stored first address list containing the source address information or the stored second address list containing the destination address information according to the address information carried in each received packet, where the first/second address list includes the address information and the time information corresponding to the address information. Referring to fig. 4, the processing procedure of each time STA1 receives a message includes:
step 401: STA1 receives a message.
STA1 obtains a message from the shared medium.
Step 402: the STA1 determines whether the received message is sent by the AP, and if the message is not sent by the AP, step 403 is executed, and if the message is sent by the AP, step 405 is executed.
The STA1 may determine whether the received packet is sent by the AP according To DS and From DS fields in the header of the received packet.
Here, when the STA2 transmits a message to the AP, the message may be judged not to have been transmitted from the AP, and thus, step 403 is performed.
Step 405 is performed when the AP sends a message to STA1 or STA 2.
Step 403: and updating the stored first address list TAB1 containing the source address information according to the source address information carried in the received message.
It may be determined whether there is source address information carried in the message in the stored TAB1 containing the source address information, if not, the source address information and the corresponding time information are added to the TAB1, if so, the address information contained in the TAB1 is not changed, and only the time information corresponding to the source address information is updated.
Here, if STA2 sends a message to the AP and there is no STA2 address information in TAB1 stored in STA1, the STA2 address information and the corresponding time information are recorded in TAB 1.
Step 404: the STA1 determines whether the destination address information of the received message is the local address information, if so, step 407 is executed, otherwise, step 408 is executed.
If the destination address information of the data packet is the STA1 address information, step 407 is executed.
If the destination address information of the message is not STA1 address information, step 408 is performed.
Step 405: the STA1 determines whether the destination address information of the received message is the local address information, if not, step 406 is executed, and if so, step 407 is executed.
If the destination address information of the packet is the STA1 address information, it indicates that the AP sends the packet to the STA1, and step 407 is executed.
If the destination address information of the message is not the STA1 address information, it indicates that the AP sends a message to other STAs, and step 406 is executed.
Step 406: the STA1 updates the stored second address list TAB2 containing the destination address information according to the destination address information carried in the received message, and proceeds to step 408.
It may be firstly determined whether there is destination address information carried in the message in the stored TAB2 containing destination address information, if not, the destination address information and corresponding time information are added to the TAB2, if so, the address information contained in the TAB2 is not changed, but only the time information corresponding to the destination address information is modified.
Here, if the AP sends a message to STA2 and there is no STA2 address information in TAB2 stored in STA1, the STA2 address information and the corresponding time information are recorded in TAB 2.
Step 407: STA1 processes the received message.
The destination address information of the received message is STA1 address information, and STA1 normally processes the received message.
Step 408: STA1 discards the received message.
The destination address information of the received message is not STA1 address information, and the STA1 directly discards the received even message.
In the embodiment of the present invention, the STA1 may update the TAB1 or the TAB2 or may not update any of the TAB1 and the TAB2 when receiving a message once, that is, performing the above processing once. Thus, at intervals, when STA1 finds that the address information contained in TAB1 or TAB2 is updated, the updated TAB1 and TAB2 are compared to compare whether the address information contained in TAB1 and TAB2 are completely consistent, and then, according to the comparison result, it can be determined whether to start the RTS/CTS mechanism to transmit data.
Here, before data transmission, if TAB1 and TAB2 stored by STA1 are both empty sets, and the message received by STA1 for the first time is a message sent by STA2 to the AP, the address information of STA2 and the corresponding time information are recorded in TAB 1; if the message received by STA1 for the second time is a message sent by AP to STA2, then the STA2 address information and the corresponding time information are recorded in TAB 2; at this time, STA1 compares TAB1 with TAB2, and the address information contained in both are consistent, so STA1 knows that the communication partner of the AP also includes STA2, so that STA1 directly sends a message to the AP when it can determine that there is no "hidden station" when it monitors the idle shared medium.
If the network structure topology in this embodiment further includes STA3, and STA1 is before data transmission, TAB1 and TAB2 stored in STA1 are both empty sets, and the message received by STA1 for the first time is a message sent by STA2 to the AP, then STA2 address information and corresponding time information are recorded in TAB 1; if the message received by STA1 for the second time is a message sent by AP to STA3, then the STA3 address information and the corresponding time information are recorded in TAB 2; at this time, STA1 compares TAB1 with TAB2, and the address information contained in the two are inconsistent, so STA1 does not know all communication partners of the AP, and when STA1 monitors idle shared media, because a "hidden station" may still exist, it must first send an RTS message to the AP, and when receiving a CTS message returned by the AP, then send a message to the AP.
In the above embodiment, each time the stored first address list containing the source address information is updated according to the address information carried by the received message, or in the process of the stored second address list containing the destination address information, it is determined whether the current message is sent by the central workstation, and then it is determined whether the destination address information of the current message is the local address information. In the embodiment of the present invention, it may also be determined whether the destination address information of the current packet is the local address information, and then it is determined whether the current packet is sent by the central workstation, which may specifically include:
and when the target address information of the current message is judged to be the local address information, processing the current message, judging whether the current message is sent by the central workstation or not, and updating the stored first address list containing the source address information according to the source address information of the current message if the current message is not sent by the central workstation.
When the target address information of the current message is judged not to be the local address information, updating a stored second address list containing the target address information according to the target address information of the current message, then judging whether the current message is sent by the central workstation, if not, updating a stored first address list containing the source address information according to the source address information of the current message, and discarding the current message; if the current message is sent by the central workstation, the current message is directly discarded.
According to the data transmission method, the workstation can be any one network device in the wireless communication network, and the network card driver of the workstation needs to be set to be in a promiscuous mode, that is, the workstation can receive not only the message with the destination address being the local address, but also the message with the destination address not being the local address. Referring to fig. 5, in an embodiment of the present invention, a workstation includes: a receiving unit 100, an updating unit 200, and a comparing unit 300.
The receiving unit 100 is configured to receive at least one message.
The updating unit 200 is configured to update the stored first address list including the source address information according to the source address information of the current message when the received current message is not sent by the central workstation, and update the stored second address list including the destination address information according to the destination address information of the current message when the received current message is sent by the central workstation and the destination address information of the current message is not the local address information.
A comparing unit 300, configured to compare the first address list with the second address list, and determine whether to send data using a handshake protocol according to a comparison result.
When the target address information of the received current message is local address information, the workstation needs to process the current message; and when the target address information of the received current message is not the local address information, the workstation directly discards the current message. Therefore, the workstation further comprises: and the processing unit is used for processing the current message when the target address information of the received current message is the local address information. And the workstation further comprises: and the discarding unit is used for discarding the current message when the target address information of the received current message is not the local address information.
After comparing the source address information included in the first address list with the destination address information included in the second address list, the comparing unit 300 determines not to use an RTS/CTS mechanism or other similar handshaking protocols to transmit data when the address information included in the first address list is the same as the address information included in the second address list, and determines to use an RTS/CTS mechanism or other similar handshaking protocols to transmit data when the address information included in the first address list is different from the address information included in the second address list.
Of course, in the embodiment of the present invention, the workstation further includes: and the aging updating unit is used for performing aging updating processing on the first address list and/or the second address list. The aging updating unit can periodically empty the contents in the first address list and the second address list; or, in the process of updating the first address list or the second address list, when the stored address information does not reappear within the set time, deleting the address information stored in the first address list or the second address list.
To sum up, in the embodiment of the present invention, the current workstation first updates the stored first address list containing the source address information or the stored second address list containing the destination address information according to the address information carried in at least one received message, that is, when the received current message is not sent by the central workstation, the current workstation updates the stored first address list containing the source address information according to the source address information of the current message, when the received current message is sent by the central workstation and the destination address information of the current message is not the local address information, the current workstation updates the stored second address list containing the destination address information according to the destination address information of the current message, and then compares the source address information contained in the first address list with the destination address information contained in the second address list, when the source address information contained in the first address list is the same as the target address information contained in the second address list, it can be determined that there is no hidden workstation, and the current workstation can send data without using an RTS/CTS mechanism, so that in the process of data communication, the RTS/CTS mechanism is reduced, the waste of wireless network resources caused by using the RTS/CTS mechanism can be avoided, the throughput rate of the wireless network is increased, and the message response speed is accelerated.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is intended to include such modifications and variations.
Claims (10)
1. A method of data transmission, comprising:
receiving at least one message, updating a stored first address list containing source address information according to the source address information of the current message when the received current message is not sent by a central workstation, and updating a stored second address list containing target address information according to the target address information of the current message when the received current message is sent by the central workstation and the target address information of the current message is not local address information;
and comparing the source address information contained in the first address list with the target address information contained in the second address list, and determining whether to adopt a handshake protocol to send data according to a comparison result.
2. The method of claim 1, further comprising:
when the target address information of the received current message is local address information, processing the current message; otherwise, discarding the current message.
3. The method of claim 1, wherein determining whether to transmit data using a handshake protocol based on the comparison comprises:
when the source address information contained in the first address list is the same as the target address information contained in the second address list, determining not to adopt a request to transmit/clear to send (RTS)/Clear To Send (CTS) mechanism to send data;
and when the source address information contained in the first address list is different from the target address information contained in the second address list, determining to adopt an RTS/CTS mechanism to send data.
4. The method of claim 1, wherein the method further comprises: and performing aging updating processing on the first address list and/or the second address list.
5. The method of claim 4, wherein performing aging update processing on the first address list and/or the second address list comprises:
periodically clearing the contents in the first address list and the second address list; or,
in the process of updating the first address list or the second address list, when the saved address information does not reappear within the set time, the address information saved in the first address list or the second address list is deleted.
6. A station for data transmission, comprising:
a receiving unit, configured to receive at least one packet;
the updating unit is used for updating a stored first address list containing source address information according to the source address information of the current message when the received current message is not sent by the central workstation, and updating a stored second address list containing target address information according to the target address information of the current message when the received current message is sent by the central workstation and the target address information of the current message is not local address information;
and the comparison unit is used for comparing the source address information contained in the first address list with the target address information contained in the second address list and determining whether to adopt a handshake protocol to send data or not according to a comparison result.
7. The workstation of claim 6, further comprising:
the processing unit is used for processing the current message when the target address information of the received current message is local address information;
and the discarding unit is used for discarding the current message when the target address information of the received current message is not the local address information.
8. The workstation of claim 6, wherein the comparison unit comprises:
a first determining subunit, configured to determine not to send data using an RTS/CTS mechanism when source address information included in the first address list is the same as destination address information included in the second address list;
and the second determining subunit is used for determining to adopt an RTS/CTS mechanism to send data when the source address information contained in the first address list and the source address information contained in the second address list are different from the target address information contained in the second address list.
9. The workstation of claim 6, further comprising:
and the aging updating unit is used for performing aging updating processing on the first address list and/or the second address list.
10. The workstation of claim 9, wherein the aging update unit comprises:
the clearing subunit is used for periodically clearing the contents in the first address list and the second address list;
and the deleting subunit is used for deleting the address information stored in the first address list or the second address list when the stored address information does not reappear within the set time in the process of updating the first address list or the second address list.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009101656163A CN101631337B (en) | 2009-08-06 | 2009-08-06 | Method and device of data transmission |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009101656163A CN101631337B (en) | 2009-08-06 | 2009-08-06 | Method and device of data transmission |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101631337A true CN101631337A (en) | 2010-01-20 |
CN101631337B CN101631337B (en) | 2011-11-09 |
Family
ID=41576228
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009101656163A Expired - Fee Related CN101631337B (en) | 2009-08-06 | 2009-08-06 | Method and device of data transmission |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101631337B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014206283A1 (en) * | 2013-06-25 | 2014-12-31 | Huawei Technologies Co., Ltd. | System and method for detecting and resolving conflicts |
CN113438688A (en) * | 2021-06-24 | 2021-09-24 | 普联技术有限公司 | Detection method and detection device for hidden node |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101022457B (en) * | 2007-03-12 | 2012-01-04 | 北京交通大学 | Radio multi-hopping network audio frequency, data transmission nodal equipment |
CN101217498B (en) * | 2008-01-18 | 2011-08-24 | 北京科技大学 | Pathfinding method for self-organizing network based on point-by-point decision-making of data packets |
-
2009
- 2009-08-06 CN CN2009101656163A patent/CN101631337B/en not_active Expired - Fee Related
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014206283A1 (en) * | 2013-06-25 | 2014-12-31 | Huawei Technologies Co., Ltd. | System and method for detecting and resolving conflicts |
US9433016B2 (en) | 2013-06-25 | 2016-08-30 | Futurewei Technologies, Inc. | System and method for detecting and resolving conflicts |
US9681467B2 (en) | 2013-06-25 | 2017-06-13 | Futurewei Technologies, Inc. | System and method for detecting and resolving conflicts |
CN113438688A (en) * | 2021-06-24 | 2021-09-24 | 普联技术有限公司 | Detection method and detection device for hidden node |
Also Published As
Publication number | Publication date |
---|---|
CN101631337B (en) | 2011-11-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8446907B2 (en) | Medium access control method and apparatus in wireless distributed network | |
KR100914940B1 (en) | Method and apparatus for controlling wireless medium congestion by adjusting contention window size and disassociating selected mobile stations | |
KR100972476B1 (en) | Method and system for detecting hidden nodes in WLAN | |
JP4155801B2 (en) | Method for securing channel of QoS manager in home plug network | |
EP2993857B1 (en) | Method and device for data transmission | |
CN101394626B (en) | Distributed service differentiating method and device based on WLAN | |
US20060114867A1 (en) | Distributed wireless access method based on network allocation vector table and apparatus of the same | |
US20060120339A1 (en) | Method of controlling quality of service for a wireless LAN base station apparatus | |
CN101897154B (en) | Congestion control in a communication network based on the CSMA/CA protocol | |
CA2246506C (en) | Transmission control method in a collision-based access system | |
JP6526852B2 (en) | Simultaneous transmit and receive operation in WLAN | |
JP4588465B2 (en) | Transmission control method | |
KR20040047376A (en) | Communication control method for wireless LAN | |
CN1849785A (en) | Method of providing a medium access protocol | |
US7804813B2 (en) | Radio communication method, radio communication terminal and radio LAN system | |
US7356335B2 (en) | Wireless communication apparatus | |
CN101631337B (en) | Method and device of data transmission | |
US8724469B2 (en) | Method and device for sending packets on a wireless local area network | |
CN112512082B (en) | Wireless network transmission method, device, communication node and storage medium | |
CN101729132A (en) | Wireless channel access scheme | |
US7822422B2 (en) | Wireless communication system for improved transmission priority control | |
JP2002064503A (en) | Wireless packet relay method | |
JP4042901B2 (en) | Wireless terminal and wireless access control method thereof | |
US7508802B2 (en) | Method of controlling wireless local network medium access using pseudo-time division multiplexing | |
CN108135014B (en) | Communication method based on ad-hoc network mac layer |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20111109 Termination date: 20150806 |
|
EXPY | Termination of patent right or utility model |