[go: up one dir, main page]

CN1925481B - Wireless Local Area Network Device and Its Frame Sequence Numbering Method - Google Patents

Wireless Local Area Network Device and Its Frame Sequence Numbering Method Download PDF

Info

Publication number
CN1925481B
CN1925481B CN2005100370226A CN200510037022A CN1925481B CN 1925481 B CN1925481 B CN 1925481B CN 2005100370226 A CN2005100370226 A CN 2005100370226A CN 200510037022 A CN200510037022 A CN 200510037022A CN 1925481 B CN1925481 B CN 1925481B
Authority
CN
China
Prior art keywords
module
data unit
serial number
counting
area network
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.)
Expired - Fee Related
Application number
CN2005100370226A
Other languages
Chinese (zh)
Other versions
CN1925481A (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.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry 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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN2005100370226A priority Critical patent/CN1925481B/en
Publication of CN1925481A publication Critical patent/CN1925481A/en
Application granted granted Critical
Publication of CN1925481B publication Critical patent/CN1925481B/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

一种帧序列号编号方法,用于对无线局域网所使用的数据单元编序列号,其包括以下步骤:接收数据单元及其接收工作站地址和传输速率(TXRate);及将不同接收工作站地址及不同传输速率的数据单元分开编序列号。本发明还提供一种无线局域网装置,当无线局域网装置利用本发明方法传送数据时,其对应接收装置可利用本发明方法计算不同传输速率时无线局域网装置的帧错误率。

Figure 200510037022

A frame serial number numbering method is used for serial numbering the data units used by the wireless local area network, which includes the following steps: receiving data units and their receiving workstation addresses and transmission rates (TXRate); and different receiving workstation addresses and different The data units of the transmission rate are serial numbered separately. The present invention also provides a wireless local area network device. When the wireless local area network device uses the method of the present invention to transmit data, its corresponding receiving device can use the method of the present invention to calculate the frame error rate of the wireless local area network device at different transmission rates.

Figure 200510037022

Description

无线局域网装置及其帧序列号编号方法 Wireless Local Area Network Device and Its Frame Sequence Numbering Method

【技术领域】【Technical field】

本发明涉及无线局域网,尤其涉及一种无线局域网装置及其帧序列号编号方法。The present invention relates to a wireless local area network, in particular to a wireless local area network device and its frame serial number numbering method.

【背景技术】【Background technique】

电气与电子工程师协会(IEEE)的标准-802.11定义了媒介存取控制(Media Access Control,以下简称为MAC)帧格式的主体架构,其包括数据帧、管理帧以及控制帧三种。如图1及图2所示,分别为MAC数据帧100及MAC管理帧200。数据帧100及管理帧200中各包含一序列控制域160、260。序列控制域160、260分别包含两个子域:分段号(SegmentNumber)域161、261以及序列号(Sequence Number,以下简称为SN)域162、262。其中,序列号是帧携带的MAC服务数据单元(MAC ServiceData Unit,以下简称为MSDU)或MAC管理协议数据单元(MACManagement Protocol Data Unit,以下简称为MMPDU)的序列号。每一个MSDU或MMPDU都有一个序列号,其数值从0开始到4095。The Institute of Electrical and Electronics Engineers (IEEE) standard-802.11 defines the main structure of the Media Access Control (MAC) frame format, which includes three types: data frame, management frame and control frame. As shown in FIG. 1 and FIG. 2 , they are a MAC data frame 100 and a MAC management frame 200 respectively. Each of the data frame 100 and the management frame 200 includes a sequence control field 160 , 260 . The sequence control fields 160 and 260 respectively include two subfields: a segment number (SegmentNumber) field 161 and 261 and a sequence number (Sequence Number, hereinafter referred to as SN) field 162 and 262. Wherein, the sequence number is the sequence number of the MAC Service Data Unit (MAC Service Data Unit, hereinafter referred to as MSDU) or MAC Management Protocol Data Unit (MAC Management Protocol Data Unit, hereinafter referred to as MMPDU) carried by the frame. Each MSDU or MMPDU has a sequence number whose value starts from 0 to 4095.

在传统方法中,传送装置对其传送的数据单元不论MSDU或MMPDU,其序列号都只是一直累加,累加到4095后再从头开始。但一般来讲,传送装置对IEEE 802.11的三种不同帧传送的速率都不同,管理帧与控制帧通常利用基本速率传送,而数据帧则通常用可支持的最高传送速率传送。In the traditional method, no matter MSDU or MMPDU, the serial number of the data unit transmitted by the transmitting device is always accumulated, and the sequence number is accumulated to 4095 and then starts from the beginning. But generally speaking, transmission devices have different transmission rates for the three different frames of IEEE 802.11. Management frames and control frames are usually transmitted at the basic rate, while data frames are usually transmitted at the highest supported transmission rate.

另外,一般传送装置会以接收装置有没有响应肯定应答讯号(Acknowledgement signal,ACK signal)来作为其帧错误率的计算依据,有些装置并以此作为其传输速率是否减慢之依据。但在下列情况下,并不能由接收端得到其帧错误率。In addition, the general transmitting device will use whether the receiving device responds to the Acknowledgment signal (ACK signal) as the calculation basis for its frame error rate, and some devices use this as the basis for whether the transmission rate is slowed down. But in the following cases, the frame error rate cannot be obtained by the receiving end.

第一种情况是:广播帧或一些管理帧并不需要接收装置来响应ACK讯号,因此传送装置并不能知道所传送的帧是否成功的到达接收装置。The first situation is that the broadcast frame or some management frames do not require the receiving device to respond to the ACK signal, so the transmitting device cannot know whether the transmitted frame reaches the receiving device successfully.

第二种情况是:No-ACK(no-acknowledgement)之碰撞问题,一支持no-ACK的装置所传送的帧并不需要接收装置来响应ACK。The second case is: No-ACK (no-acknowledgment) collision problem, a frame transmitted by a device supporting no-ACK does not require the receiving device to respond with an ACK.

传送装置在上述情况下,不能根据接收装置是否响应ACK讯号来计算其帧错误率,甚至在同一个环境中,其它接收装置也无法利用序列号计算其帧错误率。Under the above circumstances, the transmitting device cannot calculate its frame error rate according to whether the receiving device responds to the ACK signal, and even in the same environment, other receiving devices cannot use the sequence number to calculate their frame error rate.

【发明内容】【Content of invention】

本发明实施方式中提供的无线局域网装置包括一媒介存取控制层协议模块,用于对无线局域网所使用的数据单元编序列号。媒介存取控制层协议模块包括一列表模块及一序列号编号模块。列表模块用于根据数据单元的接收工作站地址提供数据单元的传输速率。序列号编号模块用于对不同接收工作站地址及不同传输速率的数据单元编序列号。所述序列号编号模块包括计数模块库、第一选择模块及第二选择模块。计数模块库包括多个计数模块。第一选择模块用于接收所述数据单元及其接收工作站地址,并根据所述数据单元的接收工作站地址从所述计数模块库中选择至少一个计数模块,分别用于对不同传输速率的数据单元编序列号。第二选择模块用于根据所述数据单元目前的传输速率从所述第一选择模块所选的计数模块中选择一个计数模块,用于对所述数据单元编序列号。The wireless local area network device provided in the embodiment of the present invention includes a medium access control layer protocol module for serializing the data units used by the wireless local area network. The MAC layer protocol module includes a list module and a sequence number module. The list module is used to provide the transmission rate of the data unit according to the receiving workstation address of the data unit. The serial number numbering module is used for serial numbering the data units with different receiving workstation addresses and different transmission rates. The serial numbering module includes a counting module library, a first selection module and a second selection module. The counting block library includes several counting blocks. The first selection module is used to receive the data unit and its receiving workstation address, and select at least one counting module from the counting module library according to the receiving workstation address of the data unit, respectively for data units with different transmission rates serial number. The second selection module is used to select a counting module from the counting modules selected by the first selection module according to the current transmission rate of the data unit, and to serialize the data unit.

本发明实施方式中提供的帧序列号编号方法包括以下步骤:接收数据单元及其接收工作站地址和传输速率;及将不同接收工作站地址及不同传输速率的数据单元分开编序列号,所述将不同接收工作站地址及不同传输速率的数据单元分开编序列号的步骤包括以下步骤:根据所述数据单元的接收工作站地址选择至少一个计数模块,用于对不同传输速率的数据单元编序列号;及根据所述数据单元目前的传输速率从上述计数模块中选择一个计数模块,用于对所述数据单元进行编序列号。The frame serial number numbering method provided in the embodiment of the present invention includes the following steps: receiving a data unit and its receiving workstation address and transmission rate; The step of separately serializing the data units of the receiving workstation address and different transmission rates includes the following steps: selecting at least one counting module according to the receiving workstation address of the data unit, for serializing the data units of different transmission rates; and The current transmission rate of the data unit selects a counting module from the above counting modules, and is used to encode the serial number of the data unit.

本发明无线局域网装置将不同接收工作站地址及不同传输速率的数据单元分开编序列号,并将所编的序列号应用到数据单元所形成帧的序列号域,这样对应接收装置通过检查不同传输速率时所接收帧的帧校验域可计算出正确帧的个数,再通过分析不同传输速率时所接收的帧的序列号域可计算出所接收的帧总数,从而可求出不同传输速率时的帧错误率。The wireless local area network device of the present invention serializes the data units with different receiving workstation addresses and different transmission rates separately, and applies the serial numbers to the serial number field of the frame formed by the data units, so that the corresponding receiving device checks the different transmission rates The frame check field of the received frame can calculate the number of correct frames, and then by analyzing the serial number field of the frame received at different transmission rates, the total number of frames received can be calculated, so that the number of frames received at different transmission rates can be calculated frame error rate.

【附图说明】【Description of drawings】

图1是IEEE 802.11定义的MAC数据帧格式。Figure 1 is the MAC data frame format defined by IEEE 802.11.

图2是IEEE 802.11定义的MAC管理帧格式。Figure 2 is the MAC management frame format defined by IEEE 802.11.

图3是本发明实施例中无线通信系统的架构图。FIG. 3 is a structural diagram of a wireless communication system in an embodiment of the present invention.

图4是本发明的无线局域网装置的实施方式的模块图。FIG. 4 is a block diagram of an embodiment of the wireless LAN device of the present invention.

图5是本发明的无线局域网装置处理数据的流程图。FIG. 5 is a flow chart of data processing by the wireless LAN device of the present invention.

图6是本发明的MAC层协议模块的帧序列号编号方法的流程图。Fig. 6 is a flow chart of the frame sequence number numbering method of the MAC layer protocol module of the present invention.

图7是本发明的无线局域网装置的另一实施方式的模块图。FIG. 7 is a block diagram of another embodiment of the wireless LAN device of the present invention.

【具体实施方式】【Detailed ways】

开放式系统互联参考模型(Open System Interconnect Reference Model,以下简称为OSI模型)将网络通信协议体系区分为7个层。体系的最底层为物理层(Physical Layer,以下简称为PHY),其定义媒介、传输方法及布线方式。体系的第二层为数据链路层(Data Link Layer),其定义如何确保数据正确传输,给数据加上相关信息域而形成帧。数据链路层包括两个子层,分别为:逻辑连结控制(Logical Link Control,以下简称为LLC)层,负责将数据正确的发送到物理层,以及媒介存取控制(Media AccessControl,以下简称为MAC)层,负责控制与连结物理层的物理媒介。体系的第三层为网络层(Network Layer),其负责数据路由(Routing),包括转换地址,寻找最佳路径及管理流量。体系的第四层为传送层(TransportLayer),其确保数据到达顺序及正确性。体系的第五层为会谈层(SessionLayer),其定义连结对话,错误处理与逻辑地址名称转换。体系的第六层为表现层(Presentation Layer),其处理数据格式,包括格式转换、加密与解密、压缩与还原。体系的第七层为应用层(Application Layer),其定义供应用程序存取的接口与功能,还有目录服务及档案存取。The Open System Interconnect Reference Model (hereinafter referred to as the OSI model) divides the network communication protocol system into seven layers. The bottom layer of the system is the physical layer (Physical Layer, hereinafter referred to as PHY), which defines the medium, transmission method and wiring method. The second layer of the system is the Data Link Layer (Data Link Layer), which defines how to ensure the correct transmission of data, and adds relevant information fields to the data to form a frame. The data link layer includes two sublayers, namely: Logical Link Control (hereinafter referred to as LLC) layer, responsible for sending data to the physical layer correctly, and media access control (Media Access Control, hereinafter referred to as MAC) ) layer, responsible for controlling and connecting the physical medium of the physical layer. The third layer of the system is the network layer (Network Layer), which is responsible for data routing (Routing), including converting addresses, finding the best path and managing traffic. The fourth layer of the system is the transport layer (TransportLayer), which ensures the order and correctness of data arrival. The fifth layer of the system is the session layer (SessionLayer), which defines link dialogue, error handling and logical address name conversion. The sixth layer of the system is the Presentation Layer, which deals with data formats, including format conversion, encryption and decryption, compression and restoration. The seventh layer of the system is the application layer (Application Layer), which defines the interfaces and functions for application program access, as well as directory services and file access.

