Background
With the development of communication technology, the requirement for the service quality of a communication network is increasing day by day, and in order to further improve the data processing efficiency and reduce the data processing cost on the basis of the existing network, a brand new network architecture called LTE-LAN (Long Term Evolution-LAN) is designed. Referring to fig. 1, in the LTE-LAN system, an LTE-LAN-AP (wireless access point in the LTE-LAN system) provides a wireless data link for a terminal using an existing LTE underlying transmission and access technology, thereby providing a QoS-guaranteed communication service for the terminal. The LTE-LAN-AP and the terminal realize respective functions based on the bottom layer communication technology of the LTE mobile communication system, namely, the networking of a local wireless network and the interconnection and intercommunication of the terminal in the local network are realized by adding a new management and transmission scheduling function, the IP access of the terminal to an external network is realized under the condition of not processing a core network of an operator by modifying a network architecture and a high-level protocol of the existing LTE system, namely, the LTE-LAN-AP of the local wireless network can directly access the external network without passing through the core network through a corresponding interface, and the flat network structure is beneficial to the rapid processing and forwarding of terminal data, the cost of network communication is reduced, and the efficiency is improved. However, in order to reduce the system cost, the air interface (i.e., Uu interface) between the terminal and the LTE-LAN-AP is simplified based on the air interface in the LTE system, and the LTE-LAN-AP is a two-layer device and does not have the capability of forwarding IP data packets, so that a two-layer addressing mechanism suitable for the LTE-LAN system is required in order to implement communication between the terminal and an external network and between the terminal and the terminal.
In the prior art, there are various addressing mechanisms, such as:
for the LTE system, an addressing mechanism adopted at the air interface layer is to use RNTI (Radio Network Temporary Identifier) to identify and distinguish different terminals, and in one cell (cell), one C-RNTI (cell Radio Network Temporary Identifier) is used to uniquely identify one terminal. When a terminal needs to send data to a base station or the base station needs to send data to the terminal, the base station needs to schedule and allocate radio resources to resources used for sending the data based on the C-RNTI of the terminal and related information such as radio interface configuration parameters, terminal capability and the like, so that the terminal and the base station can send and receive the data by using the appointed radio resources. Since both communication parties between terminals within the service range of one base station are the base station and the terminals, the terminals do not need to be explicitly identified in the MAC message transmitted over the actual air interface.
Data communication between a terminal and a PDN GW (Packet Data Network Gateway) is implemented by using a tunnel based on a GTP-U (General Packet Radio Service tunneling protocol-User Plane) protocol. The mapping from the LTE-air interface format to the GTP-U data format is completed in a base station by an IP data message communicated between a terminal and a network; adopting a GTP-U tunnel to carry between a base station and a PDN GW; and at the PDNGW (packet Data Network gateway), the uplink PDN GW completes the decapsulation from the GTP-U Data format to the IP Data message, and encapsulates the IP Data message into the GTP-U format in the downlink direction.
For a network adopting an IEEE 802.3 protocol (referred to as an 802.3 network for short), an addressing mechanism adopted by the network is a two-layer addressing technology, that is, a MAC address is adopted to uniquely identify a certain network element entity within a two-layer network range. In such an MAC message, MAC addresses of both the transmitting and receiving sides, i.e., a source MAC address of a message transmitting side and a destination MAC address of a message receiving side, need to be explicitly given.
For the network layer communication mechanism, the adopted addressing mechanism is a three-layer addressing technology, namely, the intercommunication of the equipment is realized based on the IP address. In the header of the IP message, the IP address of the sender and the IP address of the receiver need to be given.
For WLANs (Wireless Local Area Networks) based on IEEE 802.11 series protocols, the adopted addressing mechanism is a two-layer addressing technology based on an air interface and an uplink interface, and the addressing mechanism based on 802.3 Networks is adopted. The MAC message on the air interface also needs to explicitly provide the MAC addresses of both the transmitter and the receiver, i.e. the source MAC address of the message sender and the destination MAC address of the message receiver. And the MAC address format of the air interface of the WLAN and the MAC address used in the 802.3 network use the same address format.
However, for LTE-LAN, its two layers are based on 802.3 protocols due to the uplink interface (i.e., Iu-r interface) of LTE-LAN-AP. Based on the consideration of cost, the LTE-LAN-AP is a two-layer device and does not have data forwarding capability based on IP, namely the LTE-LAN-AP adopts a layer two method to realize the forwarding of data messages without the function of a router. Therefore, LTE-LAN-AP is not suitable for three-layer addressing techniques, and a mapping mechanism similar to GTP-U tunnel cannot be adopted between LTE-LAN-AP and LTE-LAN-GW (gateway in LTE-LANT system).
Further, since LTE-LAN and WLAN employ completely different physical layer technologies, respectively, the air interface of LTE-LAN is also unlikely to use the two-layer addressing technology in WLAN directly; and the air interface in LTE-LAN is designed by greatly simplifying the existing dedicated Bearer mechanism, for example, only one DRB (Data Radio Bearer) may be designed for one terminal. Considering that the communication of the LTE-LAN is mainly performed between the terminal and the LTE-LAN-AP, it is also not suitable to introduce a two-layer addressing technique based on or similar to 802.3 networks.
It can be seen that LTE-LAN-UE and LTE-LAN-GW can support transceiving of three-layer data packets, but LTE-LAN-AP only supports forwarding of two-layer data packets, and therefore, an adaptive two-layer addressing mechanism needs to be redesigned for LTE-LAN system to implement interworking between LTE-LAN-AP and terminal (i.e. LTE-LAN-UE), and LTE-LAN-GW.
Detailed Description
In order to implement intercommunication of two-layer data messages between an LTE-LAN-AP (hereinafter referred to as AP) and an LTE-LAN-UE (terminal in an LTE-LAN system, hereinafter referred to as UE) and an LTE-LAN-GW (hereinafter referred to as GW), in an embodiment of the present invention, when an AP receives a first data message sent by a first network element, the AP obtains identification information of the UE according to the first data message, obtains two-layer identification information used for generating a second data message according to the identification information of the UE, generates a corresponding second data message based on the obtained two-layer identification information and the received first data message, and sends the second data message to a second network element.
The first network element may be a UE or a GW, and the second network element may be a GW or a UE.
In this embodiment, in order to implement the above technical solution, a mapping relationship between the UE and the MAC address based on the 802.3 protocol allocated to the UE is preset in the AP, for example, the mapping relationship may be set in the form of table 1:
TABLE 1
Table 1 shows a mapping relationship between the C-RNTI value of the UE and the 802.3 protocol-based MAC address assigned to the UE by the AP, and further, a mapping relationship between the IP address of the UE and the above-mentioned both, where the 802.3 protocol-based MAC address assigned to the UE has 6 bytes in total, and usually, the first 3 bytes of the MAC address are used to identify a manufacturer, and the last 3 bytes are automatically assigned by the manufacturer of the UE. Preferably, in the present invention, the address of the actual ethernet interface of the AP may be used as the first 3 bytes, and the last 3 bytes are allocated by the AP, for example, the UE may perform unique identification on the air interface through the C-RNTI value, so that the C-RNTI may be placed in two bytes of the last 3 bytes, and the remaining one byte may be allocated freely, and preferably, may be set as the identification of the DRB of the UE, or set as a designated field in the identification of the AP, and so on.
In addition, if the UE already has a MAC address based on the 802.3 protocol and the UE has a WLAN interface or has an ethernet interface, the UE may report the existing MAC address based on the 802.3 protocol to the AP in a signaling message, and the AP stores the mapping relationship between the UE and the MAC address based on the 802.3 protocol of the UE in the form of table 1.
Further, as shown in table 1, an IP address of the UE may also be recorded in table 1, so as to clarify a mapping relationship between the UE, the 802.3 protocol-based MAC address of the UE, and the IP address of the UE, so as to facilitate a subsequent communication process, which will be described in a subsequent embodiment.
Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Referring to fig. 1, in the embodiment of the present invention, an LTE-LAN system includes an LTE-LAN-UE (abbreviated as UE), an LTE-LAN-AP (abbreviated as AP), and an LTE-LAN-GW (abbreviated as GW), where the UE and the AP communicate with each other through a Uu interface, and the AP and the GW communicate with each other based on an 802.3 protocol, which is referred to as an Iu-r interface.
Referring to fig. 2, in the embodiment of the present invention, the AP includes a receiving unit 20, an obtaining unit 21, a generating unit 22, and a transmitting unit 23, wherein,
a receiving unit, configured to receive a first data packet sent by a first network element;
an obtaining unit, configured to obtain identification information of a UE according to the first data packet, and obtain, according to the identification information of the UE, two-layer identification information for generating a second data packet;
a generating unit, configured to generate a corresponding second data packet based on the second layer identification information and the first data packet;
a sending unit, configured to send the second data packet to a second network element.
As shown in fig. 2, in the embodiment of the present invention, the AP further includes a setting unit 24, configured to set a MAC address of the UE for the UE, and set a mapping relationship between the C-RNTI of the UE and the MAC address of the UE, and an IP address of the UE,
referring to fig. 3, in the embodiment of the present invention, a detailed flow of processing a data packet by an AP is as follows:
step 300: and the AP receives a first data message sent by the first network element.
In this embodiment, the sending of the data packet is divided into two directions:
in the uplink direction, the UE sends an uplink message to the AP, the AP forwards the uplink message to the GW after receiving the uplink message, and the GW performs three-layer processing.
The downlink direction is as follows: the GW sends a downlink message to the AP, and the AP forwards the downlink message to the UE after receiving the downlink message.
Therefore, the first data packet received by the AP may be an uplink packet or a downlink packet, and the first network element that sends the first data packet may be a UE or a GW.
Step 310: and the AP acquires the identification information of the UE according to the received first data message and acquires the two-layer identification information for generating a second data message according to the identification information of the UE.
In this embodiment, whether the first data packet sent by the UE or the first data packet sent by the GW should include the identification information of the UE, where the identification information may be a C-RNTI of the UE, an MAC address of the UE, or an IP address of the UE, and then the AP obtains the two-layer identification information according to the mapping relationship set in table 1.
Step 320: and the AP generates a corresponding second data message based on the obtained two-layer identification information and the received first data message.
In this embodiment, the AP generates the second data packet based on the two-layer identification information and the first data packet, so as to encapsulate the first data packet into the two-layer data packet based on the two-layer identification information and forward the two-layer data packet, thereby avoiding performing three-layer data processing on the first data packet.
Step 330: and the AP sends the generated second data message to a second network element.
Similar to step 300, the second data message generated by the AP may be an uplink message or a downlink message, and the second network element may be a GW or a UE.
Based on the above examples, three specific embodiments thereof will be described in detail below.
In the first case, assuming that the first network element is UE, the second network element is GW, the first data packet is uplink packet a, and the second data packet is uplink packet b, the execution manners of steps 300 to 330 are as follows:
step 3001: and the AP receives an uplink message a sent by the UE.
In the embodiment of the present invention, the MAC frame format adopted by the uplink packet a sent by the UE, which is received by the AP based on the air interface (i.e., Uu interface) of the LTE-LAN, is specifically shown in table 2:
TABLE 2
Wherein,
the MAC Header is realized based on an MAC Header of an LTE air interface, needs to be defined in an LTE-LAN system, but does not contain MAC addresses of a transmitting party and a receiving party;
SDU, Service Data Unit, used to record IP Data message sent by UE;
PADDING: and filling the field.
Step 3011: the AP determines the identification information of the UE, namely C-RNTI of the UE, based on the uplink message a sent by the UE, and obtains the MAC address of the UE according to the C-RNTI, wherein the MAC address is the two-layer identification information used for generating the uplink message b forwarded to the GW.
In the embodiment of the invention, the C-RNTI of the UE is implicitly notified to the AP through the uplink message a, for example, before the UE sends the uplink message a, the system can carry out resource scheduling and allocate radio bearer resources for bearing the uplink message a to the UE, so that the AP can know which UE the sender is according to the radio bearer resources used when the UE sends the uplink message a, namely, the C-RNTI of the UE can be obtained.
After obtaining the C-RNTI of the UE, the AP may obtain the MAC address of the UE preset corresponding to the C-RNTI based on the mapping relationship set in table 1.
Step 3021: and the AP generates an uplink message b sent to the GW according to the obtained MAC address of the UE and the uplink message a sent by the UE.
In this embodiment, the MAC frame format adopted by the uplink packet b generated by the AP is specifically shown in table 3, and the MAC frame format is based on an 802.3 protocol:
TABLE 3
Wherein,
SRC MAC ADDR (source MAC address), typically set to 6 bytes, for recording the MAC address of the UE, i.e. the 802.3 protocol based MAC address set by the C-RNTI of the corresponding UE determined in step 3011;
DEST MAC ADDR (destination MAC address), typically set to 6 bytes, for recording the MAC address of the GW, which is also 802.3 compliant;
in practical applications, the AP is usually connected to a GW, so the MAC address of the GW can be obtained through methods such as pre-configuration or protocol interaction.
DATA (DATA) for recording an IP DATA packet;
the AP needs to encapsulate an IP DATA packet recorded in an SDU field of the uplink packet a in a DATA field without modification, and preferably, the IP DATA packet may be encapsulated by using an LLC (Logical Link Control) protocol, where the length of the DATA field is variable;
in addition, the following fields are also provided:
preamble (Preamble field), usually set to 7 bytes, indicating the start of one MAC frame;
TYPE, which is usually set to 2 bytes, and fills in 0x8000, indicating that what is described in the DATA field is an IP DATA packet;
FCS (frame Check sequence) is a 32-bit CRC (Cyclic Redundancy Check code).
Step 3031: and the AP sends the uplink message b to the GW.
Thus, the AP completes the forwarding of the two-layer data message from the UE to the GW, so that the GW can extract the IP data message from the received two-layer data message and perform three-layer data processing.
In the second case, assuming that the first network element is GW, the second network element is UE, the first data packet is downlink packet a, and the second data packet is downlink packet b, the execution manners of steps 300 to 330 are as follows:
step 3002: and the AP receives a downlink message a sent by the GW.
In the embodiment of the present invention, the MAC frame format of the downlink packet a sent by the GW and received by the AP based on the uplink interface (i.e., Iu-r interface) is shown in table 3, wherein,
SRC MAC ADDR (source MAC address), typically set to 6 bytes, for recording the MAC address of the GW, which is also 802.3 compliant;
DEST MAC ADDR (destination MAC address), usually set to 6 bytes, for recording the MAC address of the UE, i.e. the MAC address of the UE sent to the GW in the uplink packet a;
DATA is used for recording IP DATA messages replied by GW;
the setting manner of the remaining fields refers to step 3021, and is not described herein again.
Step 3012: the AP determines the identification information of the UE, namely the MAC address of the UE, based on the downlink message a sent by the GW, and obtains the C-RNTI of the UE according to the MAC address, wherein the C-RNTI is the two-layer identification information used for generating the downlink message b forwarded to the UE.
In the embodiment of the present invention, after obtaining the MAC address of the UE, the AP may obtain the C-RNTI of the UE corresponding to the MAC address preset based on the mapping relationship set in table 1.
Step 3022: and the AP generates a downlink message b sent to the GW according to the acquired C-RNTI of the UE and the downlink message a sent by the GW.
Specifically, when the AP generates the downlink packet b, since the AP has previously learned the C-RNTI of the UE receiving the downlink packet b, the radio bearer resource used for sending the downlink packet b can be determined according to the C-RNTI of the UE and other related information, and scheduling of the radio bearer resource is performed, so as to ensure that the UE can receive the downlink packet b.
In this embodiment, the MAC frame format used by the AP to generate the downlink packet b is specifically shown in table 2, wherein,
SDU, which is used to record IP DATA message sent by GW, namely the content recorded in DATA field in downlink message a distributed by GW;
the setting manner of the other fields refers to step 3000, and is not described herein again.
In practical application, because the IP data packet contained in the uplink packet of the UE can only be forwarded to the GW for processing at the AP, and meanwhile, the UE only needs to process the IP data packet returned by the GW, in step 3022, it is not necessary to place the MAC address based on the 802.3 protocol and the MAC address of the GW allocated to the UE as the destination address and the source address in the MAC header field of the downlink packet b as the addressing information.
Step 3032: and the AP sends the downlink message b to the UE.
Thus, the AP completes the forwarding of the two-layer data message from the GW to the UE, so that the UE can extract the IP data message from the received two-layer data message and perform three-layer data processing.
Different from the two situations, there is also a special case that the first network element and the second network element are both GW, the first data message is an Address Resolution Protocol (ARP) request message, and the second data message is an ARP response message, and the execution manners of steps 300 to 330 are as follows:
step 3003: the AP receives a downlink message c, i.e. an ARP request message, sent by the GW.
In practical application, the ARP request message usually carries an IP address of a certain network element, and the purpose of the ARP request message is to obtain an MAC address of the network element using the IP address, so as to subsequently encapsulate and send a corresponding data packet.
On the other hand, the AP may obtain the IP address of the UE during the initial access of the UE to the LTE-LAN system, which is not described herein again.
Step 3013: the AP determines the identification information of the UE, namely the IP address of the UE, based on the ARP request message sent by the GW, and obtains the MAC address of the UE according to the IP address, wherein the MAC address is the two-layer identification information used for generating the ARP response message returned to the GW.
In the embodiment of the present invention, after obtaining the IP address of the UE, the AP may obtain the MAC address of the UE preset corresponding to the IP address based on the mapping relationship set in table 1.
Step 3023: the AP generates an uplink message c sent to the GW, namely an ARP response message according to the obtained MAC address of the UE and the ARP request message sent by the UE.
In this embodiment, the AP encapsulates the obtained MAC address of the UE in the specified field of the uplink packet c, and returns the MAC address to the GW as an ARP response message.
Step 3033: the AP sends an uplink message c, i.e., an ARP response message, to the GW.
Different from the existing PROXY (AP) protocol, in the ARP response message, the AP returns the 802.3 protocol-based MAC address of the UE instead of the MAC address of the AP, so that when the subsequent GW sends a downlink message, the MAC address of the UE can be directly used as the destination MAC address, the downlink message is encapsulated according to the MAC frame format shown in table 3, and the downlink message is transmitted to the UE through the AP, so that the AP can implement the interworking between the AP and the UE and the GW without performing three-layer data processing on the transmitted downlink message.
To sum up, in the embodiment of the present invention, the AP obtains the identification information of the UE according to the first data packet received by the first network element, and obtains the two-layer identification information set corresponding to the identification information of the UE, and then generates the second data packet based on the two-layer identification information and the first data packet, and sends the second data packet to the second network element, where the first network element and the second network element may be UE and GW, GW and UE, or both GW, respectively, so as to solve the forwarding problem of the two-layer data packet in the LTE-LAN system, implement data communication in the LTE-LAN system, that is, the intercommunication among UE, AP and GW, and save the overhead of the air interface, and on the other hand, because of adopting the above-mentioned technology, it is not necessary to introduce an IP layer forwarding function into the AP, and it is not necessary to have a router function, thereby effectively reducing the device cost of the AP, meanwhile, the cost of network deployment and operation maintenance of the LTE-LAN system is also reduced.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.