CN105493563A - Data packet header encapsulation method, data packet header decapsulation method, apparatus and device - Google Patents

Data packet header encapsulation method, data packet header decapsulation method, apparatus and device Download PDF

Info

Publication number
CN105493563A
CN105493563A CN201380079253.6A CN201380079253A CN105493563A CN 105493563 A CN105493563 A CN 105493563A CN 201380079253 A CN201380079253 A CN 201380079253A CN 105493563 A CN105493563 A CN 105493563A
Authority
CN
China
Prior art keywords
address
equipment
receiving device
index
transmission equipment
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.)
Pending
Application number
CN201380079253.6A
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN105493563A publication Critical patent/CN105493563A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/672Short addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

Embodiments of the present invention provide a data packet header encapsulation method, a decapsulation method and apparatus. For the data to be transmitted in the MAC layer, the transmitting device and the receiving device of the data to be transmitted in the MAC layer are determined; according to whether the transmitting device and the receiving device locate in the same wireless sub-network or whether the transmitting device and the receiving device are the wireless access point devices, the respective first index identification or second index identification of the transmitting device and the receiving device is obtained and used as the address of the MAC layer data packet header address domain by replacing the MAC address of the device. Because the bytes of the first index identification or second index identification are all less than the MAC address, thus the space occupied by the MAC layer data packet header is reduced, the final generated space occupied by the WLAN data packet header is reduced, the packet header cost is decreased, and the power consumption can be reduced.

Description