IEEE 802.11标准定义了物理层和MAC层的协议规范,允许无线局域网及无线设备制造商在一定范围内,建立互相操作网络设备。IEEE 802.11的MAC层必须与LLC层兼容,以利于相互间的操作。The IEEE 802.11 standard defines the protocol specifications of the physical layer and the MAC layer, allowing wireless LAN and wireless device manufacturers to establish interoperable network devices within a certain range. The MAC layer of IEEE 802.11 must be compatible with the LLC layer to facilitate mutual operation.

图1是IEEE 802.11所定义的MAC数据帧格式。MAC数据帧100包括:帧控制域110、持续时间/标示符域120、地址1域130、地址2域140、地址3域150、序列控制域160、地址4域170、帧体域180以及帧校验域190。其中序列控制域160包括两个子域:分段号(Segment Number)域161及序列号域(Sequence Number,SN)162。图2是IEEE 802.11所定义的MAC管理帧格式。MAC管理帧200包括:帧控制域210、持续时间/标示符域220、地址1域230、地址2域240、地址3域250、序列控制域260、帧体域280以及帧校验域290。其中序列控制域260包括两个子域:分段号域261及序列号域262。Figure 1 is the MAC data frame format defined by IEEE 802.11. MAC data frame 100 includes: frame control field 110, duration/identifier field 120, address 1 field 130, address 2 field 140, address 3 field 150, sequence control field 160, address 4 field 170, frame body field 180, and frame Check field 190. The sequence control field 160 includes two subfields: a segment number (Segment Number) field 161 and a sequence number field (Sequence Number, SN) 162. Figure 2 is the MAC management frame format defined by IEEE 802.11. The MAC management frame 200 includes: frame control field 210 , duration/identifier field 220 , address 1 field 230 , address 2 field 240 , address 3 field 250 , sequence control field 260 , frame body field 280 and frame check field 290 . The sequence control field 260 includes two subfields: a segment number field 261 and a sequence number field 262 .

如图1及图2所示,其中地址1域130、230为接收工作站地址(ReceiverAddress,RA)域,即待传送的MAC服务数据单元(MAC Service Data Unit,MSDU)或MAC管理协议数据单元(MAC Management Protocol Data Unit,MMPDU)的接收工作站地址。接收工作站地址由48个位构成,不同接收工作站地址对应不同接收工作站,而地址“FF:FF:FF:FF:FF:FF”则为广播地址。序列控制域160、260包括两个子域:分段号域161、261以及序列号域162、262。其中序列号是帧携带的MSDU或MMPDU的序列号。每一个MSDU或MMPDU都有一个序列号,其数值的范围从0到4095。As shown in Figures 1 and 2, the address 1 domains 130 and 230 are the receiving workstation address (ReceiverAddress, RA) domain, that is, the MAC service data unit (MAC Service Data Unit, MSDU) or MAC management protocol data unit ( MAC Management Protocol Data Unit, MMPDU) receiving workstation address. The receiving station address is composed of 48 bits. Different receiving station addresses correspond to different receiving stations. The address "FF:FF:FF:FF:FF:FF" is the broadcast address. The sequence control field 160 , 260 includes two subfields: a segment number field 161 , 261 and a sequence number field 162 , 262 . The sequence number is the sequence number of the MSDU or MMPDU carried by the frame. Each MSDU or MMPDU has a sequence number whose value ranges from 0 to 4095.

图3是本发明实施例中无线通信系统的架构图。在本实施方式中,无线通信系统包括多个无线局域网装置1000、2000及3000。在本实施方式中,无线局域网装置1000传送数据给多个无线局域网装置2000,3000,且可传送广播数据。FIG. 3 is a structural diagram of a wireless communication system in an embodiment of the present invention. In this embodiment, the wireless communication system includes a plurality of wireless LAN devices 1000 , 2000 and 3000 . In this embodiment, the wireless LAN device 1000 transmits data to a plurality of wireless LAN devices 2000, 3000, and can transmit broadcast data.

图4是本发明的无线局域网装置1000的实施方式的模块图。在本实施方式中,无线局域网装置1000包括:一高层协议模块1100、一MAC层协议模块1200以及一物理层协议模块1300。高层协议模块1100用于执行OSI中应用层、表现层、会谈层、传送层、网络层及LLC层等协议层之功能,把传送数据转换为MSDU,且把该MSDU及其接收工作站地址传送给MAC层协议模块1200。FIG. 4 is a block diagram of an embodiment of the wireless LAN device 1000 of the present invention. In this embodiment, the wireless LAN device 1000 includes: a high layer protocol module 1100 , a MAC layer protocol module 1200 and a physical layer protocol module 1300 . The high-level protocol module 1100 is used to execute the functions of the protocol layers such as application layer, presentation layer, conversation layer, transport layer, network layer and LLC layer in OSI, convert the transmitted data into MSDU, and transmit the MSDU and its receiving workstation address to MAC layer protocol module 1200.