Data packet header encapsulation method, data packet header decapsulation method, apparatus and device
Datagram header method for packing, de-encapsulation method, device and equipment technical field
The application is related to technical field of data processing, more particularly to a kind of datagram header method for packing, de-encapsulation method, device and equipment.Background technology
WLAN (Wireless Local Area Networks, WLAN)Refer to substitute the data transmission network that traditional wire transmission medium is constituted with wireless channel.WLAN basic network framework mainly includes physical layer, MAC (Media Access Control, media access control) layers and logical link control layer.After wireless local network accessing Internet, based on IP (Internet Protocol, procotol)The WLAN of connection can also include being communicated using different communication protocol between Internet, transport layer and application layer, each network hierarchy.
Equipment in WLAN mainly includes wireless access point device and site apparatus, and a wireless access point device can connect several site apparatus formation wireless sub network, and multiple wireless sub networks constitute distributed system, and distributed system can also access internet.Site apparatus in the range of same wireless sub network can directly be communicated, and can also pass through the equipment in the range of wireless access point device and other wireless sub networks or WLAN PERCOM peripheral communication.
When equipment in WLAN is communicated, the data waiting for transmission of equipment transmission are sent, it is necessary to be packaged by each network hierarchy, after the datagram header that corresponding network layering is added respectively, receiving device are transmitted further to.The datagram header of each network hierarchy includes different field contents.By taking MAC layer as an example, MAC layer datas header mainly includes address field, frame control domain, service quality control domain, duration identification field, wherein, address field mainly carries the transmission address of data to be transmitted, receives address, source address and destination address.
Inventor has found that, because data to be transmitted needs to add multiple datagram headers by multiple network hierarchies, the byte number that the WLAN data header ultimately formed takes will be a lot, and header overhead is big, does not meet the demand of low-power consumption during the present invention is realized. The content of the invention
The embodiment of the present application provides a kind of datagram header encapsulation generation method, de-encapsulation method, device and equipment, to solve the technical problem that existing datagram header expense is big, power consumption is higher.
To achieve the above object, the embodiment of the present application provides following technical scheme:
First aspect there is provided a kind of datagram header method for packing, including:
The communication association equipment of media access control MAC layer data to be transmitted is determined, the communication association equipment includes sending equipment and receiving device;
When the transmission equipment and the receiving device are located at same wireless sub network, determine the first index mark of the transmission equipment and the first index mark of the receiving device, the transmission equipment and the receiving device have the unique first index mark respectively, and the first index identifier word joint number is less than MAC Address byte number;
By the first index mark of the transmission equipment and the first index mark of the receiving device, header encapsulation is carried out as the appropriate address in MAC layer datagram header address field, and according to the appropriate address, the MAC layer datagram header is formed.
In the first possible mode of the first aspect, the wireless access point device of wireless sub network pre-sets and distributed where first index is designated the transmission equipment and the receiving device.
May be in mode at second of the first aspect, first index is designated the wireless access point identification of the site identity or equipment that indexing apparatus type is WAP for equipment that indexing apparatus type is website;
When the transmission equipment is site apparatus, the first index of the transmission equipment is designated site identity, wherein, the site apparatus in same wireless sub network respectively there is unique station to identify;Or, when the transmission equipment is wireless access point device, the first index of the transmission equipment is designated wireless access point identification, wherein, the wireless access point device in different distributions formula system has unique wireless access point identification respectively;Or,
When the receiving device is site apparatus, the first index of the receiving device is designated site identity;Or,
When the receiving device is wireless access point device, the first index of the receiving device is designated wireless access point identification. In the third possible implementation of the first aspect, first index by the first index mark of the transmission equipment and the receiving device is identified, and is included as the appropriate address in MAC layer datagram header address field:
When the source device of the data to be transmitted is identical with the transmission equipment, purpose equipment is identical with the receiving device, using the first index mark of the transmission equipment as the transmission address in MAC layer datagram header address field and source address, the first index of the receiving device is identified as the destination address in MAC layer datagram header address field and address is received;Or,
When the source device of the data to be transmitted is identical with the transmission equipment, purpose equipment is different with the receiving device, it regard the first index mark of the transmission equipment as the transmission address in MAC layer datagram header address field and source address, by the first index mark and the MAC Address of the purpose equipment of the receiving device, respectively as the reception address in the blunt leading address domains of MAC layer data ^ and destination address;Or, when the source device of the data to be transmitted is different with the transmission equipment, purpose equipment is identical with the receiving device, the first index of the receiving device is identified as the destination address in MAC layer datagram header address field as the transmission address in MAC layer datagram header address field and source address and receive address by the MAC Address of the first index mark of the transmission equipment and the source device respectively.
With reference to second of the first aspect may implementation, additionally provide the 4th kind of possible implementation of the first aspect, when the transmission equipment and the receiving device are located at different radio subnet, methods described also includes:
Obtain the wireless access point identification of the wireless access point identification and the receiving device for sending equipment;Using the wireless access point identification of the wireless access point identification of the transmission equipment and the receiving device is as the transmission address in MAC layer datagram header address field and receives address, and header encapsulation is carried out according to the transmission address and the reception address, form the MAC layer datagram header.
With reference to second of the possible implementation or the 4th kind of possible implementation of the first aspect of the first aspect, the 5th kind of possible implementation of the first aspect is additionally provided, the wireless access point identification includes distributed system index information and WAP index information.
In the 6th kind of possible implementation of the first aspect, methods described also includes:
Determine the header information of the network layer header of the data to be transmitted;
According to datagram header reduced rule, the information to be transmitted in the header information is determined; The network layer data header according to the Information encapsulation to be transmitted, and be added to after the data to be transmitted head and transmit to logical link control layer;
Transmitted after the data to be transmitted addition link layer data header that logical link control layer is received to
MAC layer.
With reference to the 6th kind of possible implementation of the first aspect, the 7th kind of possible implementation of the first aspect is additionally provided, the information to be transmitted includes the information changed, the information that can not be known by logical link control layer or the information that can not be predicted in communications connection procedure in the header information.
Second aspect there is provided a kind of datagram header de-encapsulation method, including:
Obtain MAC layer and receive data, and decapsulate the datagram header that the MAC layer receives data;When the transmission equipment and receiving device that the MAC layer receives data are located at same wireless sub network, the the first index mark and the first index mark of the receiving device of the transmission equipment in the datagram header address field are obtained, the first index identifier word joint number is less than MAC Address byte number;
According to each the first index mark and the corresponding relation of the MAC Address of each equipment, the MAC Address of the transmission equipment and the receiving device is determined.
The third aspect there is provided a kind of datagram header method for packing, including:
The communication association equipment of MAC layer data to be transmitted is determined, the communication association equipment includes sending equipment and receiving device;
When the transmission equipment or the receiving device are wireless access point device, determine the second index mark of the transmission equipment or the second index mark of the receiving device, the transmission equipment and the receiving device have the unique second index mark respectively, and the second index identifier word joint number is less than MAC Address byte number;
By the second index mark of the transmission equipment or the second index mark of the receiving device, header encapsulation is carried out as the appropriate address in MAC layer datagram header address field, and according to the appropriate address, the MAC layer datagram header is formed;Or,
When the transmission equipment and the receiving device are wireless access point device, the second index mark of the transmission equipment and the second index mark of the receiving device are determined;
By the second index mark of the transmission equipment and the second index mark of the receiving device, header encapsulation, shape are carried out as the appropriate address in MAC layer datagram header address field, and according to the appropriate address Into the MAC layer datagram header.
In the first possible implementation of the third aspect, second index is designated the wireless access point identification of index wireless access point device, and the wireless access point device in different distributions formula system has unique wireless access point identification respectively.
In second of possible implementation of the third aspect, methods described is applied to send in equipment, and when the transmission equipment is site apparatus, methods described also includes:
Detect that the wireless access point identification of the wireless access point device of association is identical with the wireless access point identification that the broadcast message received includes, and the foundation stone of wireless access point device of association is when going out the BSSID or SSID different that service set BSSID or service set SSID include with the broadcast message received, to the wireless access point device transmission address conflict information of association;Or,
When the transmission equipment is wireless access point device, methods described also includes:
Detect that the wireless access point identification that the broadcast message received includes is identical with the wireless access point identification of the transmission equipment, or when receiving the address conflict message of site apparatus transmission of association, reset wireless access point identification.
Fourth aspect there is provided a kind of datagram header de-encapsulation method, including:
Obtain MAC layer and receive data, and decapsulate the datagram header that the MAC layer receives data;When the transmission equipment or receiving device that the MAC layer receives data are wireless access point device, the the second index mark or the second index mark of the receiving device of the transmission equipment in the datagram header address field are obtained, the second index identifier word joint number is less than MAC Address byte number;
According to each the second index mark and the corresponding relation of the MAC Address of each equipment, the MAC Address of the transmission equipment or the receiving device is determined;Or,
When the transmission equipment and receiving device that the MAC layer receives data are wireless access point device, the second index mark and the second index mark of the receiving device of the transmission equipment in the datagram header address field are obtained;
According to each described the second index mark and the corresponding relation of the MAC Address of each equipment, the MAC Address of the transmission equipment and the receiving device is determined.
There is provided a kind of datagram header packaging system in terms of 5th, including:
Equipment determining module, for determining that the communication association of media access control MAC layer data to be transmitted is set Standby, the communication association equipment includes sending equipment and receiving device;
First identifier acquisition module, for when equipment and the receiving device of sending is positioned at same wireless sub network, determine the first index mark of the transmission equipment and the first index mark of the receiving device, the transmission equipment and the receiving device have unique first index mark, and the first index identifier word joint number is less than MAC Address byte number;
First address generation module, for the first index of the first index mark of the transmission equipment and the receiving device to be identified, is used as the appropriate address in MAC layer datagram header address field;
First header package module, the address for being obtained according to first address generation module carries out header encapsulation, forms the MAC layer datagram header.
In the first possible implementation of the described 5th aspect, the wireless access point device of wireless sub network pre-sets and distributed where first index is designated the transmission equipment and the receiving device.
May be in implementation at second of the described 5th aspect, first index is designated the wireless access point identification of the site identity or equipment that indexing apparatus type is WAP for equipment that indexing apparatus type is website;
When the transmission equipment is site apparatus, the first index of the transmission equipment is designated site identity, wherein, the site apparatus in same wireless sub network respectively there is unique station to identify;Or, when the transmission equipment is wireless access point device, the first index of the transmission equipment is designated wireless access point identification, wherein, the wireless access point device in different distributions formula system has unique wireless access point identification respectively;Or,
When the receiving device is site apparatus, the first index of the receiving device is designated site identity;Or,
When the receiving device is wireless access point device, the first index of the receiving device is designated wireless access point identification.
In the third possible implementation of the described 5th aspect, first address generation module includes:First address generates submodule, for when the source device when the data to be transmitted is identical with the transmission equipment, purpose equipment is identical with the receiving device, using the first index mark of the transmission equipment as the transmission address in MAC layer datagram header address field and source address, the first index of the receiving device is identified as the destination address in MAC layer datagram header address field and address is received;Or, Second address generates submodule, for when the source device when the data to be transmitted is identical with the transmission equipment, purpose equipment is different with the receiving device, it regard the first index mark of the transmission equipment as the transmission address in MAC layer datagram header address field and source address, by the first index mark and the MAC Address of the purpose equipment of the receiving device, respectively as the reception address in MAC layer datagram header address field and destination address;Or,
3rd address generates submodule, for when the source device when the data to be transmitted is different with the transmission equipment, purpose equipment is identical with the receiving device, the first index of the receiving device is identified as the destination address in MAC layer datagram header address field as the transmission address in MAC layer datagram header address field and source address and receive address by the MAC Address of the first index mark of the transmission equipment and the source device respectively.
With reference to second of possible implementation of the described 5th aspect, the 4th kind of possible implementation of the 5th aspect is also provided, in addition to:
Second identifier acquisition module, for when it is described transmission equipment and the receiving device be located at different radio subnet when, obtain it is described send equipment wireless access point identification and the receiving device wireless access point identification,
Second address generation module, for using the wireless access point identification of the wireless access point identification of the transmission equipment and the receiving device is as the transmission address in MAC layer datagram header address field and receives address;Second header package module, the address for being obtained according to second address generation module carries out header encapsulation, forms the MAC layer datagram header.
In the 5th kind of possible implementation of the described 5th aspect, in addition to:
Header information determining module, the header information of the network layer header for determining the data to be transmitted;Information determination module is transmitted, for according to datagram header reduced rule, determining the information to be transmitted in the header information;
First data transmission module, for the network layer data header according to the Information encapsulation to be transmitted, and is added to after the data to be transmitted head and transmits to logical link control layer;
Second data transmission module, the data to be transmitted for logical link control layer to be received is transmitted to MAC layer after adding link layer data header.
With reference to the 5th kind of possible implementation of the described 5th aspect, the 6th of the 5th aspect is additionally provided Kind may implementation, the transmission information determination module specifically for by the header, not including it is constant in communications connection procedure, can be known by logical link control layer or the information that can predict, be used as information waiting for transmission.
There is provided a kind of datagram header de-encapsulating devices in terms of 6th, including:
Decapsulation module, receives data, and decapsulate the datagram header that the MAC layer receives data for obtaining MAC layer;First header information acquisition module, transmission equipment and receiving device for receiving data when the MAC layer are located at same wireless sub network, the the first index mark and the first index mark of the receiving device of the transmission equipment in address field are obtained, the first index identifier word joint number is less than MAC Address byte number;First address determination module, for according to each the first index mark and the corresponding relation of the MAC Address of each equipment, determining the MAC Address of the transmission equipment and the receiving device.
There is provided a kind of datagram header packaging system in terms of 7th, including:
Equipment determining module, the communication association equipment for determining MAC layer data to be transmitted, the communication association equipment includes sending equipment and receiving device;
3rd identifier acquisition module, for when it is described transmission equipment or the receiving device be wireless access point device when, determine the second index mark of the transmission equipment or the second index mark of the receiving device, the transmission equipment and the receiving device have the unique second index mark respectively, and the second index identifier word joint number is less than MAC Address byte number;Or, when it is described transmission equipment and the receiving device be wireless access point device when, determine it is described transmission equipment second index mark and the receiving device second index mark;
3rd address generation module, for the second index of the second index mark of the transmission equipment and/or receiving device to be identified, is used as the appropriate address in MAC layer datagram header address field;
3rd header package module, the address for being obtained according to the 3rd address generation module carries out header encapsulation, forms the MAC layer datagram header.
In the first possible implementation of the described 7th aspect, second index is designated the wireless access point identification of index wireless access point device, and the wireless access point device in different distributions formula system has unique wireless access point identification respectively.
In second of possible implementation of the described 7th aspect, described device is applied to send in equipment, When the transmission equipment is site apparatus, described device also includes:
First detection module, the wireless access point identification of wireless access point device for detecting association is identical with the wireless access point identification that the broadcast message received includes, and association wireless access point device Basic Service Set Identification BSSID or service set SSID include with the broadcast message received BSSID or SSID different when, to association wireless access point device transmission address conflict information;Or,
When the transmission equipment is wireless access point device, described device also includes:
Second detection module, for detecting that the wireless access point identification that the broadcast message received includes is identical with the wireless access point identification of the transmission equipment, or when receiving the address conflict message of site apparatus transmission of association, reset wireless access point identification.
Eighth aspect there is provided a kind of datagram header de-encapsulating devices, including:
Data acquisition module, receives data, and decapsulate the MAC layer reception data for obtaining MAC layer;
Second header information acquisition module, when transmission equipment or receiving device for receiving data when the MAC layer are wireless access point device, the the second index mark or the second index mark of the receiving device of the transmission equipment in address field are obtained, the second index identifier word joint number is less than MAC Address byte number;Or, when the transmission equipment and receiving device that the MAC layer receives data are wireless access point device, obtain the second index mark and the second index mark of the receiving device of the transmission equipment in the datagram header address field;
Second address determination module, for according to each the second index mark and the corresponding relation of the MAC Address of each equipment, determining the MAC Address of the transmission equipment and/or the receiving device.
9th aspect is there is provided a kind of datagram header sealed in unit, at least including memory and processor, and the memory is used to store one group of first datagram header canned program;
The processor is used for the one group of first datagram header canned program for calling the memory storage, performs following operation;
The communication association equipment of media access control MAC layer data to be transmitted is determined, the communication association equipment includes sending equipment and receiving device;
When the transmission equipment and the receiving device are located at same wireless sub network, the first index mark of the transmission equipment and the first index mark of the receiving device are determined, the transmission equipment and the reception are set Back-up not Ju You unique first index mark, the first index identifier word joint number is less than MAC Address byte number;
By the first index mark of the transmission equipment and the first index mark of the receiving device, header encapsulation is carried out as the appropriate address in MAC layer datagram header address field, and according to the appropriate address, the MAC layer datagram header is formed.
Tenth aspect decapsulates equipment there is provided a kind of datagram header, at least including memory and processor, and the memory is used to store one group of first datagram header decapsulation program;
The processor is used to call one group of first datagram header of the memory storage to decapsulate program, performs following operation:
Obtain MAC layer and receive data, and decapsulate the datagram header that the MAC layer receives data;When the transmission equipment and receiving device that the MAC layer receives data are located at same wireless sub network, the the first index mark and the first index mark of the receiving device of the transmission equipment in the datagram header address field are obtained, the first index identifier word joint number is less than MAC Address byte number;
According to each the first index mark and the corresponding relation of the MAC Address of each equipment, the MAC Address of the transmission equipment and the receiving device is determined.
There is provided a kind of datagram header sealed in unit for tenth one side, it is characterised in that at least including memory and processor,
The memory is used to store one group of second datagram header canned program;
The processor is used for all one group of second datagram header canned programs for calling the memory storage, performs following operation:
The communication association equipment of MAC layer data to be transmitted is determined, the communication association equipment includes sending equipment and receiving device;
When the transmission equipment or the receiving device are wireless access point device, determine the second index mark of the transmission equipment or the second index mark of the receiving device, the transmission equipment and the receiving device have the unique second index mark respectively, and the second index identifier word joint number is less than MAC Address byte number;
By the second index mark of the transmission equipment or the second index mark of the receiving device, header encapsulation, shape are carried out as the appropriate address in MAC layer datagram header address field, and according to the appropriate address Into the MAC layer datagram header;Or,
When the transmission equipment and the receiving device are wireless access point device, the second index mark of the transmission equipment and the second index mark of the receiving device are determined;
By the second index mark of the transmission equipment and the second index mark of the receiving device, header encapsulation is carried out as the appropriate address in MAC layer datagram header address field, and according to the appropriate address, the MAC layer datagram header is formed.
12nd aspect decapsulates equipment there is provided a kind of datagram header, at least including memory and processor, and the memory is used to store one group of second datagram header decapsulation program;
The processor is used to call the second datagram header described in one group of the memory storage to decapsulate program, performs following operation:
Obtain MAC layer and receive data, and decapsulate the datagram header that the MAC layer receives data;When the transmission equipment or receiving device that the MAC layer receives data are wireless access point device, the the second index mark or the second index mark of the receiving device of the transmission equipment in the datagram header address field are obtained, the second index identifier word joint number is less than MAC Address byte number;
According to each the second index mark and the corresponding relation of the MAC Address of each equipment, the MAC Address of the transmission equipment or the receiving device is determined;Or,
When the transmission equipment and receiving device that the MAC layer receives data are wireless access point device, the second index mark and the second index mark of the receiving device of the transmission equipment in the datagram header address field are obtained;
According to each described the second index mark and the corresponding relation of the MAC Address of each equipment, the MAC Address of the transmission equipment and the receiving device is determined.
Understood via above-mentioned technical scheme, compared with prior art, this application provides a kind of datagram header method for packing, de-encapsulation method, device and equipment, for MAC (Media Access Control, media access control) layer data to be transmitted, equipment and the respective first index mark of receiving device or the second index mark, the address carried as MAC layer datagram header address field are sent by obtaining.Because the first index mark or the second index identifier word joint number are respectively less than device mac address, are reduced hence in so that MAC layer datagram header takes byte number, header overhead is reduced, so as to reduce power consumption. Brief description of the drawings is in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art, the required accompanying drawing used in embodiment or description of the prior art will be briefly described below, apparently, drawings in the following description are only embodiments herein, for those of ordinary skill in the art, on the premise of not paying creative work, other accompanying drawings can also be obtained according to the accompanying drawing of offer.
A kind of flow chart of datagram header method for packing one embodiment that Fig. 1 provides for the embodiment of the present application;
A kind of structural representation for the wireless local area network (WLAN) system that figure la provides for the embodiment of the present application;A kind of flow chart for datagram header method for packing another embodiment that Fig. 2 is provided for the embodiment of the present application;
The flow chart of network layer data header method for packing in a kind of datagram header method for packing that Fig. 3 provides for the embodiment of the present application;
A kind of flow chart of datagram header de-encapsulation method one embodiment that Fig. 4 provides for the embodiment of the present application;
A kind of flow chart for datagram header method for packing another embodiment that Fig. 5 is provided for the embodiment of the present application;
A kind of flow chart for datagram header de-encapsulation method another embodiment that Fig. 6 is provided for the embodiment of the present application;
A kind of structural representation of datagram header packaging system one embodiment that Fig. 7 provides for the embodiment of the present application;
A kind of structural representation for datagram header packaging system another embodiment that Fig. 8 is provided for the embodiment of the present application;
A kind of structural representation for datagram header packaging system another embodiment that Fig. 9 is provided for the embodiment of the present application;
A kind of structural representation of datagram header sealed in unit one embodiment that Figure 10 provides for the embodiment of the present application;
A kind of structural representation for datagram header de-encapsulating devices another embodiment that Figure 11 is provided for the embodiment of the present application;
Figure 12 decapsulates the structure of equipment one embodiment for a kind of datagram header that the embodiment of the present application is provided Schematic diagram;
A kind of structural representation for datagram header packaging system another embodiment that Figure 13 is provided for the embodiment of the present application;
A kind of structural representation for datagram header sealed in unit another embodiment that Figure 14 is provided for the embodiment of the present application;
A kind of structural representation for datagram header de-encapsulating devices another embodiment that Figure 15 is provided for the embodiment of the present application;
Figure 16 decapsulates the structural representation of another embodiment of equipment for a kind of datagram header that the embodiment of the present application is provided.The technical scheme in the embodiment of the present application is clearly and completely described below in conjunction with the accompanying drawing in the embodiment of the present application for embodiment, it is clear that described embodiment is only some embodiments of the present application, rather than whole embodiments.Based on the embodiment in the application, the every other embodiment that those of ordinary skill in the art are obtained under the premise of creative work is not made belongs to the scope of the application protection.
One of main thought of the embodiment of the present application includes:
Carrying out MAC (Media Access Control, media access control) layer data header encapsulation when, determine the transmission equipment and receiving device of MAC layer data to be transmitted, whether same wireless sub network is located at according to transmission equipment and receiving device, or send whether equipment and receiving device are wireless access point device, transmission equipment and the respective first index mark of receiving device or the second index mark can be obtained, instead of the MAC Address of equipment, the address carried as MAC layer datagram header address field.Because the first index mark or the second index identifier word joint number are respectively less than MAC Address, are reduced hence in so that MAC layer datagram header takes byte number, header overhead is reduced, so as to reduce power consumption.Fig. 1 is a kind of flow chart of datagram header method for packing one embodiment of the embodiment of the present application, and this method can include following steps:
Step 101:Determine the communication association equipment of media access control MAC layer data to be transmitted.
Wherein, in the present embodiment, the communication association equipment includes sending equipment and receiving device.
Communication association equipment is the corresponding equipment in address in MAC layer datagram header address field, is also to treat Transmit the equipment being related in data transmission procedure of data.
The technical scheme of the application is primarily adapted for use in WLAN (Wireless Local Area Networks, WLAN)In.
Technical scheme is understood for convenience, and the ABC of the WLAN that technical scheme is related to is described first:
The address of MAC layer header addresses domain carrying mainly includes four Address factors of MAC layer data to be transmitted:Source address, destination address, transmission address and reception address.
Source address is source device address, is the address for the equipment for being originally sent data to be transmitted;Destination address is purpose device address, is the address of the final equipment for receiving data to be transmitted;And send address to send device address, it is the address of the equipment of currently practical transmission data to be transmitted, wherein, it is probably source device to send equipment, it is also possible to forwarding unit during data transfer;Reception address is receiving device address, is the address of the equipment of currently practical reception data to be transmitted, receiving device is probably purpose equipment, it is also possible to forwarding unit during data transfer.
MAC layer datagram header address field generally includes four address fields, may be respectively used for carrying different addresses.When source address with send address it is identical, or destination address and reception address it is identical when, can be represented with the address in same address field.
Mainly include wireless access point device, i.e. Access Point in WLAN, with referred to as AP described in hereafter, and site apparatus, i.e. Station, with referred to as STA described in hereafter.Figure la shows a kind of structural representation of wireless local area network (WLAN) system, from scheming la, one AP equipment can associate multiple STA equipment formation wireless sub networks, and multiple AP equipment formation wireless sub networks are composition distributed system, and distributed system can access internet.
Wherein, the STA equipment in the range of same wireless sub network can directly be communicated, and can also pass through the equipment in the range of AP equipment and other wireless sub networks or WLAN PERCOM peripheral communication.Therefore AP equipment and STA equipment are possibly as transmission equipment or receiving device
The separate sources and whereabouts of data to be transmitted based on WLAN, data communication mode mode mainly have following several situations:
Communication in A, same wireless sub network between STA equipment, i.e. Ad-Hoc is (point-to-point)Communication.Different STA equipments in same wireless sub network, can directly be communicated, be forwarded without forwarding unit. Now, it is source device to send equipment, and receiving device is purpose equipment.In this case, send address identical with source address, receive address identical with destination address.The blunt leading address domain of MAC layer data 4 can carry the address of two STA equipments respectively with two address fields, to represent four Address factors.
In addition, address field, which can also be carried, includes the Subnet Identification of wireless sub network where two STA equipments, i.e. BSSID (Basic Service Set, Basic Service Set Identification), for distinguishing different radio subnet.
Therefore, in the case of communication pattern Α, address field at most needs three address field carrying addresses, and the 4th address field is sky.
The communication of STA equipment between B, two wireless sub networks.
STA equipment between two wireless sub networks is communicated, it is necessary to be realized by the AP equipment of two wireless sub networks.I.e. for example, when the STA1 equipment in the first wireless sub network sends data to the STA2 equipment of the second wireless sub network, data need to be sent to the API equipment of the first wireless sub network by STA1 equipment first, then sent to the AP2 equipment of the second wireless sub network, retransmited by AP2 equipment to STA2 equipment by API.
Therefore, in the case of communication mode B, data transfer mainly includes following process:
Bl, data are sent to API equipment by STA1 equipment.
Now, the address that address is STA1 equipment, the address that reception address is API equipment are sent, source address is identical with sending address, and destination address is the address of STA2 equipment.MAC layer datagram header address field can carry the address of three equipment respectively with three address fields, and to represent four Address factors, the 4th address field is sky.
B2, data are sent to AP2 equipment by API equipment.
Now, API equipment and AP2 equipment play a part of bridge joint, are the data transfer on wireless bridge.
It is API device addresses to send address, and reception address is AP2 device addresses, and source address is STA1 device addresses, and destination address is STA2 equipment.MAC layer data head address field carries the address of four equipment with four address fields respectively, to represent four Address factors
B3, data are sent to STA2 equipment by AP2 equipment.
Now, it is AP2 device addresses to send address.Reception address is STA2 device addresses, and source address is STA1 device addresses, and destination address is identical with receiving address.MAC layer datagram header address field can carry the address of three equipment respectively with three address fields, to represent four Address factors, the 4th ground Location section is sky.
Understand that MAC layer data to be transmitted has directionality with reference to foregoing description.Include frame control domain in MAC layer datagram header, to represent data transfer direction, the frame control domain includes two DS (distribution system, distributed system) fields " To Ds " and " From Ds ".To DS represent that data are sent to AP equipment by STA equipment, and From DS represent that data are sent to STA equipment by AP equipment.
With reference to foregoing description, according to different pieces of information transmission direction, two DS domains field values of the frame control domain can have following several situations:
To DS=0,From DS=0:Represent the communication of the AD Hoc between STA equipment.
To DS=l,From DS = 0:Represent that data are sent to API equipment by STA1 equipment.Now send address identical with source address.
To DS=0,From DS=1:Represent that data are sent to STA2 equipment by AP2 equipment, now receive address identical with destination address.
To DS=l,From DS = 1:Represent that data are sent to AP2 equipment by API equipment, be the data transfer on wireless bridge.
The technical scheme of the application is to be applied particularly to send in the transmission equipment of the data to be transmitted.When carrying out data packet head encapsulation, it is first determined go out communication association equipment, at least including sending equipment and receiving device.
Step 102:When the transmission equipment and the receiving device are located at same wireless sub network, the first index mark of the transmission equipment and the first index mark of the receiving device are determined.
Wherein, the transmission equipment and the receiving device have the unique first index mark respectively, and the first index identifier word joint number is less than MAC Address byte number.
In the prior art, the address in MAC layer datagram header address field is generally represented using the MAC Address of equipment.MAC Address is 6 bytes, the physical address of 48 bits, with global uniqueness.But MAC Address is used, four address fields of address field will at most take 24 bytes, and header overhead is larger.
Inventor has found under study for action, when data to be transmitted is transmitted in same wireless sub network, when the frame control domain " To Ds " and " From Ds " of correspondence foregoing description are respectively " 00 " " 01 " " 10 ", send equipment and receiving device is in same wireless sub network, and the number of devices in same wireless sub network is limited, without being identified with the MAC Address using 48 bits, another ij can be known using the index mark of less bit.For example, being that the area to 8 equipment can be achieved using the bit string of at least three bit when equipment has 8 Point.
Seen from the above description, data to be transmitted only has when transmitting between two AP equipment, sends equipment and is not located at receiving device in same wireless sub network.
Therefore, in the present embodiment, if the transmission equipment and receiving device of data to be transmitted are located at same wireless sub network, obtain and send equipment and the respective first index mark of receiving device.
Unique first index mark is respectively provided with positioned at each equipment of same wireless sub network, the first index mark can pre-set for each equipment.
Wherein, as a kind of possible implementation:The AP equipment of wireless sub network pre-sets and distributed where first index is designated the transmission equipment and the receiving device.
The transmission equipment and receiving device are probably AP equipment or STA equipment.
Because in same wireless sub network, AP equipment is responsible in STA equipment, same wireless sub network, it is necessary to associate to same AP equipment when being communicated between STA equipment, i.e., sets up and be connected with AP equipment.Therefore in the present embodiment, the AP equipment in wireless sub network can pre-set the index mark of difference first, and to add the wireless sub network, the STA equipment associated, and itself index mark of distribution first be set up with it, while preserving first identifies allocation table.
The first index identifier word joint number is less than MAC Address byte number, and according to practical situations, with reference to the possibility number of devices in a wireless sub network, the differentiation of distinct device can be achieved using 2 bytes, the first index mark of 16 bits.
If therefore sending equipment and receiving device being located at same wireless sub network, i.e., with the unique first index mark.
As alternatively possible implementation, it is probably AP equipment or STA equipment due to sending equipment and receiving device, according to different device types, different first can be set to index mark.
The AP marks for the equipment that the first index mark can be AP for the STA marks or indexing apparatus type for the equipment for being STA for indexing apparatus type.
STA marks are that AP equipment pre-sets and distributed for each STA equipment in same wireless sub network;AP marks pre-set for each AP equipment in different distributions formula system.Site apparatus in same wireless sub network respectively there is unique station to identify;Wireless access point device in different distributions formula system has unique wireless access point identification respectively.
Namely the AP equipment in wireless sub network can pre-set different STA marks, and it is wireless to add this Subnet, the STA equipment distribution STA index marks associated are set up with it.
And each AP equipment in different distributed systems, because AP quantity is also limited in distributed system, it is identified again without the MAC Address of 48 bits, is that can be achieved using the mark of less bit.Therefore unique AP marks can be set for each AP equipment of different distributions formula system in advance.
AP marks can include:Distributed system index information and AP index informations, it can also include unicast and indicate index information.Distributed system index information is identical in the AP marks of AP equipment in same distributed system.
According to practical situations, the distributed system index information can distinguish different distributions formula system using 6 bit bit strings, and AP index informations can distinguish the different AP in same distributed system using 9 bit bit strings.Unicast indicates that index information is used to indicate data transfer mode, 1 bit bits string representation can be used, for 1 when, represent to be currently unicast transmission mode, technical scheme is primarily adapted for use in unicast transmission mode, it follows that AP marks can be that differentiation can be achieved using 2 bytes, the identifier of 16 bits.
Certainly each AP equipment that can moreover be only in same distributed system sets AP to identify.
STA is identified and AP identifier words joint number can be different, but respectively less than MAC Address byte number.
When the transmission equipment is STA equipment, the first index of the transmission equipment is designated STA marks, wherein, the STA equipment in same wireless sub network respectively there is unique station to identify;Or, when the transmission equipment is AP equipment, the first index of the transmission equipment is designated AP marks, wherein, the AP equipment in different distributions formula system respectively there is unique AP to identify;Or,
When the receiving device is STA equipment, the first index of the receiving device is designated STA marks;Or,
When the receiving device is AP equipment, the first index of the receiving device is designated AP marks.Step 103:By the first index mark of the transmission equipment and the first index mark of the receiving device, header encapsulation is carried out as the appropriate address in MAC layer datagram header address field, and according to the appropriate address, the MAC layer datagram header is formed.
First index mark of the transmission equipment of acquisition and the first index mark of receiving device can substitute MAC Address due to uniqueness, be used as the index address for sending equipment and receiving device.
It therefore, it can the first index mark and the first index mark of the receiving device that will send equipment, make corresponding appropriate address in the blunt leading address domains of MAC layer data ^, at least including sending address and receiving address. And according to different pieces of information transmission direction, source address and destination address etc. can also be determined, for other addresses carried in address field, still can be represented using the MAC Address of equipment, can certainly use can be discussed in detail in other implementations, embodiment below.
The datagram header that the address determined according to the first index mark is packaged into, assuming that Suo Gong] mark can use 2 byte representations, at least transmission address and reception address in now address field carrying address can use 2 byte representations, so compared to the MAC Address of 6 bytes, MAC layer datagram header can at least save 8 byte spaces, greatly reduce header overhead..
In the present embodiment, determine the transmission equipment and receiving device of MAC layer data to be transmitted, and obtain the first index mark of the transmission equipment and the first index mark of receiving device, it is used as the appropriate address in MAC layer header addresses domain, it is encapsulated into according to the appropriate address in MAC layer datagram header, because the first index mark replaces the MAC Address of equipment, address takes byte number and reduced, header overhead is reduced, so as to reduce power consumption.
Wherein, the form of MAC layer datagram header is as shown in table 1 below, mainly including address field, frame control domain, service quality control, duration mark ID.The determination for the address carried for address field that the application is mainly described.Other domain informations in MAC layer datagram header except address field can determine that the application is defined not to this according to prior art.
Table 1
Frame control domain includes " To Ds " and " From Ds " two DS fields, and it is 0 or 1 that value is gone respectively, for representing data transfer direction.
Address field mainly includes four address fields, for carrying different address.Such as carrying of address 1 receives address, address 27 | and carry and send address.
Because source device may be identical with transmission equipment, purpose equipment may be identical with receiving device, so that source address is identical with address is sent, destination address is identical with address is received, now source address and transmission address can be represented with same address, destination address and reception address can be represented with same address, be carried in same address field.
Therefore in the embodiment of the present application, the first index of the first index mark of the transmission equipment and the receiving device is identified, can be included as the appropriate address in MAC layer datagram header address field following several Situation:
When the source device of the data to be transmitted is identical with the transmission equipment, purpose equipment is identical with the receiving device, using the first index mark of the transmission equipment as the transmission address in MAC layer datagram header address field and source address, the first index of the receiving device is identified as the destination address in MAC layer datagram header address field and address is received;Or,
When the source device of the data to be transmitted is identical with the transmission equipment, purpose equipment is different with the receiving device, first index mark of the transmission equipment is sent into address and source address, the first index mark and the MAC Address of the purpose equipment by the receiving device as in MAC layer datagram header address field, respectively as the reception address in the blunt leading address domains of MAC layer data ^ and destination address;Or, when the source device of the data to be transmitted is identical with the receiving device with transmission equipment difference, purpose equipment, the MAC Address of the first index mark of the transmission equipment and the source device is indexed to mark as the transmission address in MAC layer datagram header address field and source address, using the first of the receiving device respectively and is used as the destination address in MAC layer datagram header address field and receives address.
In the prior art, frame control domain, service quality control domain and duration mark are respectively required for taking 2 bytes, when address field includes four address fields, need to take 6 bytes using MAC Address, just blunt header overhead need at most take 32 bytes to MAC.
And use the technical scheme of the present embodiment, when sending equipment and receiving device belongs to same wireless sub network, assuming that the first index mark can use 2 byte representations, the datagram header being packaged into according to the embodiment of the present application, address is at least sent in address field and address is received can use 2 byte representations, so compared to the MAC Address of 6 bytes, MAC layer datagram header can at least save 8 byte spaces, greatly reduce header overhead.
And when sending equipment and receiving device is located at same wireless sub network, i.e., " the To Ds " and " From Ds " in DS domains is respectively " 00 " " 0 " 10 " when, address field needs three address fields, and the 4th address field can be omitted.The space of 12 bytes can now be saved.
Especially when STA equipment during To Ds " with " From Ds " being " 00 ", i.e. transmission equipment and receiving device are same wireless sub network, it is source device now to send equipment, and receiving device is purpose equipment, and address field only needs two address fields.MAC layer datagram header can at most save 20 bytes, as shown in table 2 below.
Table 2 The address 2 of address 1
The service quality control of frame control domain ID sequence controls domain
(2 bytes)(2 bytes)Fig. 2 is a kind of flow chart of another embodiment of datagram header method for packing of the embodiment of the present application, and this method can include following steps:
Step 201:Determine the communication association equipment of media access control MAC layer data to be transmitted.
Wherein, the communication association equipment includes sending equipment and receiving device;
Step 202:Judge whether the transmission equipment and the receiving device are located at same wireless sub network, if so, step 203 is performed, if it is not, performing step 204.
Step 203:Determine the first index mark of the transmission equipment and the first index mark of the receiving device.
Wherein, it may be STA equipment or AP equipment to send equipment, and receiving device may be STA equipment or AP equipment.
Therefore, when the transmission equipment is STA equipment, the first index of the transmission equipment is designated STA marks;Or,
When the transmission equipment is AP equipment, the first index of the transmission equipment is designated AP marks, or,
When the receiving device is STA equipment, the first index of the receiving device is designated STA marks;Or,
When the receiving device is AP equipment, the first index of the receiving device is designated AP marks.Wherein, there is each STA equipment in same wireless sub network unique STA to identify.
There is AP equipment in different distributions formula system unique AP to identify.
STA marks are that AP equipment pre-sets and distributed for each STA equipment in same wireless sub network;The AP marks pre-set for each AP equipment in different distributions formula system.
Step 204:By the STA marks or AP marks of the transmission equipment, and the STA marks or AP marks of the receiving device, header encapsulation is carried out as the appropriate address in MAC layer datagram header address field, and according to the appropriate address, the MAC layer datagram header is formed.
Wherein, identified according to the STA marks or AP that send equipment, and the STA marks or AP of the receiving device are identified, and can at least be determined the transmission address in MAC layer datagram header address field and be connect Receive address.
According to the different transmission directions of data, when source device is identical with sending equipment, the STA marks or AP marks for sending equipment are used as the transmission address in MAC layer data head address field and source address, an address field in address field can be taken by now sending address and source address, carry the STA marks or AP marks of the transmission equipment.
When purpose equipment is identical with receiving device, the STA marks or AP marks of receiving device are used as the reception address in MAC layer datagram header address field and destination address, an address field in address field can be taken by now receiving address and destination address, carry the STA marks or AP marks of the receiving device.
And when source device is different from sending equipment, an address field can be taken using the MAC Address of source device as the source address in MAC layer data header addresses domain, carry the MAC Address of the source device.
When purpose equipment is different from receiving device, it can take a field using the MAC Address of purpose equipment as the destination address in MAC layer data header addresses domain, carry the MAC Address of the purpose equipment.
Step 205:The AP for obtaining the AP marks for sending equipment and the receiving device is identified.Step 206:The AP of the AP marks of the transmission equipment and the receiving device is identified as the transmission address in MAC layer data header addresses domain and address is received, and header encapsulation is carried out according to the transmission address and the reception address, form the MAC layer datagram header.
When sending equipment and receiving device positioned at different radio subnet, now, it is AP equipment to send equipment and receiving device.And the AP equipment in different distributed systems can be made a distinction using AP marks.Therefore the AP marks of equipment and the AP marks of receiving device can will be sent, as the transmission address in MAC layer datagram header address field and reception address, instead of MAC Address as index address, the byte space of address field occupancy can be saved.
When sending equipment and receiving device positioned at different radio subnet, now MAC Address can be respectively adopted as corresponding source address and destination address in address field in source device and purpose equipment, and now MAC layer datagram header address field needs four address fields to carry the index address for sending equipment, receiving device, source device and purpose equipment respectively.
According to the technical scheme of the present embodiment, it is assumed that index mark is 2 bytes, and when " To Ds " and " From Ds " is " 00 ", two address fields of the address field of MAC layer datagram header are 2 bytes, the 3rd address field Omitted with the 4th address field, then can save 20 bytes.Wherein, the wireless sub network mark of wireless sub network where the carrying of 3rd address field sends equipment and receiving device, because wireless sub network is designated the addresses of Suo Gong 1 of AP equipment, therefore AP marks in the present embodiment can be used to be identified instead of MAC Address as wireless sub network, now address field can at most save 18 bytes.
It is 2 bytes that address is sent when " To Ds " and " From Ds " is " 01 ", in the address field of MAC layer datagram header and address is received, and source address is 6 bytes, and the 4th address field is omitted, and can save 14 bytes.
It is 2 bytes that address is sent when " To Ds " and " From Ds " is " 01 ", in the address field of MAC layer datagram header and address is received, and destination address is 6 bytes, and the 4th address field is omitted, and can save 14 bytes.
It is 2 bytes that address is sent when " To Ds " and " From Ds " is " 11 ", in the address field of MAC layer datagram header and address is received, and destination address and source address are 6 bytes, can save 8 bytes.
In the present embodiment, when carrying out the MAC layer datagram header encapsulation of data to be transmitted, for the address carried needed for MAC layer data header addresses domain, whether same wireless sub network is located at according to transmission equipment and receiving device, and send equipment and the device type of receiving device, the the first index mark for sending equipment and the first index mark of receiving device can be obtained respectively, the first index mark can be STA marks or AP marks, so as to replace MAC Address with the first index mark, the address carried as MAC layer datagram header address field, because the first index identifier word joint number is less than MAC Address byte number, MAC layer datagram header address field space-consuming reduces, so that MAC layer datagram header expense reduces, so as to which the header overhead of the WLAN datagram header ultimately formed reduces, advantageously reduce power consumption.
In above-mentioned corresponding diagram 1 and datagram header method for packing embodiment shown in Fig. 2, the encapsulation for MAC layer datagram header mainly described, applied to the transmission equipment in WLAN, the transmission equipment can be STA equipment or AP equipment.
Because the basic framework of WLAN includes multiple network hierarchies.Each network hierarchy datagram header for sending equipment and receiving device progress transmission of data is to encapsulate generation successively from the upper strata of network hierarchy to lower floor, therefore the data to be transmitted of MAC layer is the data from logical link control layer of reception, when WLAN connects internet, the data of the logical link control layer are the data from Internet of reception.
Because data need to pass through each network hierarchy, the datagram header of addition corresponding network layering when sending. Therefore in the application, before the data to be transmitted for determining media access control MAC layer, as shown in figure 3, following steps can also be included:
Step 301:Determine the header information of the network layer header of the data to be transmitted;
Wireless local network accessing Internet, from top to bottom, the network architecture include application layer, transport layer, Internet, logical link control layer, MAC layer, physical layer.
Therefore the data to be transmitted of Internet is the data from transport layer of reception.
The data to be transmitted of Internet is needed to transmit after addition network layer header to logical link control layer, and logical link control layer is just transmitted to MAC layer after adding link layer data header.
The header of network layer header mainly includes following domain:
TF:Traffic Class and Flow Label types of service and stream label;
NH:The blunt heads of Next Header next 4;
HLIM:Hop Limit hop counts are limited;
CID:Context Identifier Extension Context identifier extends;
SA:Source Address source addresses;
SAM:Source Address Mode source address patterns;
M:Multicast Compression multicasts are compressed;
DA:Destination Address destination addresses;
DAM:Destination Address Mode destination address patterns;
Source address in network layer header refers to that source IP address, and destination address refer to purpose IP address.Step 302:According to datagram header reduced rule, the information to be transmitted in the header information is determined.Header-compressed rule, which defines which information in network layer header, to be transmitted, and which information can be omitted.
The header-compressed rule can include:
(1) just constant domain is kept to compress in communications connection procedure in blunt head;
(2) domain that is changing in header but can predicting can be compressed;
(3) domain that be would know that in header by logical link control layer can be compressed.
Therefore the information to be transmitted determined in step 302 is including the information changed in communications connection procedure in the header information, the information that can not be known by logical link control layer or the letter that can not be predicted Such as, the source IP address and purpose IP address in Internet, can use local links address, be represented by prefix and interface identifier.In a usual wireless sub network, prefix is all identical;Interface identifier can be used to distinguish the IP address of distinct device.
So that IP address is IPv6 addresses as an example:
IPv6 local links address=FE80::/ 64 (interface identifiers).
Interface identifier is 64 bits, thus determine that interface identifier is that can determine Ipv6 addresses.The generation method of interface identifier mainly has two kinds:
A, formed by 64 bit extended MACs addresses of 802.15.4 standards.
B, generate according to the following equation:
Zero (24 bit)+0xFFFE+zero (8 bit)+short address(16 bit).
Generated by the short address of the bit of zero-sum 16 of 32 bits.
Wherein, the short address is the first index mark for referring to equipment determined by MAC layer.In the Ipv6 addresses of source device, the short address is the first index mark for referring to source device.In the Ipv6 addresses of purpose equipment, the short address is the first index mark for referring to purpose equipment.The associated description of first index mark may refer to described in above-described embodiment.
It can thus be concluded that, source address and destination address in network layer header information its can be known according to address generating mode, therefore the address information can not be included in information to be transmitted, when IP address is IPv6 addresses, the network layer header at least byte of boil down to 2 can be caused, the space of 38 bytes is saved, header overhead is greatly reduced.
Step 303:The network layer data header according to the Information encapsulation to be transmitted, and be added to after the data to be transmitted head and transmit to logical link control layer.
Step 304:Transmitted after the data to be transmitted addition link layer data header that logical link control layer is received to MAC layer.
The data to be transmitted that MAC layer receives logical link control layer can generate the header information of MAC layer according to the method described in above-mentioned several embodiments.
In addition, equipment is sent to identify the first index after the MAC Address of alternate device, receiving device is received after data to be transmitted, address that can therefrom in decapsulate MAC layer datagram header address field, because the address at least partially first in MAC layer datagram header address field indexes mark, therefore, referring to Fig. 4, the embodiment of the present application additionally provides a kind of flow chart of datagram header de-encapsulation method one embodiment so that connect Receiving unit can obtain the MAC Address of data correspondence communication association equipment.
This method can include following steps:
Step 401:Obtain MAC layer and receive data, and decapsulate the datagram header that the MAC layer receives data.
Step 402:When the transmission equipment and the receiving device that the MAC layer receives data are located at same wireless sub network, the first index mark and the first index mark of the receiving device of the transmission equipment in address field are obtained.
Wherein, the first index identifier word joint number is less than MAC Address byte number.
Send the first index mark of equipment namely refer to the transmission address of address field carrying, the first index mark of receiving device is the reception address of address field carrying.
Therefore the transmission address of address field carrying can be determined first and address is received, the transmission address is the first index mark for sending equipment, and the reception address is the first index mark of receiving device.
Step 403:According to each the first index mark and the corresponding relation of the MAC Address of each equipment, the MAC Address of the transmission equipment and receiving device is determined.
Each the first index mark and the one-to-one relationship of the MAC Address of each equipment can be stored and manage by sending equipment.When sending data to receiving device, the corresponding relation of each the first index mark and the MAC Address of each equipment can be carried.Certain corresponding relation can also individually be sent.
According to each the first index mark and the corresponding relation of the MAC Address of each equipment, you can to obtain the MAC Address of the transmission equipment and receiving device.
When source device with send equipment it is identical, or purpose equipment it is identical with receiving device when, you can acquisition source device MAC Address, and purpose equipment MAC Address.
Receiving device determines the MAC Address of equipment, you can follow-up data transfer is carried out according to the MAC Address.
Fig. 5 shows a kind of flow chart of another embodiment of datagram header method for packing of the embodiment of the present application, and this method can include following steps:
Step 501:The communication association equipment of MAC layer data to be transmitted is determined, the communication association equipment includes sending equipment and receiving device.
Step 502:When the transmission equipment and/or the receiving device are AP equipment, the second index mark of the second index mark and/or the receiving device for sending equipment is obtained. Sending equipment and receiving device, at least one may be AP equipment, or be AP equipment simultaneously.Therefore, step 502 be when it is described transmission equipment or the receiving device be AP equipment when, determine the second index mark of the transmission equipment or the second index mark of the receiving device, the transmission equipment and the receiving device have the unique second index mark respectively, and the second index identifier word joint number is less than MAC Address byte number;Or,
When the transmission equipment and the receiving device are wireless access point device, the second index mark of the transmission equipment and the second index mark of the receiving device are determined.
Send equipment and the receiving device has the unique second index mark respectively, and the second index identifier word joint number is less than MAC Address byte number.
Step 503:By the second index mark of the transmission equipment and/or the second index mark of receiving device, header encapsulation is carried out as the appropriate address in MAC layer datagram header address field, and according to the appropriate address, the MAC layer datagram header is formed.
When the transmission equipment or the receiving device are AP equipment, it described will send the second index mark of equipment or the second index mark of the receiving device, it is used as the appropriate address in MAC layer datagram header address field, and header encapsulation is carried out according to the appropriate address, form the MAC layer datagram header;Or, when the transmission equipment and the receiving device are AP equipment, it described will send the second index mark of equipment and the second index mark of the receiving device, it is used as the appropriate address in MAC layer datagram header address field, and header encapsulation is carried out according to the appropriate address, form the MAC layer datagram header
In the present embodiment, if send equipment and receiving device at least one when being AP equipment, second index mark of AP equipment can be replaced MAC Address, it is used as the index address for sending equipment and/or receiving device, in carrying and MAC layer datagram header address field, respectively as transmission address and reception address.
Difference AP equipment has the unique second index mark respectively in same distributed system or in different distributions formula system, therefore the transmission equipment and/or receiving device have the unique second index mark respectively.
Wherein, the second index mark can be specially the AP marks described in above-described embodiment, be pre-set for each AP equipment in different distributions formula system.
AP marks can include distributed system index information, AP index informations and unicast and indicate index information.Distributed system index information is identical in the AP marks of AP equipment in same distributed system.
Because AP quantity is also limited in distributed system, it is identified again without the MAC Address of 48 bits, is that can be achieved using the mark of less bit.Therefore can be different distributions formula system in advance Each AP equipment of system sets unique AP marks.
According to practical situations, the distributed system index information can distinguish different distributions formula system using 6 bit bit strings, and AP index informations can distinguish the different AP in same distributed system using 9 bit bit strings.Unicast indicates that index information is used to indicate data transfer mode, 1 bit bits string representation can be used, for 1 when, represent to be currently unicast transmission mode, technical scheme is primarily adapted for use in unicast transmission mode, it follows that AP marks can be that differentiation can be achieved using 2 bytes, the identifier of 16 bits.
In this embodiment, when carrying out the MAC layer datagram header encapsulation of data to be transmitted, for the address for determining to carry needed for MAC layer data header addresses domain, whether it is AP equipment according to the transmission equipment of data to be transmitted and/receiving device, the the second index mark for sending equipment and/or the second index mark of receiving device can be obtained respectively, MAC Address is replaced from mark can be indexed by second, the appropriate address carried as MAC layer datagram header address field, that is, send address and receive address.Because the second index identifier word joint number is less than MAC Address byte number, MAC layer datagram header address field space-consuming reduces, so that MAC layer datagram header expense reduces, so that the header overhead of the WLAN datagram header ultimately formed reduces, power consumption is advantageously reduced.
In addition, equipment and/or receiving device will sent using the second index mark replacement MAC Address, after the appropriate address in MAC layer datagram header address field, when can also work as transmission equipment and receiving device positioned at same wireless sub network, the STA equipment in equipment and/receiving device will be sent, its MAC Address is replaced using STA marks, after the appropriate address in MAC layer datagram header address field, so as to further reduce header overhead.In WLAN, AP equipment meeting fixed time broadcast sends beacon beacon frames, and for notifying AP presence, STA equipment obtains beacon frames by scanning, so that the presence of AP equipment is learnt, to determine whether to be associated with.Beacon frames include wireless sub network mark, i.e. BSSID or SSID (Service Set Identifier, service set).
In embodiment shown in Fig. 5, AP equipment is previously provided with the second index mark, the application, and AP equipment can be broadcasted its second index mark by beacon frames, to notify STA equipment and other AP equipment.
But it is due to that the byte number that the second index is identified is less, the AP equipment that can be distributed is limited, therefore Set for AP equipment after the second index mark, can also detect that second index identifies whether can use.Specifically:
When the transmission equipment of data to be transmitted is STA equipment:
Detect that the AP marks of the AP equipment of association are identical with the AP marks that the broadcast message received includes, and the foundation stone of AP equipment of association is when going out the BSSID or SSID different that service set BSSID or service set SSID include with the broadcast message received, to the AP equipment transmission address conflict information of association.
When sending equipment for STA equipment, after it is associated with AP equipment, AP the second index mark and BSSID or SSID can be known, STA equipment can also scan the index of equipment second mark and BSSID or SSID for obtaining other AP simultaneously, if its second index mark AP associated with it for scanning the AP equipment obtained device identification is identical, and BSSID or SSID is different, the AP equipment AP associated with it for then illustrating its scanning is not same AP equipment, but because the second index mark is identical, illustrate that the second index mark is set to conflict, then to the AP feedback addresses conflicting informations that it is associated.
Or, when the transmission equipment of the data to be transmitted is AP equipment:
Detect that the AP marks that the broadcast message received includes are identical with the AP marks of the transmission equipment, or when receiving the address conflict message of STA equipment transmission of association, illustrate address conflict, then reset AP marks.
The operation of the address detected, can perform or be periodically executed in real time, to ensure the correctness of data transfer.The encapsulation of the datagram header method for packing, the mainly datagram header of MAC layer of embodiment illustrated in fig. 5 description.And because data need to pass through each network hierarchy, the datagram header of addition corresponding network layering when sending.Therefore in the application, before the data to be transmitted for determining media access control MAC layer, the encapsulation of the network layer data header of embodiment as shown in Figure 3 can also be included.
In addition, the datagram header method for packing described according to Fig. 5 illustrated embodiments is carried out after datagram header encapsulation, receiving device can be with the address in decapsulate MAC layer datagram header address field from the data received, because the address at least partially second in MAC layer datagram header address field indexes mark, therefore, referring to Fig. 6, the embodiment of the present application additionally provides a kind of flow chart of another embodiment of datagram header de-encapsulation method so that receiving device can obtain the MAC Address of data correspondence communication association equipment. This method can include following steps:
Step 601:Obtain MAC layer and receive data, and decapsulate the datagram header that the MAC layer receives data.
Step 602:When the MAC layer receives data transmitting equipment and/or the receiving device is AP equipment, the second index mark and/or the second index mark of receiving device of the transmission equipment in address field are obtained.
Wherein, sending equipment and receiving device, at least one may be AP equipment, or be AP equipment simultaneously.
Therefore, step 602 be when it is described transmission equipment or the receiving device be AP equipment when, determine it is described transmission equipment second index mark or the receiving device second index mark, or,
When the transmission equipment and the receiving device are wireless access point device, the second index mark of the transmission equipment and the second index mark of the receiving device are determined.
Send equipment and the receiving device has the unique second index mark respectively, and the second index identifier word joint number is less than MAC Address byte number.
Send the second index mark of equipment namely refer to the transmission address of address field carrying, the second index mark of receiving device is the reception address in address field carrying address.
Therefore the transmission address of address field carrying can be determined first and address is received, the transmission address is the second index mark for sending equipment, and the reception address is the second index mark of receiving device.
Step 603:According to each the second index mark and the corresponding relation of the MAC Address of each equipment, the MAC Address of the transmission equipment and/or the receiving device is determined.
The one-to-one relationship of MAC Address of the index of difference second mark and distinct device can be stored and manage by sending equipment.When sending data to receiving device, the corresponding relation of each the second index mark and the MAC Address of each equipment can be carried.Certain corresponding relation can also individually be sent.
According to each the second index mark and the corresponding relation of the MAC Address of each equipment, you can to obtain the MAC Address of the transmission equipment and/or receiving device.
That is, when the transmission equipment or the receiving device are AP equipment, i.e., according to each the second index mark and the corresponding relation of the MAC Address of each equipment, the MAC Address of the transmission equipment or the receiving device is determined;Or,
When the transmission equipment and the receiving device are AP equipment, i.e., identified according to each second index With the corresponding relation of the MAC Address of each equipment, the MAC Address of the transmission equipment and/or the receiving device is determined.
Receiving device determines the MAC Address of distinct device, you can follow-up data transfer is carried out according to the MAC Address of the distinct device.
For foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the application is not limited by described sequence of movement, because according to the application, some steps can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art should also know, embodiment described in this description belongs to preferred embodiment, necessary to involved action and module not necessarily the application.
Fig. 7 is a kind of structural representation of datagram header packaging system one embodiment of the embodiment of the present application, and the device can include:
Equipment determining module 701, the communication association equipment for determining media access control MAC layer data to be transmitted, the communication association equipment includes sending equipment and receiving device.
First identifier acquisition module 702, for when equipment and the receiving device of sending is positioned at same wireless sub network, determining that the first index mark of the transmission equipment and the first of the receiving device index and identified.
The transmission equipment and the receiving device have unique first index mark, and the first index identifier word joint number is less than MAC Address byte number.
When data to be transmitted is transmitted in same wireless sub network, send equipment and receiving device is in same wireless sub network, and the number of devices in same wireless sub network is limited, it is i.e. recognizable using the index mark of less bit without being identified with the MAC Address using 48 bits.For example, being that the differentiation to 8 equipment can be achieved using the bit string of at least three bit when equipment has 8.
Therefore, in the present embodiment, if the transmission equipment and receiving device of data to be transmitted are located at same wireless sub network, obtain and send equipment and the respective first index mark of receiving device.
Wherein, as a kind of possible implementation, the AP equipment of wireless sub network pre-sets and distributed where first index is designated the transmission equipment and the receiving device.
Distinct device in same wireless sub network includes STA equipment and AP equipment.Therefore AP equipment can be their own and the advance equipment of STA equipment associated with it and distribute the index mark of difference first.
As alternatively possible implementation, the first index mark can be for indexing apparatus type The AP marks for the equipment for being AP for the STA marks or indexing apparatus type of STA equipment;The STA marks are that AP equipment pre-sets and distributed for each STA equipment in same wireless sub network;The AP marks pre-set for each AP equipment in different distributions formula system.
AP marks can include distributed system index information and AP index informations, and it can also include unicast and indicate index information.
Now, when the transmission equipment is STA equipment, the first index of the transmission equipment is designated STA marks;Or,
When the transmission equipment is AP equipment, the first index of the transmission equipment is designated AP marks, or,
When the receiving device is STA equipment, the first index of the receiving device is designated STA marks;Or,
When the receiving device is AP equipment, the first index of the receiving device is designated AP marks.Wherein, there is each STA equipment in same wireless sub network unique STA to identify.
There is AP equipment in different distributions formula system unique AP to identify.
First address generation module 703, for the first index of the first index mark of the transmission equipment and the receiving device to be identified, is used as the appropriate address in MAC layer datagram header address field.
According to the respective first index mark of transmission equipment and receiving device, MAC Address, the transmission address that can be at least carried as MAC layer datagram header address field and reception address can be substituted.
For other addresses carried in address field, still can be represented using the MAC Address of equipment
Wherein, as a kind of possible implementation, the first address generation module 703 can include:First address generates submodule 7031, when the source device of the data to be transmitted is identical with the transmission equipment, purpose equipment is identical with the receiving device, using the first index mark of the transmission equipment as the transmission address in MAC layer datagram header address field and source address, the first index of the receiving device is identified as the destination address in MAC layer datagram header address field and address is received;
Second address generates submodule 7032, for when the source device when the data to be transmitted is identical with the transmission equipment, purpose equipment is different with the receiving device, first index mark of the transmission equipment is sent into address and source address, the first index mark and the MAC Address of the purpose equipment by the receiving device as in MAC layer datagram header address field, respectively as the reception address in MAC layer datagram header address field and destination address; 3rd address generates submodule 7033, for when the source device of the data to be transmitted be identical with the receiving device with transmission equipment difference, purpose equipment, the MAC Address of the first index mark of the transmission equipment and the source device to be indexed to mark as the transmission address in the blunt leading address domains of MAC layer data ^ and source address, using the first of the receiving device respectively and is used as the destination address in MAC layer datagram header address field and receives address.
First header package module 704, the address for being obtained according to first address generation module carries out header encapsulation, forms the MAC layer datagram header.
In the present embodiment, by the transmission equipment and receiving device of determining MAC layer data to be transmitted, and obtain the first index mark of the transmission equipment and the first index mark of receiving device, it is used as the appropriate address in MAC layer header addresses domain, it is encapsulated into according to the appropriate address in MAC layer datagram header, because the first index mark replaces MAC Address, address takes byte number and reduced, header overhead is reduced, so as to reduce power consumption.
Fig. 8 is a kind of structural representation of another embodiment of datagram header packaging system of the embodiment of the present application, and the device can include:
Equipment determining module 801, the communication association equipment for determining media access control MAC layer data to be transmitted, the communication association equipment includes sending equipment and receiving device.
First identifier acquisition module 802, for when equipment and the receiving device of sending is positioned at same wireless sub network, determining that the first index mark of the transmission equipment and the first of the receiving device index and identified.
Wherein, the AP marks for the equipment that the STA marks or indexing apparatus type that the first index mark can be used for the equipment that indexing apparatus type is STA are AP;The STA marks are that AP equipment pre-sets and distributed for each STA equipment in same wireless sub network;AP mark is that each AP equipment is pre-set in different distributions formula system.
AP marks include distributed system index information, AP index informations, can also include unicast and indicate index information.
Therefore specifically, when the transmission equipment is STA equipment, the first index of the transmission equipment is designated STA marks;Or,
When the transmission equipment is AP equipment, the first index of the transmission equipment is designated AP marks, or, When the receiving device is STA equipment, the first index of the receiving device is designated STA marks;Or,
When the receiving device is AP equipment, the first index of the receiving device is designated AP marks.Wherein, there is each STA equipment in same wireless sub network unique STA to identify.
There is AP equipment in different distributions formula system unique AP to identify.
First address generation module 803, for the first index of the first index mark of the transmission equipment and the receiving device to be identified, is used as the appropriate address in MAC layer datagram header address field.
Wherein, as a kind of possible implementation, the first address generation module 803 can include:First address generates submodule 8031, when the source device of the data to be transmitted is identical with the transmission equipment, purpose equipment is identical with the receiving device, using the first index mark of the transmission equipment as the transmission address in MAC layer datagram header address field and source address, the first index of the receiving device is identified as the destination address in MAC layer datagram header address field and address is received;Or,
Second address generates submodule, for when the source device when the data to be transmitted is identical with the transmission equipment, purpose equipment is different with the receiving device, first index mark of the transmission equipment is sent into address and source address, the first index mark and the MAC Address of the purpose equipment by the receiving device as in MAC layer datagram header address field, respectively as the reception address in MAC layer datagram header address field and destination address 8032;Or,
3rd address generates submodule 8033, for when the source device of the data to be transmitted be identical with the receiving device with transmission equipment difference, purpose equipment, the MAC Address of the first index mark of the transmission equipment and the source device to be indexed to mark as the transmission address in the blunt leading address domains of MAC layer data ^ and source address, using the first of the receiving device respectively and is used as the destination address in MAC layer datagram header address field and receives address.
First header package module 804, the address for being obtained according to first address generation module carries out header encapsulation, forms the MAC layer datagram header.
Second identifier acquisition module 805, for when it is described transmission equipment and the receiving device be located at different radio subnet when, obtain it is described send equipment AP mark and the receiving device AP identify,
Second address generation module 806, for using the AP marks of the AP marks of the transmission equipment and the receiving device are as the transmission address in MAC layer datagram header address field and receive address;
Second header package module 807, the address for being obtained according to second address generation module is carried out Header is encapsulated, and forms the MAC layer datagram header.
When sending equipment and receiving device positioned at different radio subnet, now, it is AP equipment to send equipment and receiving device.And the AP equipment in different distributed systems can be made a distinction using AP marks.Therefore the AP marks of equipment and the AP marks of receiving device can will be sent, as the transmission address in MAC layer datagram header address field and reception address, instead of MAC Address as index address, the space of address field occupancy can be saved.
In the present embodiment, when carrying out the MAC layer datagram header encapsulation of data to be transmitted, for the address carried needed for MAC layer data header addresses domain, whether same wireless sub network is located at according to transmission equipment and receiving device, and send equipment and the device type of receiving device, the the first index mark for sending equipment and the first index mark of receiving device can be obtained respectively, the first index mark can be STA marks or AP marks, so as to replace MAC Address with the first index mark, the address carried as MAC layer datagram header address field, because the first index identifier word joint number is less than MAC Address byte number, MAC layer datagram header address field space-consuming reduces, so that MAC layer datagram header expense reduces, so as to which the header overhead of the WLAN datagram header ultimately formed reduces, advantageously reduce power consumption.
Fig. 9 is a kind of structural representation of another embodiment of datagram header packaging system of the embodiment of the present application, and the device can include:
Header information determining module 901, the header information of the network layer header for determining data to be transmitted.Information determination module 902 is transmitted, for according to datagram header reduced rule, determining the information to be transmitted in the header information.
The header-compressed rule can include:
(1) constant domain is kept to compress in header in communications connection procedure;
(2) domain that is changing in header but can predicting can be compressed;
(3) domain that be would know that in header by logical link control layer can be compressed.
Therefore, the transmission information determination module 903 determines information to be transmitted i.e. including the information changed, the information that can not be known by logical link control layer or the information that can not be predicted in communications connection procedure in the header information.
First data transmission module 903, for the network layer data header according to the Information encapsulation to be transmitted, and is added to after the data to be transmitted head and transmits to logical link control layer.
Second data transmission module 904, the data to be transmitted for logical link control layer to be received adds Plus transmitted after link layer data header to MAC layer.
Because the basic framework of WLAN includes multiple network hierarchies.Each network hierarchy datagram header for sending equipment and receiving device progress transmission of data is to encapsulate generation successively from the upper strata of network hierarchy to lower floor, therefore the data to be transmitted of MAC layer is the data from logical link control layer of reception, when WLAN connects internet, the data of the logical link control layer are the data from Internet of reception.
Therefore data to be transmitted is before MAC layer datagram header encapsulation is carried out, the data to be transmitted can carry out the encapsulation of network layer data header and link layer data header by scheme in the present embodiment, so as to be transmitted by the data to be transmitted added with network layer data header and link layer data header to MAC layer.
Equipment determining module 905, for determining that second data transmission module 904 is transmitted to the communication association equipment of the MAC layers of data to be transmitted, the communication association equipment includes sending equipment and receiving device;First identifier acquisition module 906, for when equipment and the receiving device of sending is positioned at same wireless sub network, obtain the first index mark of the first index mark and the receiving device for sending equipment, the transmission equipment and the receiving device have unique first index mark, and the first index identifier word joint number is less than MAC Address byte number;
First address generation module 907, for the first index of the first index mark of the transmission equipment and the receiving device to be identified, is used as the appropriate address in MAC layer datagram header address field.
First header package module 908, the address for being obtained according to first address generation module carries out header encapsulation, forms the MAC layer datagram header.
In addition, the device can also include:
Second identifier acquisition module, for when it is described transmission equipment and the receiving device be located at different radio subnet when, obtain it is described send equipment AP mark and the receiving device AP identify,
Second address generation module, for using the AP marks of the AP marks of the transmission equipment and the receiving device are as the transmission address in the blunt leading address domains of MAC layer data ^ and receive address;
Second header package module, the address for being obtained according to second address generation module carries out header encapsulation, forms the MAC layer datagram header.
In the present embodiment, data to be transmitted can be only by Information encapsulation to be transmitted into network layer data header according to header-compressed rule in Internet, so as to reduce the space of network layer data header occupancy, data to be transmitted is in MAC layer, it can be adopted according to whether equipment and receiving device is sent positioned at same wireless sub network MAC Address is replaced with the first index mark, the address carried as MAC layer datagram header address field, first index identifier word joint number is less than MAC Address byte number, so as to reduce the space of MAC layer datagram header occupancy, so that the WLAN datagram header expense of data to be transmitted encapsulation reduces, power consumption can be reduced.
The datagram header packaging system of above-mentioned Fig. 7 embodiment illustrated in fig. 9, it can apply to send in equipment in actual applications, the transmission equipment can be STA equipment or AP equipment, equipment by disposing the application datagram header packaging system, the expense of the datagram header of data to be transmitted can be caused to reduce, equipment power dissipation can be reduced.
Pass through above description, those skilled in the art can be understood that the application can add the mode of required general hardware platform to realize by software, therefore referring to Figure 10, present invention also provides a kind of one embodiment of datagram header sealed in unit, the datagram header sealed in unit at least includes memory
1001 and the processor 1002 that is connected by communication bus with the memory 1001,
Wherein, the memory 1001 is used to store one group of first datagram header canned program;The memory can be high-speed RAM memory, it is also possible to nonvolatile memory(Non-volatile memory), for example, at least one magnetic disk storage etc..
The processor 1002 is used for the one group of first datagram header canned program for calling the memory storage, performs following operation;
The communication association equipment of media access control MAC layer data to be transmitted is determined, the communication association equipment includes sending equipment and receiving device;
When the transmission equipment and the receiving device are located at same wireless sub network, determine the first index mark of the transmission equipment and the first index mark of the receiving device, the transmission equipment and the receiving device have the unique first index mark respectively, and the first index identifier word joint number is less than MAC Address byte number;
By the first index mark of the transmission equipment and the first index mark of the receiving device, header encapsulation is carried out as the appropriate address in MAC layer datagram header address field, and according to the appropriate address, the MAC layer datagram header is formed.The processor is probably a central processor CPU, or specific integrated circuit ASIC (Application Specific Integrated Circuit), or is arranged to implement the embodiment of the present invention One or more integrated circuits.
Corresponding with the datagram header packaging system shown in above-mentioned Fig. 7, Fig. 8 or Fig. 9, the application also provides a kind of datagram header de-encapsulating devices, is a kind of structural representation of datagram header de-encapsulating devices one embodiment of the embodiment of the present application referring to Figure 11:
Data acquisition module 1101, receives data, and decapsulate the MAC layer reception data for obtaining MAC layer.
First header information acquisition module 1102, transmission equipment and receiving device for receiving data when the MAC layer are located at same wireless sub network, obtain the first index mark and the first index mark of the receiving device of the transmission equipment in address field.
Wherein, the first index identifier word joint number is less than MAC Address byte number.
Send the first index mark of equipment namely refer to the transmission address of address field carrying, the first index mark of receiving device is the reception address in address field carrying address.
Therefore the transmission address of address field carrying can be determined first and address is received, the transmission address is the first index mark for sending equipment, and the reception address is the first index mark of receiving device.
First address determination module 1103, for according to each the first index mark and the corresponding relation of the MAC addresses of each equipment, determining the MAC Address of the transmission equipment and the receiving device.
The one-to-one relationship of MAC Address of the index of difference first mark and distinct device can be stored and manage by sending equipment.When sending data to receiving device, the corresponding relation of each the first index mark and the MAC Address of each equipment can be carried.Certain corresponding relation can also individually be sent.
According to each the first index mark and the corresponding relation of the MAC Address of each equipment, you can to obtain the MAC Address of the transmission equipment and receiving device.
When source device with send equipment it is identical, or purpose equipment it is identical with receiving device when, you can acquisition source device MAC Address, and purpose equipment MAC Address.
Receiving device determines the MAC Address of distinct device, you can follow-up data transfer is carried out according to the MAC Address of the distinct device.
The header de-encapsulating devices of embodiment illustrated in fig. 11, in actual applications, are applied particularly in the receiving device in data transmission procedure, and the receiving device can be STA equipment or AP equipment.Address in MAC layer datagram header address field can be restored the MAC Address of equipment by the equipment of the header deblocking device of deployment embodiment illustrated in fig. 10. Therefore, referring to Figure 12, present invention also provides one embodiment that a kind of header decapsulates equipment, header decapsulation equipment at least includes memory 1201 and the processor 1202 being connected by communication bus with the memory 1201.
The memory 1201 is used to store one group of first datagram header decapsulation program;The memory can be high-speed RAM memory, it is also possible to nonvolatile memory(Non-volatile memory), for example, at least one magnetic disk storage etc..The processor 1202 is used to call one group of first datagram header of the memory storage to decapsulate program, performs following operation:
Obtain MAC layer and receive data, and decapsulate the datagram header that the MAC layer receives data;When the transmission equipment and receiving device that the MAC layer receives data are located at same wireless sub network, the the first index mark and the first index mark of the receiving device of the transmission equipment in the datagram header address field are obtained, the first index identifier word joint number is less than MAC Address byte number;
According to each the first index mark and the corresponding relation of the MAC Address of each equipment, the MAC Address of the transmission equipment and the receiving device is determined.
The processor is probably a central processor CPU, or specific integrated circuit ASIC
(Application Specific Integrated Circuit), or it is arranged to implement one or more integrated circuits of the embodiment of the present invention.Figure 13 is a kind of structural representation of another embodiment of datagram header packaging system of the embodiment of the present application, and the device can include:
Equipment determining module 1301, the communication association equipment for determining MAC layer data to be transmitted, the communication association equipment includes sending equipment and receiving device.
3rd identifier acquisition module 1302, for when it is described transmission equipment or the receiving device be AP equipment when, determine the second index mark of the transmission equipment or the second index mark of the receiving device, the transmission equipment and the receiving device have the unique second index mark respectively, and the second index identifier word joint number is less than MAC Address byte number;Or, when it is described transmission equipment and the receiving device be AP equipment when, determine it is described transmission equipment second index mark and the receiving device second index mark.
3rd address generation module 1303, for the second index of the second index mark of the transmission equipment and/or receiving device to be identified, is used as the appropriate address in MAC layer datagram header address field. That is, when the transmission equipment or the receiving device are AP equipment, the second index of the second index mark of the transmission equipment or the receiving device is identified, the appropriate address in MAC layer datagram header address field is used as;Or,
When the transmission equipment and the receiving device are AP equipment, the second index mark of equipment and the second index mark of the receiving device described will be sent, the appropriate address in MAC layer datagram header address field is used as.
3rd header package module 1304, the address for being obtained according to the 3rd address generation module carries out header encapsulation, forms the MAC layer datagram header.
Difference AP equipment has the unique second index mark respectively in same distributed system or in different distributions formula system, therefore the transmission equipment and/or receiving device have the unique second index mark respectively.
Wherein, the second index mark can be specially the AP marks described in above-described embodiment, be pre-set for each AP equipment in different distributions formula system.
AP marks can include distributed system index information, AP index informations and unicast and indicate index information.
Because AP quantity is also limited in distributed system, it is identified again without the MAC Address of 48 bits, is that can be achieved using the mark of less bit.Therefore unique AP marks can be set for each AP equipment of different distributions formula system in advance.
In this embodiment, when carrying out the MAC layer datagram header encapsulation of data to be transmitted, pass through header packaging system described in the present embodiment, for the address for determining to carry needed for MAC layer datagram header address field, whether it is AP equipment according to the transmission equipment of data to be transmitted and/receiving device, the the second index mark for sending equipment and/or the second index mark of receiving device can be obtained respectively, from the MAC Address that can index mark replacement equipment by second, the appropriate address carried as MAC layer datagram header address field, send address and receive address.Because the second index identifier word joint number is less than MAC Address byte number, MAC layer datagram header address field space-consuming reduces, so that MAC layer datagram header expense reduces, so that the header overhead of the WLAN datagram header ultimately formed reduces, power consumption is advantageously reduced.
In addition, the MAC Address of equipment and/or receiving device using the second index mark alternate device will sent, after the appropriate address in MAC layer datagram header address field, when can also work as transmission equipment and receiving device positioned at same wireless sub network, the STA equipment in equipment and/receiving device will be sent, MAC Address instead of its equipment is identified using STA, after the appropriate address in MAC layer datagram header address field So as to further reduce header overhead.
Wherein, because the byte number of the second index mark is less, the AP equipment that can be distributed is limited, therefore after the second index mark is set for AP equipment, can also detect that second index identifies whether can use.
When header packaging system described in the present embodiment is applied in AP equipment, namely it is STA equipment to send equipment, and the device can also include:
First detection module, the AP marks of AP equipment for detecting association are identical with the AP marks that the broadcast message received includes, and association AP equipment Basic Service Set Identification BSSID or service set SSID include with the broadcast message received BSSID or SSID different when, to association AP equipment transmission address conflict information;
When the header packaging system is applied in AP equipment, i.e., described transmission equipment is AP equipment, described device can also include:
Second detection module, for detecting that the AP marks that the broadcast message received includes are identical with the AP marks of the transmission equipment, or when receiving the address conflict message of STA equipment transmission of association, resets AP marks.
Datagram header packaging system shown in Figure 13, in actual applications, it is applied particularly to send in equipment, the transmission equipment can be STA equipment or AP equipment, the equipment of datagram header packaging system shown in deployment diagram 11, the expense of the datagram header of data to be transmitted can be caused to reduce, equipment power dissipation can be reduced.
Therefore, referring to Figure 14, the embodiment of the present application additionally provides a kind of another embodiment of datagram header sealed in unit, and the datagram header sealed in unit at least includes memory 1401 and the processor 1402 being connected by communication bus with the memory 1401
The memory 1401 is used to store one group of second datagram header canned program;The memory can be high-speed RAM memory, it is also possible to nonvolatile memory(Non-volatile memory), for example, at least one magnetic disk storage etc..
The processor 1402 is used for all one group of second datagram header canned programs for calling the memory 1401 to store, and performs following operation:
The communication association equipment of MAC layer data to be transmitted is determined, the communication association equipment includes sending equipment and receiving device;
When the transmission equipment or the receiving device are wireless access point device, the second index mark of the transmission equipment or the second index mark of the receiving device are determined, the transmission equipment and the reception are set Back-up not Ju You unique second index mark, the second index identifier word joint number is less than MAC Address byte number;
By the second index mark of the transmission equipment or the second index mark of the receiving device, header encapsulation is carried out as the appropriate address in MAC layer datagram header address field, and according to the appropriate address, the MAC layer datagram header is formed;Or,
When the transmission equipment and the receiving device are wireless access point device, the second index mark of the transmission equipment and the second index mark of the receiving device are determined;
By the second index mark of the transmission equipment and the second index mark of the receiving device, header encapsulation is carried out as the appropriate address in MAC layer datagram header address field, and according to the appropriate address, the MAC layer datagram header is formed.
The processor is probably a central processor CPU, either specific integrated circuit ASIC (Application Specific Integrated Circuit), or it is arranged to implement one or more integrated circuits of the embodiment of the present invention.Datagram header packaging system with embodiment illustrated in fig. 13 is corresponding, referring to Figure 15, and the embodiment of the present application additionally provides a kind of structural representation of another embodiment of datagram header de-encapsulating devices, and the device can include:
Data acquisition module 1501, receives data, and decapsulate the MAC layer reception data for obtaining MAC layer;
Second header information acquisition module 1502, when transmission equipment or receiving device for receiving data when the MAC layer are AP equipment, the the second index mark or the second index mark of the receiving device of the transmission equipment in address field are obtained, the second index identifier word joint number is less than MAC Address byte number;Or, when the transmission equipment and receiving device that the MAC layer receives data are AP equipment, obtain the second index mark and the second index mark of the receiving device of the transmission equipment in the datagram header address field.
Second address determination module 1503, for according to each the second index mark and the corresponding relation of the MAC addresses of each equipment, determining the MAC Address of the transmission equipment and/or the receiving device.
The datagram header de-encapsulating devices of embodiment illustrated in fig. 15 can apply in receiving device in actual applications, and the receiving device can be STA equipment or AP equipment. Therefore, referring to Figure 16, the embodiment of the present application additionally provides another embodiment that a kind of datagram header decapsulates equipment, and the equipment at least includes memory 1601 and the processor 1602 being connected by communication bus with the memory 1601,
The memory 1601 is used to store one group of second datagram header decapsulation program;The memory can be high-speed RAM memory, it is also possible to nonvolatile memory(Non-volatile memory), for example, at least one magnetic disk storage etc..The processor 1602 is used to call the second datagram header decapsulation program described in one group of the storage of memory 1601, performs following operation:
Obtain MAC layer and receive data, and decapsulate the datagram header that the MAC layer receives data;When the transmission equipment or receiving device that the MAC layer receives data are wireless access point device, the the second index mark or the second index mark of the receiving device of the transmission equipment in the datagram header address field are obtained, the second index identifier word joint number is less than MAC Address byte number;
According to each the second index mark and the corresponding relation of the MAC Address of each equipment, the MAC Address of the transmission equipment or the receiving device is determined;Or,
When the transmission equipment and receiving device that the MAC layer receives data are wireless access point device, the second index mark and the second index mark of the receiving device of the transmission equipment in the datagram header address field are obtained;
According to each described the second index mark and the corresponding relation of the MAC Address of each equipment, the MAC Address of the transmission equipment and the receiving device is determined.
The processor is probably a central processor CPU, or specific integrated circuit ASIC
(Application Specific Integrated Circuit), or it is arranged to implement one or more integrated circuits of the embodiment of the present invention.
Datagram header method for packing provided in an embodiment of the present invention, de-encapsulation method, device and equipment, for MAC (Media Access Control, media access control) layer data to be transmitted, the transmission equipment and receiving device of MAC layer data to be transmitted are determined first, then whether same wireless sub network is located at according to transmission equipment and receiving device, or send whether equipment and/or receiving device are wireless access point device, transmission equipment and the respective first index mark of receiving device or the second index mark can be obtained, instead of the MAC Address of equipment, the address carried as MAC layer datagram header address field.Because the first index mark and the second index identifier word joint number are respectively less than device mac address, hence in so that MAC layer datagram header Take byte number to reduce, header overhead is reduced, so as to reduce power consumption.
The embodiment of each in this specification is described by the way of progressive, what each embodiment was stressed be between the difference with other embodiment, each embodiment identical similar portion mutually referring to.For device disclosed in embodiment, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is referring to method part illustration.
In several embodiments provided herein, it should be understood that disclosed method, device and equipment, it can realize by another way.For example, device embodiment described above is only schematical, for example, the division of the unit, it is only a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple units or component can combine or be desirably integrated into another system, or some features can be ignored, or do not perform.Another, it, by some communication interfaces, the INDIRECT COUPLING or communication connection of device or unit, can be electrical, machinery or other forms that shown or discussed coupling or direct-coupling or communication connection each other, which can be,.
The unit illustrated as separating component can be or may not be physically separate, and the part shown as unit can be or may not be physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Some or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in each of the invention embodiment can be integrated in a processing unit or unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized using in the form of SFU software functional unit and as independent production marketing or in use, can be stored in a computer read/write memory medium.Understood based on such, the part or the part of the technical scheme that technical scheme substantially contributes to prior art in other words can be embodied in the form of software product, the computer software product is stored in a storage medium, including some instructions are to cause a computer equipment(Can be personal computer, server, or network equipment etc.)Perform all or part of step of each embodiment methods described of the invention.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage(ROM, Read-Only Memory), random access memory(RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or uses this Application.A variety of modifications to these embodiments be will be apparent for those skilled in the art, and generic principles defined herein can in other embodiments be realized in the case where not departing from spirit herein or scope.Therefore, the application is not intended to be limited to the embodiments shown herein, and is to fit to the most wide scope consistent with features of novelty with principles disclosed herein.
+

Claims (29)

  1. Claim
    1st, a kind of datagram header method for packing, it is characterised in that including:
    The communication association equipment of media access control MAC layer data to be transmitted is determined, the communication association equipment includes sending equipment and receiving device;
    When the transmission equipment and the receiving device are located at same wireless sub network, determine the first index mark of the transmission equipment and the first index mark of the receiving device, the transmission equipment and the receiving device have the unique first index mark respectively, and the first index identifier word joint number is less than MAC Address byte number;
    By the first index mark of the transmission equipment and the first index mark of the receiving device, header encapsulation is carried out as the appropriate address in MAC layer datagram header address field, and according to the appropriate address, the MAC layer datagram header is formed.
    2nd, according to the method described in claim 1, characterized in that, first index for sending equipment is identified and the first index mark of the receiving device is respectively that the wireless access point device sent in equipment and receiving device place wireless sub network pre-sets and distributed.
    3rd, according to the method described in claim 1, it is characterised in that first index is designated the wireless access point identification of the site identity or equipment that indexing apparatus type is WAP for equipment that indexing apparatus type is website;
    When the transmission equipment is site apparatus, the first index of the transmission equipment is designated site identity, wherein, the site apparatus in same wireless sub network respectively there is unique station to identify;Or, when the transmission equipment is wireless access point device, the first index of the transmission equipment is designated wireless access point identification, wherein, the wireless access point device in different distributions formula system has unique wireless access point identification respectively;Or,
    When the receiving device is site apparatus, the first index of the receiving device is designated site identity;Or,
    When the receiving device is wireless access point device, the first index of the receiving device is designated wireless access point identification.
    4th, according to the method described in claim 1, it is characterised in that first index by the first index mark of the transmission equipment and the receiving device is identified, as in MAC layer datagram header address field Appropriate address include:
    When the source device of the data to be transmitted is identical with the transmission equipment, purpose equipment is identical with the receiving device, using the first index mark of the transmission equipment as the transmission address in the MAC layer datagram header address field and source address, the first index of the receiving device is identified as the destination address in the blunt leading address domains of MAC layer data ^ and address is received;Or,
    When the source device of the data to be transmitted is identical with the transmission equipment, purpose equipment is different with the receiving device, it regard the first index mark of the transmission equipment as the transmission address in the MAC layer datagram header address field and source address, by the first index mark and the MAC Address of the purpose equipment of the receiving device, respectively as the reception address in the MAC layer datagram header address field and destination address;Or,
    When the source device of the data to be transmitted is different with the transmission equipment, purpose equipment is identical with the receiving device, the first index of the receiving device is identified as the destination address in the MAC layer datagram header address field as the transmission address in the MAC layer datagram header address field and source address and receive address by the MAC Address of the first index mark of the transmission equipment and the source device respectively.
    5th, method according to claim 3, it is characterised in that when the transmission equipment and the receiving device are located at different radio subnet, methods described also includes:
    Obtain the wireless access point identification of the wireless access point identification and the receiving device for sending equipment;Using the wireless access point identification of the wireless access point identification of the transmission equipment and the receiving device is as the transmission address in MAC layer datagram header address field and receives address, and header encapsulation is carried out according to the transmission address and the reception address, form the MAC layer datagram header.
    6th, the method according to claim 3 or 5, it is characterised in that the wireless access point identification includes distributed system index information and WAP index information.
    7th, the method according to claim 1, it is characterised in that before the communication association equipment of the determination media access control MAC layer data to be transmitted, methods described also includes:
    Determine the header information of the network layer header of the data to be transmitted;
    According to datagram header reduced rule, the information to be transmitted in the header information is determined;
    The network layer data header according to the Information encapsulation to be transmitted, and be added to after the data to be transmitted head and transmit to logical link control layer; Transmitted after the data to be transmitted addition link layer data header that logical link control layer is received to the MAC layer.
    8th, method according to claim 7, it is characterised in that the information to be transmitted includes the information changed, the information that can not be known by logical link control layer or the information that can not be predicted in communications connection procedure in the header information.
    9th, a kind of datagram header de-encapsulation method, it is characterised in that including:
    Obtain MAC layer and receive data, and decapsulate the datagram header that the MAC layer receives data;When the transmission equipment and receiving device that the MAC layer receives data are located at same wireless sub network, the the first index mark and the first index mark of the receiving device of the transmission equipment in the datagram header address field are obtained, the first index identifier word joint number is less than MAC Address byte number;
    According to each the first index mark and the corresponding relation of the MAC Address of each equipment, the MAC Address of the transmission equipment and the receiving device is determined.
    10th, a kind of datagram header method for packing, it is characterised in that including:
    The communication association equipment of MAC layer data to be transmitted is determined, the communication association equipment includes sending equipment and receiving device;
    When the transmission equipment or the receiving device are wireless access point device, determine the second index mark of the transmission equipment or the second index mark of the receiving device, the transmission equipment and the receiving device have the unique second index mark respectively, and the second index identifier word joint number is less than MAC Address byte number;
    Second index of the second index mark of the transmission equipment or the receiving device is identified, as
    Appropriate address in MAC layer datagram header address field, and header encapsulation is carried out according to the appropriate address, form the MAC layer datagram header;Or,
    When the transmission equipment and the receiving device are wireless access point device, the second index mark of the transmission equipment and the second index mark of the receiving device are determined;
    Mark is indexed by the second of the second index mark of the transmission equipment and the receiving device, as
    Appropriate address in MAC layer datagram header address field, and header encapsulation is carried out according to the appropriate address, form the MAC layer datagram header.
    11st, method according to claim 10, it is characterised in that second index is designated rope Draw the wireless access point identification of wireless access point device, the wireless access point device in different distributions formula system has unique wireless access point identification respectively.
    12nd, method according to claim 10, it is characterised in that methods described is applied to send in equipment, when the transmission equipment is site apparatus, methods described also includes:
    Detect that the wireless access point identification of the wireless access point device of association is identical with the wireless access point identification that the broadcast message received includes, and the foundation stone of wireless access point device of association is when going out the BSSID or SSID different that service set BSSID or service set SSID include with the broadcast message received, to the wireless access point device transmission address conflict information of association;Or,
    When the transmission equipment is wireless access point device, methods described also includes:
    Detect that the wireless access point identification that the broadcast message received includes is identical with the wireless access point identification of the transmission equipment, or when receiving the address conflict message of site apparatus transmission of association, reset wireless access point identification.
    13rd, a kind of datagram header de-encapsulation method, it is characterised in that including:
    Obtain MAC layer and receive data, and decapsulate the datagram header that the MAC layer receives data;When the transmission equipment or receiving device that the MAC layer receives data are wireless access point device, the the second index mark or the second index mark of the receiving device of the transmission equipment in the datagram header address field are obtained, the second index identifier word joint number is less than MAC Address byte number;
    According to each the second index mark and the corresponding relation of the MAC Address of each equipment, the MAC Address of the transmission equipment or the receiving device is determined;Or,
    When the transmission equipment and receiving device that the MAC layer receives data are wireless access point device, the second index mark and the second index mark of the receiving device of the transmission equipment in the datagram header address field are obtained;According to each described the second index mark and the corresponding relation of the MAC Address of each equipment, the MAC Address of the transmission equipment and the receiving device is determined.
    14th, a kind of datagram header packaging system, it is characterised in that including:
    Equipment determining module, the communication association equipment for determining media access control MAC layer data to be transmitted, the communication association equipment includes sending equipment and receiving device;
    First identifier acquisition module, for when equipment and the receiving device of sending is positioned at same wireless Subnet, determines the first index mark of the transmission equipment and the first index mark of the receiving device, and the transmission equipment and the receiving device have unique first index mark, and the first index identifier word joint number is less than MAC Address byte number;
    First address generation module, for the first index of the first index mark of the transmission equipment and the receiving device to be identified, is used as the appropriate address in MAC layer datagram header address field;
    First header package module, the address for being obtained according to first address generation module carries out header encapsulation, forms the MAC layer datagram header.
    15th, device according to claim 14, characterized in that, first index for sending equipment is identified and the first index mark of the receiving device is respectively that the wireless access point device sent in equipment and receiving device place wireless sub network pre-sets and distributed.
    16th, device according to claim 14, it is characterised in that the first index mark include be site identity for equipment that indexing apparatus type is website or equipment that indexing apparatus type is WAP wireless access point identification;
    When the transmission equipment is site apparatus, the first index of the transmission equipment is designated site identity, wherein, the site apparatus in same wireless sub network respectively there is unique station to identify;Or, when the transmission equipment is wireless access point device, the first index of the transmission equipment is designated wireless access point identification, wherein, the wireless access point device in different distributions formula system has unique wireless access point identification respectively;Or,
    When the receiving device is site apparatus, the first index of the receiving device is designated site identity;Or,
    When the receiving device is wireless access point device, the first index of the receiving device is designated wireless access point identification.
    17th, device according to claim 14, it is characterised in that first address generation module includes:
    First address generates submodule, for when the source device when the data to be transmitted is identical with the transmission equipment, purpose equipment is identical with the receiving device, using the first index mark of the transmission equipment as the transmission address in MAC layer datagram header address field and source address, the first index of the receiving device is identified as the destination address in MAC layer datagram header address field and address is received;Or, Second address generates submodule, for when the source device when the data to be transmitted is identical with the transmission equipment, purpose equipment is different with the receiving device, it regard the first index mark of the transmission equipment as the transmission address in MAC layer datagram header address field and source address, by the first index mark and the MAC Address of the purpose equipment of the receiving device, respectively as the reception address in MAC layer datagram header address field and destination address;Or,
    3rd address generates submodule, for when the source device when the data to be transmitted is different with the transmission equipment, purpose equipment is identical with the receiving device, the first index of the receiving device is identified as the destination address in MAC layer datagram header address field as the transmission address in MAC layer datagram header address field and source address and receive address by the MAC Address of the first index mark of the transmission equipment and the source device respectively.
    18th, device according to claim 16, it is characterised in that also include:
    Second identifier acquisition module, for when it is described transmission equipment and the receiving device be located at different radio subnet when, obtain it is described send equipment wireless access point identification and the receiving device wireless access point identification;
    Second address generation module, for using the wireless access point identification of the wireless access point identification of the transmission equipment and the receiving device is as the transmission address in MAC layer datagram header address field and receives address;
    Second header package module, the address for being obtained according to second address generation module carries out header encapsulation, forms the MAC layer datagram header.
    19th, the device according to claim 16 or 18, it is characterised in that the wireless access point identification includes distributed system index information and WAP index information.
    20th, device according to claim 14, it is characterised in that also include:
    Header information determining module, the header information of the network layer header for determining the data to be transmitted;Information determination module is transmitted, for according to datagram header reduced rule, determining the information to be transmitted in the header information;
    First data transmission module, for the network layer data header according to the Information encapsulation to be transmitted, and is added to after the data to be transmitted head and transmits to logical link control layer;
    Second data transmission module, the data to be transmitted for logical link control layer to be received adds chain Transmitted after the layer data header of road to MAC layer.
    21st, device according to claim 20, it is characterised in that the information to be transmitted includes the information changed, the information that can not be known by logical link control layer or the information that can not be predicted in communications connection procedure in the header information.
    22nd, a kind of datagram header de-encapsulating devices, it is characterised in that including:
    Decapsulation module, receives data, and decapsulate the datagram header that the MAC layer receives data for obtaining MAC layer;First header information acquisition module, transmission equipment and receiving device for receiving data when the MAC layer are located at same wireless sub network, the the first index mark and the first index mark of the receiving device of the transmission equipment in address field are obtained, the first index identifier word joint number is less than MAC Address byte number;First address determination module, for according to each the first index mark and the corresponding relation of the MAC Address of each equipment, determining the MAC Address of the transmission equipment and the receiving device.
    23rd, a kind of datagram header packaging system, it is characterised in that including:
    Equipment determining module, the communication association equipment for determining MAC layer data to be transmitted, the communication association equipment includes sending equipment and receiving device;
    3rd identifier acquisition module, for when it is described transmission equipment or the receiving device be wireless access point device when, determine the second index mark of the transmission equipment or the second index mark of the receiving device, the transmission equipment or the receiving device have the unique second index mark respectively, and the second index identifier word joint number is less than MAC Address byte number;Or, when it is described transmission equipment and the receiving device be wireless access point device when, determine it is described transmission equipment second index mark and the receiving device second index mark;
    3rd address generation module, for the second index of the second index mark of the transmission equipment and/or receiving device to be identified, is used as the appropriate address in MAC layer datagram header address field;
    3rd header package module, the address for being obtained according to the 3rd address generation module carries out header encapsulation, forms the MAC layer datagram header.
    24th, device according to claim 23, it is characterized in that, second index is designated the wireless access point identification of index wireless access point device, and the wireless access point device in different distributions formula system has unique wireless access point identification respectively. 25th, device according to claim 23, it is characterised in that described device is applied to send in equipment, when the transmission equipment is site apparatus, described device also includes:
    First detection module, the wireless access point identification of wireless access point device for detecting association is identical with the wireless access point identification that the broadcast message received includes, and association wireless access point device Basic Service Set Identification BSSID or service set SSID include with the broadcast message received BSSID or SSID different when, to association wireless access point device transmission address conflict information;Or,
    When the transmission equipment is wireless access point device, described device also includes:
    Second detection module, for detecting that the wireless access point identification that the broadcast message received includes is identical with the wireless access point identification of the transmission equipment, or when receiving the address conflict message of site apparatus transmission of association, reset wireless access point identification.
    26th, a kind of datagram header de-encapsulating devices, it is characterised in that including:
    Data acquisition module, receives data, and decapsulate the MAC layer reception data for obtaining MAC layer;
    Second header information acquisition module, when transmission equipment or receiving device for receiving data when the MAC layer are wireless access point device, the the second index mark or the second index mark of the receiving device of the transmission equipment in address field are obtained, the second index identifier word joint number is less than MAC Address byte number;Or, when the transmission equipment and receiving device that the MAC layer receives data are wireless access point device, obtain the second index mark and the second index mark of the receiving device of the transmission equipment in the datagram header address field;Second address determination module, for according to each the second index mark and the corresponding relation of the MAC Address of each equipment, determining the MAC Address of the transmission equipment and/or the receiving device.
    27th, a kind of datagram header sealed in unit, it is characterised in that at least including memory and processor, the memory is used to store one group of first datagram header canned program;
    The processor is used for the one group of first datagram header canned program for calling the memory storage, performs following operation;
    The communication association equipment of media access control MAC layer data to be transmitted is determined, the communication association equipment includes sending equipment and receiving device;
    When the transmission equipment and the receiving device are located at same wireless sub network, the transmission equipment is determined First index mark of the first index mark and the receiving device, the transmission equipment and the receiving device have the unique first index mark respectively, and the first index identifier word joint number is less than MAC Address byte number;
    By the first index mark of the transmission equipment and the first index mark of the receiving device, header encapsulation is carried out as the appropriate address in MAC layer datagram header address field, and according to the appropriate address, the MAC layer datagram header is formed.
    28th, a kind of datagram header decapsulation equipment, it is characterised in that at least including memory and processor, the memory is used to store one group of first datagram header decapsulation program;
    The processor is used to call one group of first datagram header of the memory storage to decapsulate program, performs following operation:
    Obtain MAC layer and receive data, and decapsulate the datagram header that the MAC layer receives data;When the transmission equipment and receiving device that the MAC layer receives data are located at same wireless sub network, the the first index mark and the first index mark of the receiving device of the transmission equipment in the datagram header address field are obtained, the first index identifier word joint number is less than MAC Address byte number;
    According to each the first index mark and the corresponding relation of the MAC Address of each equipment, the MAC Address of the transmission equipment and the receiving device is determined.
    29th, a kind of datagram header sealed in unit, it is characterised in that at least including memory and processor, the memory is used to store one group of second datagram header canned program;
    The processor is used for all one group of second datagram header canned programs for calling the memory storage, performs following operation:
    The communication association equipment of MAC layer data to be transmitted is determined, the communication association equipment includes sending equipment and receiving device;
    When the transmission equipment or the receiving device are wireless access point device, determine the second index mark of the transmission equipment or the second index mark of the receiving device, the transmission equipment and the receiving device have the unique second index mark respectively, and the second index identifier word joint number is less than MAC Address byte number;
    By the second index mark of the transmission equipment or the second index mark of the receiving device, header encapsulation, shape are carried out as the appropriate address in MAC layer datagram header address field, and according to the appropriate address Into the MAC layer datagram header;Or,
    When the transmission equipment and the receiving device are wireless access point device, the second index mark of the transmission equipment and the second index mark of the receiving device are determined;
    By the second index mark of the transmission equipment and the second index mark of the receiving device, header encapsulation is carried out as the appropriate address in MAC layer datagram header address field, and according to the appropriate address, the MAC layer datagram header is formed.
    30th, a kind of datagram header decapsulation equipment, it is characterised in that at least including memory and processor, the memory is used to store one group of second datagram header decapsulation program;
    The processor is used to call the second datagram header described in one group of the memory storage to decapsulate program, performs following operation:
    Obtain MAC layer and receive data, and decapsulate the datagram header that the MAC layer receives data;When the transmission equipment or receiving device that the MAC layer receives data are wireless access point device, the the second index mark or the second index mark of the receiving device of the transmission equipment in the datagram header address field are obtained, the second index identifier word joint number is less than MAC Address byte number;
    According to each the second index mark and the corresponding relation of the MAC Address of each equipment, the MAC Address of the transmission equipment or the receiving device is determined;Or,
    When the transmission equipment and receiving device that the MAC layer receives data are wireless access point device, the second index mark and the second index mark of the receiving device of the transmission equipment in the datagram header address field are obtained;
    According to each described the second index mark and the corresponding relation of the MAC Address of each equipment, the MAC Address of the transmission equipment and the receiving device is determined.
    +
CN201380079253.6A 2013-08-30 2013-08-30 Data packet header encapsulation method, data packet header decapsulation method, apparatus and device Pending CN105493563A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/082700 WO2015027474A1 (en) 2013-08-30 2013-08-30 Data packet header encapsulation method, data packet header decapsulation method, apparatus and device

Publications (1)

Publication Number Publication Date
CN105493563A true CN105493563A (en) 2016-04-13

Family

ID=52585429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201380079253.6A Pending CN105493563A (en) 2013-08-30 2013-08-30 Data packet header encapsulation method, data packet header decapsulation method, apparatus and device

Country Status (2)

Country Link
CN (1) CN105493563A (en)
WO (1) WO2015027474A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111527771A (en) * 2017-10-30 2020-08-11 Lg电子株式会社 Method for transmitting or receiving frame in wireless LAN system and apparatus therefor
CN113395135A (en) * 2021-05-06 2021-09-14 埃森智能科技(深圳)有限公司 Data communication method, device and computer readable storage medium
CN113452616A (en) * 2021-07-13 2021-09-28 烽火通信科技股份有限公司 Three-four address router and method and device for managing down-hanging equipment thereof

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155014B (en) * 2016-06-23 2019-07-23 北京东土科技股份有限公司 Industry internet field layer wideband bus real-time implementation method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188739A (en) * 2011-12-30 2013-07-03 中兴通讯股份有限公司 Transmission method of frame in network and transmission device of frame in network
CN103209045A (en) * 2012-01-12 2013-07-17 华为终端有限公司 Data communication method, device and system
CN103260136A (en) * 2012-02-17 2013-08-21 华为终端有限公司 Communication method, site equipment and access point (AP) equipment
CN103259876A (en) * 2012-02-17 2013-08-21 华为终端有限公司 Method and device for address conflict processing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188739A (en) * 2011-12-30 2013-07-03 中兴通讯股份有限公司 Transmission method of frame in network and transmission device of frame in network
CN103209045A (en) * 2012-01-12 2013-07-17 华为终端有限公司 Data communication method, device and system
CN103260136A (en) * 2012-02-17 2013-08-21 华为终端有限公司 Communication method, site equipment and access point (AP) equipment
CN103259876A (en) * 2012-02-17 2013-08-21 华为终端有限公司 Method and device for address conflict processing

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111527771A (en) * 2017-10-30 2020-08-11 Lg电子株式会社 Method for transmitting or receiving frame in wireless LAN system and apparatus therefor
CN113395135A (en) * 2021-05-06 2021-09-14 埃森智能科技(深圳)有限公司 Data communication method, device and computer readable storage medium
CN113452616A (en) * 2021-07-13 2021-09-28 烽火通信科技股份有限公司 Three-four address router and method and device for managing down-hanging equipment thereof

Also Published As

Publication number Publication date
WO2015027474A1 (en) 2015-03-05
WO2015027474A9 (en) 2016-09-29

Similar Documents

Publication Publication Date Title
US7756126B2 (en) VLAN mobility
US20130215810A1 (en) Method and device for transmitting an ipv6 over low power wireless personal area network data packet
US7417996B2 (en) Method and apparatus for communication between coordinator-based wireless network and different type of network which are interconnected through a backbone network
CN102413061B (en) Message transmission method and equipment
CN102025608B (en) Communication method, data message forwarding method in communication process as well as communication nodes
CN106900081B (en) The method and device of the user face data tunnel transmission of access network node granularity
US7760666B2 (en) Method of generating and managing connection identifiers for supporting multicast for each group in IPv6-based wireless network and network interface using the method
CN102316028B (en) Method and apparatus for sending internet protocol packet
CN101094155B (en) Method for establishing IPv6 tunnel, IPv6 tunnel communication method, and Ipv4 periphery devices
US8248927B2 (en) VLAN pooling
CN101449512A (en) Method for transmitting identification of multicast message, method for transmitting multicast message, equipment for sending multicast message, equipment for receiving multicast message, and package
CN101882975B (en) Method for transmitting data by using preamble of Ethernet frame
CN104506439A (en) IPv6 (Internet protocol version 6) message transmission system and method applicable to WIA-PA (windows image acquisition-power amplification) network
CN105493563A (en) Data packet header encapsulation method, data packet header decapsulation method, apparatus and device
CN102025601B (en) Data encapsulation method and system
CN103609050A (en) Air interface transmission method and relevant device and system
CA3014366C (en) Method and apparatus for indicating channel in wireless local area network
JP2011509578A5 (en)
CN1359215A (en) Method for giving mobile terminal moveable property and radio interface equipment for executive said method
CN102404716A (en) Method and device for transmitting data for wireless sensor network based on IP
CN103535094B (en) The transmission method of common public radio interface data and equipment
CN106211141A (en) The retransmission method of the stream of a kind of WLAN roaming stations and device
CN112437467A (en) Ad hoc network tunnel communication method without home agent
CN104468559A (en) Mobile internet access system
JP2015519784A (en) Security identifier discovery method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160413

RJ01 Rejection of invention patent application after publication