MAC层协议模块1200包括:一数据接口1210、一序列号编号模块1220、一MAC处理模块1230以及一列表模块1240。列表模块1240包含接收工作站地址(RA)与传输速率(TX Rate)列表,用于根据数据单元的接收工作站地址提供数据单元的传输速率。数据接口1210用于从高层协议模块1100接收MSDU及其接收工作站地址,并将其传送给序列号编号模块1220。MAC处理模块1230用于根据管理需求而产生一MMPDU及其接收工作站地址,并将其传送给序列号编号模块1220。MAC处理模块1230还根据列表模块1240提供目前的传输速率给序列号编号模块1220。The MAC layer protocol module 1200 includes: a data interface 1210 , a serial number numbering module 1220 , a MAC processing module 1230 and a list module 1240 . The list module 1240 includes a receiving station address (RA) and transmission rate (TX Rate) list, which is used to provide the transmission rate of the data unit according to the receiving station address of the data unit. The data interface 1210 is used to receive the MSDU and the address of the receiving workstation from the high layer protocol module 1100 and transmit it to the serial number module 1220 . The MAC processing module 1230 is used to generate an MMPDU and its receiving workstation address according to management requirements, and send it to the sequence numbering module 1220 . The MAC processing module 1230 also provides the current transmission rate to the sequence number module 1220 according to the list module 1240 .

序列号编号模块1220用于将不同接收工作站地址及不同传输速率的数据单元分开编序列号。在本实施方式中,序列号编号模块1240从数据接口1210接收MSDU及其接收工作站地址,从MAC处理模块1230接收MMPDU及其接收工作站地址,以及从MAC处理模块1230接收目前的传输速率,还用于对所接收的MSDU及MMPDU进行编序列号。The serial numbering module 1220 is used for separately numbering the data units with different receiving workstation addresses and different transmission rates. In this embodiment, the serial number numbering module 1240 receives the MSDU and its receiving workstation address from the data interface 1210, receives the MMPDU and its receiving workstation address from the MAC processing module 1230, and receives the current transmission rate from the MAC processing module 1230. To serial number the received MSDU and MMPDU.

序列号编号模块1220包括:一第一选择模块1221、一第二选择模块1222、一计数模块库1223、一判断模块1224及一设定模块1225。计数模块库1223提供多个计数模块,例如:第一计数模块1223a、第二计数模块1223b...第N计数模块1223n。第一选择模块1221用于接收数据单元及其工作站地址,并根据数据单元的接收工作站地址从计数模块库1223中选择至少一计数模块,分别用于对不同传输速率的数据单元编序列号。在本实施方式中,第一选择模块1221从数据接口1210接收MSDU及其接收工作站地址,及从MAC处理模块1230接收MMPDU及其接收工作站地址,根据所接收的数据单元的接收工作站地址从计数模块库1223中选择至少一计数模块,并把所选的计数模块告知第二选择模块1222。第二选择模块1222用于根据数据单元的传输速率从第一选择模块1221所选的计数模块中选择一计数模块,用于对数据单元编序列号。在本实施方式中,第二选择模块1222根据MAC处理模块1230所提供的目前的传输速率,从第一选择模块1221所选的计数模块中选择一计数模块,用于对所接收的数据单元编序列号。判断模块1224用于判断第二选择模块1222所选择的计数模块所编的序列号是否小于一预设边界值。若是,则设定模块1225把所接收的数据单元之序列号设为上述计数模块所编的序列号;若否,则设定模块1225把所接收的数据单元的序列号设为预设序列号。设定模块1225还用于更新计数模块库1223。The serial number numbering module 1220 includes: a first selection module 1221 , a second selection module 1222 , a counting module library 1223 , a judging module 1224 and a setting module 1225 . The counting module library 1223 provides multiple counting modules, for example: a first counting module 1223a, a second counting module 1223b . . . an Nth counting module 1223n. The first selection module 1221 is used to receive the data unit and its workstation address, and select at least one counting module from the counting module library 1223 according to the receiving workstation address of the data unit, to serialize the data units with different transmission rates respectively. In this embodiment, the first selection module 1221 receives the MSDU and its receiving workstation address from the data interface 1210, and receives the MMPDU and its receiving workstation address from the MAC processing module 1230. Select at least one counting module from the library 1223, and inform the second selection module 1222 of the selected counting module. The second selection module 1222 is configured to select a counting module from the counting modules selected by the first selection module 1221 according to the transmission rate of the data unit, for serializing the data unit. In this embodiment, the second selection module 1222 selects a counting module from the counting modules selected by the first selection module 1221 according to the current transmission rate provided by the MAC processing module 1230, and is used to encode the received data unit serial number. The judging module 1224 is used for judging whether the serial number programmed by the counting module selected by the second selecting module 1222 is less than a preset boundary value. If so, the setting module 1225 sets the serial number of the received data unit to the serial number compiled by the counting module; if not, the setting module 1225 sets the serial number of the received data unit to the default serial number . The setting module 1225 is also used to update the counting module library 1223 .

MAC处理模块1230用于将设定模块1225所设定的序列号应用于数据单元。在本实施方式中,MAC处理模块1230给MSDU及MMPDU加上相关信息域而形成MAC协定数据单元(MAC Protocol Data Unit,MPDU),即帧,并把序列号编号模块1220对MSDU及MMPDU所编的序列号应用到所形成的MPDU的序列号域(如上述图1与图2所示的序列号域161、162)。The MAC processing module 1230 is used for applying the sequence number set by the setting module 1225 to the data unit. In this embodiment, the MAC processing module 1230 adds relevant information domains to MSDU and MMPDU to form a MAC agreement data unit (MAC Protocol Data Unit, MPDU), that is, a frame, and serial number module 1220 compiles the MSDU and MMPDU The sequence number of is applied to the sequence number field of the formed MPDU (such as the sequence number field 161, 162 shown in FIG. 1 and FIG. 2 above).

物理层协议模块1300用于给MAC层协议模块1200所形成的MPDU加上另一相关信息域而形成一物理层协议数据单元(PHY Protocol dataUnit,PPDU),并把PPDU传送出去。The physical layer protocol module 1300 is used to add another related information field to the MPDU formed by the MAC layer protocol module 1200 to form a physical layer protocol data unit (PHY Protocol dataUnit, PPDU), and transmit the PPDU.

图5是本发明的无线局域网装置1000处理数据的流程图。在本实施方式中,当无线局域网装置1000传送数据给多个无线局域网装置2000,3000,以及传送广播数据时,所传送之数据需经过OSI七层协议处理后,再传送出去。FIG. 5 is a flow chart of data processing by the wireless LAN device 1000 of the present invention. In this embodiment, when the wireless LAN device 1000 transmits data to multiple wireless LAN devices 2000, 3000, and transmits broadcast data, the transmitted data must be processed by the OSI seven-layer protocol before being transmitted.

在步骤S500,高层协议模块1100对所传送的数据进行处理,执行OSI中应用层、表现层、会谈层、传送层、网络层及LLC层等协议层的功能,把所传送的数据转换为MSDU,并把MSDU及其接收工作站地址传送给MAC层协议模块1200。In step S500, the high-level protocol module 1100 processes the transmitted data, executes the functions of protocol layers such as application layer, presentation layer, conversation layer, transport layer, network layer and LLC layer in OSI, and converts the transmitted data into MSDU , and transmit the MSDU and the address of the receiving workstation to the MAC layer protocol module 1200 .

在步骤S502,MAC层协议模块1200从高层协议模块1100接收MSDU及其接收工作站地址,并根据管理需求而产生MMPDU及其接收工作站地址。MAC层协议模块1200给所接收的MSDU及所产生的MMPDU加上帧控制等相关信息域而形成MPDU,并将所形成的MPDU发送给物理层协议模块1300。其具体操作流程见图6。In step S502, the MAC layer protocol module 1200 receives the MSDU and its receiving workstation address from the high layer protocol module 1100, and generates an MMPDU and its receiving workstation address according to management requirements. The MAC layer protocol module 1200 adds relevant information fields such as frame control to the received MSDU and the generated MMPDU to form an MPDU, and sends the formed MPDU to the physical layer protocol module 1300 . The specific operation process is shown in Figure 6.

在步骤S504,物理层协议模块1300从MAC层协议模块1200接收MPDU,MPDU加上另一相关信息域而形成PPDU,再把PPDU发送出去。In step S504, the physical layer protocol module 1300 receives the MPDU from the MAC layer protocol module 1200, adds another relevant information field to the MPDU to form a PPDU, and then sends the PPDU.

图6是本发明的MAC层协议模块的帧序列号编号方法的流程图。Fig. 6 is a flow chart of the method for numbering the frame sequence number of the MAC layer protocol module of the present invention.

在步骤S600,数据接口1210从高层协议模块1100接收MSDU及其接收工作站地址(RA),并将其传送给序列号编号模块1220之第一选择模块1221。MAC处理模块1230根据管理需求而产生MMPDU及其接收工作站地址(RA),并将其传送给序列号编号模块1220之第一选择模块1221。所产生的MMPDU在联机前帮忙联机,或是联机后作为断线的通知。In step S600 , the data interface 1210 receives the MSDU and its receiving station address (RA) from the high layer protocol module 1100 , and transmits it to the first selection module 1221 of the serial numbering module 1220 . The MAC processing module 1230 generates an MMPDU and its receiving station address (RA) according to management requirements, and sends it to the first selection module 1221 of the serial numbering module 1220 . The generated MMPDU helps to connect before connecting, or as a notification of disconnection after connecting.

在步骤S602,第一选择模块1221接收数据单元MSDU及其接收工作站地址,以及数据单元MMPDU及其接收工作站地址后,根据所接收的数据单元的接收工作站地址从计数模块库1223中选择出至少一计数模块,分别用于对不同传输速率之数据单元编序列号,应注意的是,计数模块的数量是根据传输速率的种类而决定。在本实施方式中,所接收的数据单元的接收工作站地址指明该数据单元是传送给无线局域网装置2000,无线局域网装置1000、2000皆支持11Mbps、5.5Mbps、2Mbps、1Mbps等四种传输速率,因此,需选择四个计数模块。在其它实施方式中,如果无线局域网装置1000、2000可支持更多传输速率,则相应选择计数模块之个数。如果所接收的数据单元指明该数据单元是传送给其它无线局域网装置,则相应选择其它计数模块。In step S602, after the first selection module 1221 receives the data unit MSDU and its receiving station address, and the data unit MMPDU and its receiving station address, select at least one from the counting module library 1223 according to the receiving station address of the received data unit The counting modules are respectively used to serialize the data units of different transmission rates. It should be noted that the number of counting modules is determined according to the type of transmission rate. In this embodiment, the address of the receiving workstation of the received data unit indicates that the data unit is to be transmitted to the wireless LAN device 2000. Both the wireless LAN devices 1000 and 2000 support four transmission rates of 11Mbps, 5.5Mbps, 2Mbps, and 1Mbps. Therefore, , need to select four counting modules. In other implementations, if the WLAN device 1000, 2000 can support more transmission rates, the number of counting modules is selected accordingly. If the received data unit indicates that the data unit is to be transmitted to other WLAN devices, then select other counting modules accordingly.

在步骤S604,MAC处理模块1230根据列表模块提供目前的传输速率给第二选择模块1222。第二选择模块1222根据所提供的目前的传输速率从第一选择模块1222所选择的计数模块中选择一计数模块。在本实施方式中,第二选择模块1222根据所提供的目前的传输速率所选的计数模块为第一计数模块1223a。In step S604, the MAC processing module 1230 provides the current transmission rate to the second selection module 1222 according to the list module. The second selection module 1222 selects a counting module from the counting modules selected by the first selection module 1222 according to the provided current transmission rate. In this embodiment, the counting module selected by the second selection module 1222 according to the provided current transmission rate is the first counting module 1223a.

在步骤S606,第一计数模块1223a根据一函数对所接收数据单元进行编序列号(SN)。在本实施方式中,该函数为F(x)=4x+1,其中x定义为以目前传输速率传送给无线局域网装置2000的数据单元的次序,故以目前传输速率传送给无线局域网装置2000的第一个数据单元的序列号编号为5,第二个编号则为9,以此类推。在其它实施方式中,上述函数可为其它线性函数或其它类型函数。In step S606, the first counting module 1223a encodes the serial number (SN) of the received data unit according to a function. In this embodiment, the function is F(x)=4x+1, where x is defined as the sequence of data units transmitted to the wireless LAN device 2000 at the current transmission rate, so the data units transmitted to the wireless LAN device 2000 at the current transmission rate The sequence number of the first data unit is 5, the second is 9, and so on. In other implementations, the above functions may be other linear functions or other types of functions.

在步骤S608,判断模块1224判断第一计数模块1223a所编的序列号(SN)是否小于预设边界值。在本实施方式中,该预设边界值为4096。In step S608, the judging module 1224 judges whether the serial number (SN) programmed by the first counting module 1223a is smaller than a preset boundary value. In this embodiment, the preset boundary value is 4096.

如果小于预设边界值,在步骤S610,设定模块1225设定数据单元的序列号为第一计数模块1223a所编的序列号(SN)。在本实施方式中,把数据单元的序列号设为第一计数模块1223a所编的序列号。If it is less than the preset boundary value, in step S610, the setting module 1225 sets the serial number of the data unit as the serial number (SN) programmed by the first counting module 1223a. In this embodiment, the serial number of the data unit is set as the serial number programmed by the first counting module 1223a.

如果不小于预设边界值,则执行步骤S612,设定模块1225设定数据单元的序列号为预定序列号。在本实施方式中,该预定序列号为0。If it is not less than the preset boundary value, step S612 is executed, and the setting module 1225 sets the serial number of the data unit as a predetermined serial number. In this embodiment, the predetermined sequence number is 0.

在步骤S614,设定模块150根据步骤S610或S612的设定结果对计数模块库1223中的计数模块进行更新。在本实施方式中,设定模块1225对第一计数模块1223a进行更新。设定模块1225把数据单元及其接收工作站地址和所编的序列号传送给MAC处理模块1230。In step S614, the setting module 150 updates the counting modules in the counting module library 1223 according to the setting result in step S610 or S612. In this embodiment, the setting module 1225 updates the first counting module 1223a. The setting module 1225 transmits the data unit and its receiving workstation address and programmed serial number to the MAC processing module 1230 .

在步骤S616,MAC处理模块1230接收数据单元及其接收工作站地址和所编的序列号,并将所接收的数据单元加上帧控制等相关信息域而形成MPDU,并将设定模块1225对数据单元所设序列号应用于所形成的MPDU的序列号域,然后将MPDU发送给物理层协议模块1300。In step S616, the MAC processing module 1230 receives the data unit and its receiving workstation address and the programmed serial number, and adds relevant information domains such as frame control to the received data unit to form an MPDU, and sets the data unit 1225 to the data The sequence number set by the unit is applied to the sequence number field of the formed MPDU, and then the MPDU is sent to the physical layer protocol module 1300 .

图7是本发明的无线局域网装置另一实施方式的模块图。在本实施方式中,在MAC层协议模块1200中,与上述实施例之区别在于MAC处理模块1230先透过数据接口1210从高层协议模块1100接收MSDU及其接收工作站地址,并根据管理需求产生MMPDU及其接收工作站地址。MAC处理层1230将所接收的MSDU及所产生的MMPDU加上相关信息域而形成MPDU,并传送给序列号编号模块1220。在本实施方式中,所加相关信息域包括序列号域,故序列号编号模块1220对所形成的MPDU的序列号域进行更新。FIG. 7 is a block diagram of another embodiment of the wireless local area network device of the present invention. In this embodiment, in the MAC layer protocol module 1200, the difference from the above-mentioned embodiments is that the MAC processing module 1230 first receives the MSDU and the address of the receiving workstation from the high-level protocol module 1100 through the data interface 1210, and generates an MMPDU according to management requirements and its receiving workstation address. The MAC processing layer 1230 adds the relevant information fields to the received MSDU and the generated MMPDU to form an MPDU, and sends it to the sequence numbering module 1220 . In this embodiment, the added related information field includes a sequence number field, so the sequence number numbering module 1220 updates the sequence number field of the formed MPDU.

在其它实施方式中,MAC处理模块1230所加相关信息域不包括序列号域,则编号模块1220对所形成的MPDU进行编序列号域。然后,序列号编号编号模块1220把所形成的MPDU传送给物理层协议模块1300。本实施方式之其它构成组件与上一实施方式之构成组件功能相同,因此不再赘述。In other implementation manners, the relevant information field added by the MAC processing module 1230 does not include the sequence number field, and the numbering module 1220 codes the sequence number field on the formed MPDU. Then, the serial number numbering module 1220 transmits the formed MPDU to the physical layer protocol module 1300 . The functions of other constituent elements of this embodiment are the same as those of the previous embodiment, so they will not be repeated here.

本发明无线局域网装置将不同接收工作站地址及不同传输速率的数据单元分开编序列号,并应用到所形成的MPDU的序列号域,对应接收装置通过检查不同传输速率时所接收MPDU的帧校验域(FCS)可计算出正确MPDU个数,再藉由分析不同传输速率时所接收的MPDU的序列号域可计算出所接收的MPDU总数,从而可求出不同传输速率时的MPDU的错误率(Frame Error Rate,FER),即帧错误率,其计算公式为:The wireless local area network device of the present invention serializes the data units of different receiving workstation addresses and different transmission rates separately, and applies them to the serial number field of the formed MPDU, and the corresponding receiving device checks the frame verification of the MPDU received at different transmission rates Field (FCS) can calculate the correct number of MPDUs, and then by analyzing the serial number fields of MPDUs received at different transmission rates, the total number of MPDUs received can be calculated, so that the error rate of MPDUs at different transmission rates can be obtained ( Frame Error Rate, FER), that is, the frame error rate, its calculation formula is:

FER=错误MPDU个数/所接收MPDU总数;FER = number of wrong MPDUs/total number of received MPDUs;

亦即,FER=(所接收的MPDU总数-正确MPDU个数)/所接收的MPDU总数。That is, FER=(total number of received MPDUs−number of correct MPDUs)/total number of received MPDUs.

因此可确定传输速率(TX Rate)与帧错误率(FER)之关系。接收装置将传输速率与FER之关系回报给传送装置,从而可作为传送装置调整传输速率的一个参考因素。在本实施方式中,序列号编号模块1220所用第一计数模块1223a之函数为F(x)=4x+1,因而,若序列号不超过4095,所接收之MPDU总数可通过下面数学公式计算:Therefore, the relationship between transmission rate (TX Rate) and frame error rate (FER) can be determined. The receiving device reports the relationship between the transmission rate and FER to the transmitting device, which can be used as a reference factor for the transmitting device to adjust the transmission rate. In this embodiment, the function of the first counting module 1223a used by the serial number numbering module 1220 is F(x)=4x+1. Therefore, if the serial number does not exceed 4095, the total number of received MPDUs can be calculated by the following mathematical formula:

所接收的MPDU总数=(最后一个MPDU的SN-第一个MPDU的SN)/4+1;The total number of received MPDUs=(SN of the last MPDU-SN of the first MPDU)/4+1;

若序列号超过4095,则以0-4095为区段分区段求出所接收的MPDU的个数,然后再汇总,即可求出所接收的MPDU之总数。从而,可计算出不同传输速率时的FER。If the sequence number exceeds 4095, calculate the number of MPDUs received by segmenting from 0-4095, and then sum them up to calculate the total number of MPDUs received. Thus, the FER at different transmission rates can be calculated.

Claims (12)

1.一种帧序列号编号方法,用于对无线局域网所使用的数据单元编序列号,其特征在于所述帧序列号编号方法包括:1. A frame sequence numbering method is used to sequence the data unit used by the wireless local area network, and it is characterized in that the frame sequence numbering method comprises: 接收数据单元及其接收工作站地址和传输速率;以及Receive data units and their receiving station addresses and transmission rates; and 将不同接收工作站地址及不同传输速率的数据单元分开编序列号,包括:Separate serial numbers for data units with different receiving workstation addresses and different transmission rates, including: 根据所述数据单元的接收工作站地址选择至少一个计数模块,用于对不同传输速率的数据单元编序列号;及Selecting at least one counting module according to the address of the receiving workstation of the data unit, for serializing data units with different transmission rates; and 根据所述数据单元目前的传输速率从上述计数模块中选择一个计数模块,用于对所述数据单元进行编序列号。A counting module is selected from the above-mentioned counting modules according to the current transmission rate of the data unit, and is used for serializing the data unit. 2.如权利要求1所述的帧序列号编号方法,其特征在于:所述数据单元包括媒介存取控制管理协议数据单元及媒介存取控制服务数据单元。2. The frame sequence numbering method as claimed in claim 1, wherein the data unit comprises a media access control management protocol data unit and a media access control service data unit. 3.如权利要求1所述的帧序列号编号方法,其特征在于:所述将不同接收工作站地址及不同传输速率的数据单元分开编序列号的步骤还包括以下步骤:3. The frame serial number numbering method as claimed in claim 1, characterized in that: the step of separately numbering the data units of different receiving workstation addresses and different transmission rates also includes the following steps: 判断根据所述数据单元的传输速率选择的计数模块所编的序列号是否小于一个预设边界值;以及judging whether the serial number programmed by the counting module selected according to the transmission rate of the data unit is smaller than a preset boundary value; and 若小于所述预设边界值,则把所述数据单元的序列号设为根据所述数据单元的传输速率选择的计数模块所编的序列号。If it is smaller than the preset boundary value, set the serial number of the data unit as the serial number programmed by the counting module selected according to the transmission rate of the data unit. 4.如权利要求3所述的帧序列号编号方法,其特征在于:其更包括以下步骤:如果根据所述数据单元的传输速率选择的计数模块所编的序列号不小于所述预设边界值,则把所述数据单元的序列号设为预设序列号。4. The frame serial number numbering method as claimed in claim 3, characterized in that: it further comprises the following steps: if the serial number compiled by the counting module selected according to the transmission rate of the data unit is not less than the preset boundary value, then set the serial number of the data unit as the default serial number. 5.如权利要求1所述的帧序列号编号方法,其特征在于:其更包括以下步骤:将所编的序列号应用于所述数据单元。5. The method for numbering frame serial numbers as claimed in claim 1, further comprising the step of: applying the programmed serial numbers to said data units. 6.如权利要求1所述的帧序列号编号方法,其特征在于:根据所述数据单元的接收工作站地址选择的至少一个计数模块的数量是根据传输速率的种类而决定。6. The frame sequence numbering method according to claim 1, characterized in that: the quantity of at least one counting module selected according to the address of the receiving workstation of the data unit is determined according to the type of transmission rate. 7.一种无线局域网装置,包括媒介存取控制层协议模块,用于对无线局域网所使用的数据单元编序列号,其特征在于所述媒介存取控制层协议模块包括:7. A wireless local area network device, comprising a media access control layer protocol module, used to serialize the data units used by the wireless local area network, characterized in that the media access control layer protocol module includes: 列表模块,用于根据所述数据单元的接收工作站地址提供所述数据单元的传输速率;以及a list module, configured to provide a transmission rate of the data unit according to the receiving workstation address of the data unit; and 序列号编号模块,用于将不同接收工作站地址及不同传输速率的数据单元分开编序列号,所述序列号编号模块包括:The serial number numbering module is used to serialize the data units with different receiving workstation addresses and different transmission rates separately, and the serial number numbering module includes: 计数模块库,包括多个计数模块;Counting module library, including multiple counting modules; 第一选择模块,用于接收所述数据单元及其接收工作站地址,并根据所述数据单元的接收工作站地址从所述计数模块库中选择至少一个计数模块,分别用于对不同传输速率的数据单元编序列号;及The first selection module is used to receive the data unit and its receiving workstation address, and select at least one counting module from the counting module library according to the receiving workstation address of the data unit, respectively for data with different transmission rates unit serial number; and 第二选择模块,用于根据所述数据单元目前的传输速率从所述第一选择模块所选的计数模块中选择一个计数模块,用于对所述数据单元编序列号。The second selection module is configured to select a counting module from the counting modules selected by the first selection module according to the current transmission rate of the data unit, and to serialize the data unit. 8.如权利要求7所述的无线局域网装置,其特征在于:所述数据单元包含媒介存取控制管理协议数据单元及媒介存取控制服务数据单元。8. The wireless local area network device as claimed in claim 7, wherein the data unit comprises a media access control management protocol data unit and a media access control service data unit. 9.如权利要求7所述的无线局域网装置,其特征在于:所述序列号编号模块更包括判断模块,用于判断所述第二选择模块选择的计数模块所编的序列号是否小于一个预设边界值。9. The wireless local area network device as claimed in claim 7, wherein: the serial number numbering module further includes a judging module for judging whether the serial number edited by the counting module selected by the second selection module is less than a preset Set the boundary value. 10.如权利要求9所述的无线局域网装置,其特征在于:所述序列号编号模块更包括设定模块,用于根据所述判断模块的判断结果为所述数据单元设定序列号。10. The wireless local area network device as claimed in claim 9, wherein the serial number numbering module further comprises a setting module for setting a serial number for the data unit according to the determination result of the determination module. 11.如权利要求10所述的无线局域网装置,其特征在于:所述序列号编号模块更包括媒介存取控制处理模块,用于将所述设定模块所设定的序列号应用于所述数据单元。11. The wireless local area network device according to claim 10, wherein the serial number numbering module further includes a media access control processing module for applying the serial number set by the setting module to the data unit. 12.如权利要求7所述的无线局域网装置,其特征在于:所述第一选择模块选择的至少一个计数模块的数量是根据传输速率的种类而决定。12. The wireless local area network device as claimed in claim 7, wherein the number of at least one counting module selected by the first selection module is determined according to the type of transmission rate.
CN2005100370226A 2005-09-02 2005-09-02 Wireless Local Area Network Device and Its Frame Sequence Numbering Method Expired - Fee Related CN1925481B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2005100370226A CN1925481B (en) 2005-09-02 2005-09-02 Wireless Local Area Network Device and Its Frame Sequence Numbering Method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2005100370226A CN1925481B (en) 2005-09-02 2005-09-02 Wireless Local Area Network Device and Its Frame Sequence Numbering Method

Publications (2)

Publication Number Publication Date
CN1925481A CN1925481A (en) 2007-03-07
CN1925481B true CN1925481B (en) 2010-06-23

Family

ID=37817948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2005100370226A Expired - Fee Related CN1925481B (en) 2005-09-02 2005-09-02 Wireless Local Area Network Device and Its Frame Sequence Numbering Method

Country Status (1)

Country Link
CN (1) CN1925481B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001078489A3 (en) * 2000-04-07 2002-05-23 Broadcom Homenetworking Inc Frame-based communication with variable rate payload
CN1612621A (en) * 2003-10-29 2005-05-04 中兴通讯股份有限公司 Base station internal real-time service data transmitting method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001078489A3 (en) * 2000-04-07 2002-05-23 Broadcom Homenetworking Inc Frame-based communication with variable rate payload
CN1612621A (en) * 2003-10-29 2005-05-04 中兴通讯股份有限公司 Base station internal real-time service data transmitting method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
同上.

Also Published As

Publication number Publication date
CN1925481A (en) 2007-03-07

Similar Documents

Publication Publication Date Title
JP4474422B2 (en) Apparatus and method for transmitting control information in mobile communication system
CN101073242B (en) Method for processing data in Medium Access Control (MAC) layer
JP6025880B2 (en) Data transmission method, apparatus and system
JP4934666B2 (en) Method for transmitting control information in wireless communication system and method for updating transmission window using the same
JP4875084B2 (en) Optimization of radio link control unacknowledged mode header
CN1918825B (en) Transmitting and receiving control protocol data unit with processing time information
US20060136614A1 (en) System and method for variable length aggregate acknowledgements in a shared resource network
CN101213856B (en) Method for transmitting control information in wireless communication system and method for updating transmission window using the method
CN101682557A (en) Transmitting data in a mobile communication system
CN1653837A (en) Detecting a hidden node in a wireless local area network
JP4232978B2 (en) Transmission control method in ARQ system
MXPA06006687A (en) Reducing overheads of a protocol data unit in a wireless communication system.
EP1810449A2 (en) Method of transmitting/receiving control information of data channel for enhanced uplink data transmission
WO1999044341A1 (en) Dynamic frame size setting for multichannel transmission
WO2007098702A1 (en) Data transmitting method and system with re-transmitting request and status report of receiver formatting method
CN105515736A (en) Transmitting data in mobile communication system
CN1213583C (en) A method for forwarding data and signaling
CN1917508B (en) Wireless Local Area Network Device and Its Frame Sequence Numbering Method
CN1214662C (en) Communication method between base station of radio communication system
CN1925481B (en) Wireless Local Area Network Device and Its Frame Sequence Numbering Method
TWI275275B (en) WLAN apparatus and method for numbering sequence numbers of frames thereof
KR100631742B1 (en) AC frame transmission method and device
CN101331720B (en) Methods and equipment for selecting combinations of delivery formats
US20120099468A1 (en) METHOD AND APPARATUS FOR CONTROLLING DOWNLINK DATA SYNCHRONIZATION IN AN eMBMS TRANSMISSION
CN100471197C (en) Method for efficiently sending/receiving data using mobile dedicated network transport layer, network device

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100623

Termination date: 20110902