CN109195200B - APN allocation method, device, communication equipment and system - Google Patents

APN allocation method, device, communication equipment and system Download PDF

Info

Publication number
CN109195200B
CN109195200B CN201810979904.1A CN201810979904A CN109195200B CN 109195200 B CN109195200 B CN 109195200B CN 201810979904 A CN201810979904 A CN 201810979904A CN 109195200 B CN109195200 B CN 109195200B
Authority
CN
China
Prior art keywords
apn
terminal
identification information
item
data frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810979904.1A
Other languages
Chinese (zh)
Other versions
CN109195200A (en
Inventor
董致礼
李明珠
王茂斌
饶琴
邱桥春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Comba Network Systems Co Ltd
Original Assignee
Comba Telecom Systems China 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 Comba Telecom Systems China Ltd filed Critical Comba Telecom Systems China Ltd
Priority to CN201810979904.1A priority Critical patent/CN109195200B/en
Publication of CN109195200A publication Critical patent/CN109195200A/en
Application granted granted Critical
Publication of CN109195200B publication Critical patent/CN109195200B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

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

Abstract

The invention relates to an APN allocation method, an APN allocation device, communication equipment and a system. The APN allocation method comprises the following steps: when the record of the terminal identification information in the terminal side data frame is found, editing the terminal side data frame based on the terminal identification information to obtain and upload a terminal side data frame matched with the corresponding APN; and when the record of the APN identification information in the data frame of the communication protocol conversion side is found, the data frame of the communication protocol conversion side is edited based on the APN identification information, and the data frame of the communication protocol conversion side matched with the corresponding terminal equipment is obtained and issued. The invention can bind each APN and each terminal device one by one, namely, one-to-one corresponding network link is established between the APN and the terminal device, thereby realizing that each terminal device can independently share the network bandwidth, ensuring that the network bandwidths among the terminal devices cannot be influenced mutually, and greatly improving the stability of the network bandwidth of the terminal devices.

Description

APN allocation method, device, communication equipment and system
Technical Field
The present application relates to the field of mobile communications technologies, and in particular, to an APN assignment method, an APN assignment device, a communication device, and a system.
Background
With the development of mobile communication technology, the requirements of LTE (Long Term Evolution) on terminal products are higher and higher, and in order to adapt to the characteristics and advantages of LTE technology, terminal products also face diversified network requirements.
At present, a service bearer is allocated for communication between a base station and a modem through an Access Point Name (APN), and the modem distinguishes different service channels through a Virtual Local Area Network (VLAN) for communication with a terminal device.
In the process of realizing network communication of terminal equipment, the inventor finds that at least the following problems exist in the traditional technology: the terminal device only supports communication with a single APN, the traditional working mode is a routing mode, and in the routing mode, the terminal devices in the local area network all communicate with the same APN, so that a plurality of terminal devices share network bandwidth, the network bandwidth among the terminal devices can be influenced mutually, and particularly under the condition that some terminal devices occupy most of the network bandwidth, the network bandwidth of other terminal devices can be seriously influenced.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an APN assignment method, an APN assignment device, a communication device, and a system that can prevent network bandwidths of different terminal devices from affecting each other.
In order to achieve the above object, in one aspect, an embodiment of the present invention provides an APN assignment method, including:
when the record of the terminal identification information in the terminal side data frame is found, the terminal side data frame is edited based on the terminal identification information, and the terminal side data frame matched with the corresponding APN is obtained and uploaded;
and when the record of the APN identification information in the data frame of the communication protocol conversion side is found, the data frame of the communication protocol conversion side is edited based on the APN identification information, and the data frame of the communication protocol conversion side matched with the corresponding terminal equipment is obtained and issued.
In one embodiment, the step of searching for the record of the terminal identification information in the terminal-side data frame comprises:
extracting terminal identification information of a received terminal side data frame, and inquiring a preset forwarding table through the terminal identification information; the preset forwarding table comprises first terminal identification items which are used for associating terminal equipment;
when a first terminal identification item matched with the terminal identification information exists in a preset forwarding table, confirming the record of the searched terminal identification information;
the step of searching the record of the APN identification information in the data frame of the communication protocol conversion side comprises the following steps:
extracting APN identification information of a received data frame at a communication protocol conversion side, and inquiring a preset forwarding table through the APN identification information; the preset forwarding table also comprises first APN items used for associating APNs
And when a first APN item matching the APN identification information exists in the preset forwarding table, confirming the searched record of the APN identification information.
In one embodiment, each first terminal identification item in a preset forwarding table corresponds to each first APN item one to one; the terminal identification information is a VLAN field;
the step of editing the terminal-side data frame based on the terminal identification information includes:
acquiring a matching APN item; the matching APN item is a first APN item corresponding to a first terminal identification item matching the terminal identification information in a preset forwarding table;
modifying the corresponding field of the terminal identification information into a value matching the APN item;
the step of editing the data frame of the communication protocol conversion side based on the APN identification information comprises the following steps:
acquiring a matching terminal identification item; the matching terminal identification item is a first terminal identification item corresponding to a first APN item which is matched with the APN identification information in a preset forwarding table;
and modifying the corresponding field of the APN identification information into the value of the matched terminal identification item.
In one embodiment, the preset forwarding table further includes a second terminal identification item and a second APN item corresponding to the second terminal identification item; the second terminal identification item is used for associating terminal equipment without terminal identification information in the terminal side data frame;
before the step of searching the record of the terminal identification information, the method further comprises the following steps:
confirming whether terminal identification information exists in a terminal side data frame;
when the data frame does not exist, adding the value of the second APN item in the terminal side data frame and uploading the value;
the step of editing the data frame of the communication protocol conversion side based on the APN identification information comprises the following steps:
and deleting the APN identification information in the data frame of the communication protocol conversion side when the APN identification information is matched with the second APN item.
In one embodiment, each first terminal identification item in a preset forwarding table corresponds to each first APN item one to one; the terminal identification information is a source MAC field;
the step of editing the terminal-side data frame based on the terminal identification information includes:
acquiring a matching APN item; the matching APN item is a first APN item corresponding to a first terminal identification item matching the terminal identification information in a preset forwarding table;
adding a value matching the APN item to a terminal side data frame;
the step of editing the data frame of the communication protocol conversion side based on the APN identification information comprises the following steps:
and deleting the APN identification information in the data frame of the communication protocol conversion side.
In one embodiment, the step of querying the preset forwarding table through the terminal identification information includes:
polling a preset forwarding table through a pointer to find whether a first terminal identification item matched with the terminal identification information exists or not;
the step of inquiring the preset forwarding table through the APN identification information comprises the following steps:
and polling a preset forwarding table through a pointer to find whether a first APN item matching the APN identification information exists.
In one aspect, an embodiment of the present invention further provides an APN assignment device, including:
the terminal data processing module is used for editing the terminal side data frame based on the terminal identification information when the record of the terminal identification information in the terminal side data frame is found, and obtaining and uploading the terminal side data frame matched with the corresponding APN;
and the communication processing module is used for editing the data frame of the communication protocol conversion side based on the APN identification information when the record of the APN identification information in the data frame of the communication protocol conversion side is found, and obtaining and issuing the data frame of the communication protocol conversion side matched with the corresponding terminal equipment.
In one aspect, an embodiment of the present invention provides a communication device, where the communication device is connected between a terminal device and a communication protocol conversion device;
the communication device is configured to perform the steps of the APN assignment method.
In one embodiment, the communication device is a CPE device, an MIFI device, or a bridge.
On the other hand, the embodiment of the invention provides an APN distribution system, which comprises a core network, a base station, a communication protocol conversion device, a communication device, an ethernet building device and a terminal device which are connected in sequence; the communication device is configured to perform the steps of the APN assignment method.
In another aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the steps of the APN assignment method described above.
One of the above technical solutions has the following advantages and beneficial effects:
the data frame of the terminal side and the data frame of the communication protocol conversion side are searched and edited respectively to obtain the data frame of the terminal side matched with the corresponding APN and the data frame of the communication protocol conversion side matched with the corresponding terminal equipment, so that the one-to-one binding between each APN and each terminal equipment is realized, namely, the one-to-one corresponding network link is established between the APN and the terminal equipment, the independent sharing of the network bandwidth of each terminal equipment is realized, the network bandwidth between each terminal equipment is ensured not to influence each other, and the stability of the network bandwidth of the terminal equipment is greatly improved.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
fig. 1 is an application environment diagram of an APN assignment method in an embodiment;
figure 2 is a first schematic flow chart diagram of a method for APN assignment in one embodiment;
figure 3 is a second schematic flow chart diagram of an APN assignment method in an embodiment;
FIG. 4 is a first diagram illustrating pre-provisioning of a forwarding table, according to an embodiment;
fig. 5 is a schematic flow chart illustrating a process of querying a preset forwarding table through terminal identification information in an APN distribution method in an embodiment;
figure 6 is a third schematic flow chart diagram of an APN assignment method in an embodiment;
FIG. 7 is a second diagram illustrating pre-provisioning of a forwarding table, according to an embodiment;
figure 8 is a fourth schematic flow chart diagram of a method for APN assignment in an embodiment;
FIG. 9 is a third diagram illustrating pre-provisioning of a forwarding table, according to an embodiment;
figure 10 is a block schematic diagram of an APN distribution mechanism in one embodiment;
fig. 11 is a diagram of an application environment in which the APN assignment method is applied to a bridge in one embodiment;
fig. 12 is a diagram of an application environment in which an APN assignment method is applied to CPE devices in an embodiment;
FIG. 13 is a schematic block diagram of a communication apparatus in one embodiment;
FIG. 14 is a diagram of a forwarding table of a VLAN- -APN VLAN in one embodiment;
FIG. 15 is a first schematic internal structural diagram of a communication device in one embodiment;
FIG. 16 is a second schematic internal block diagram of a communication device in one embodiment;
figure 17 is a block schematic diagram of an APN assignment system in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The APN assignment method provided by the present application may be applied to an application environment as shown in fig. 1. The base station 109, the communication protocol conversion device 107, the communication device 105, and the ethernet construction device 103 are sequentially connected, the ethernet construction device 103 is respectively connected to a plurality of terminal devices 101, and different terminal devices 101 are also different terminal devices.
From the base station 109 to the communication protocol conversion device 107, a traffic bearer is assigned by setting a plurality of APNs, and the communication protocol conversion device 107 distinguishes the traffic bearer by a VLAN.
Further, the application environment may further include a Core network (EPC) connected to the base station; the core network can lead the data of different terminal users (terminal devices) to different network domains, and can lead all the terminal users to the same network domain; the core network can also assign different IP addresses to end users corresponding to different APNs.
Further, during the downlink transmission, the base station transmits a communication protocol conversion side data frame corresponding to data of a different network domain to the communication device 105 through the communication protocol conversion device 107; the communication device 105 receives the data frame of the communication protocol conversion side, searches and edits the data frame of the communication protocol conversion side, so that the data frame of the communication protocol conversion side matches with the corresponding terminal device, and then transmits the data frame of the communication protocol conversion side to the terminal device 101 through the ethernet construction device 103, so that the corresponding terminal device 101 obtains the transmitted data frame of the communication protocol conversion side.
Similarly, in the transmission process of the uplink, the terminal device 101 sends a terminal-side data frame to the communication device 105 through the ethernet configuration device 103, and the communication device 105 receives the terminal-side data frame, searches and edits the terminal-side data frame, and uploads the terminal-side data frame to the communication protocol conversion device 107, so that the terminal-side data frame matches a corresponding APN, and further the communication protocol conversion device 107 matches different APNs through the corresponding APNs to allocate service bearer channels, and transmits the terminal-side data frame to the base station.
The terminal device 101 may be, but not limited to, various personal computers, laptops, smart phones, tablet computers, portable wearable devices, and even CPE devices (LTE CPE devices, and also LTE-CPE devices), the ethernet building device 103 may be, but not limited to, hubs and switches, the communication device 105 may be, but not limited to, bridges, CPE (Customer Premise Equipment) devices, or MIFI (Mobile WIFI, Mobile hotspot) devices, the communication Protocol conversion device 107 may be, but not limited to, a modem, and the communication Protocol conversion device 107 is used for converting between 3GPP (3rd Generation Partnership Project) protocols and TCP/IP (Transmission Control Protocol/Internet Protocol) protocols.
The network bridge is a two-port two-layer network device, and is used for connecting different network segments, so that when the communication device 105 is the network bridge, the network bridge cannot be used for accessing the internet, and when the communication device 105 is a CPE device or an MIFI device, the network bridge can only access the internet, so that the communication device 105 can establish connection with a network management process in a server on the internet, and communication management is performed on the communication device 105 through the network management process.
In one embodiment, as shown in fig. 2, an APN assignment method is provided, which is described by taking the method as an example applied to the communication device 105 in fig. 1, and includes the following steps:
uplink transmission:
step S202, when finding out the record of the terminal identification information in the terminal side data frame, editing the terminal side data frame based on the terminal identification information to obtain the terminal side data frame matched with the corresponding APN and uploading the terminal side data frame to the communication protocol conversion equipment;
the terminal identification information may be a VLAN field or a source MAC field in the terminal-side data frame.
Specifically, the terminal device sends out a terminal side data frame through the ethernet construction device, and the communication device receives the sent out terminal side data frame; the communication equipment stores data matched with the terminal identification information and is used for inquiring whether a record matched with the terminal identification information exists or not; and based on the matching record inquired by the terminal identification information, the communication equipment identifies the terminal equipment associated with the terminal identification information, so that the terminal side data frame is edited, the terminal side data frame matched with the corresponding APN is obtained and uploaded to the communication protocol conversion equipment, and the APN and the terminal equipment are bound one by one. In addition, when no record matching the terminal identification information exists is found, the terminal side data frame is discarded.
Downlink transmission:
step S212, when finding out the record of the APN identification information in the data frame of the communication protocol conversion side, editing the data frame of the communication protocol conversion side based on the APN identification information to obtain the data frame of the communication protocol conversion side matched with the corresponding terminal equipment, and sending the data frame of the communication protocol conversion side to the terminal equipment through the Ethernet construction equipment, wherein the data frame of the communication protocol conversion side is finally obtained by the matched corresponding terminal equipment.
The APN identification information may be a VLAN field in a data frame on the communication protocol conversion side.
Specifically, the communication device receives a communication protocol conversion side data frame sent by the communication protocol conversion device; the communication equipment stores data matched with the APN identification information and is used for inquiring whether a record matched with the APN identification information exists; based on the matching record inquired by the APN identification information, the communication equipment identifies the APN associated with the APN identification information, so that the data frame of the communication protocol conversion side is edited, the data frame of the communication protocol conversion side matched with the corresponding terminal equipment is obtained and is issued to the terminal equipment through the Ethernet construction equipment, and the APN and the terminal equipment are bound one by one. In addition, when finding out that there is no record matching APN identification information, discarding the data frame of the communication protocol conversion side
In the above-mentioned method for allocating APN, the terminal device and the APN can be bound, each terminal device can share one APN, that is, each user can share one network bandwidth, thereby avoiding the mutual influence of the network rates among the users caused by the sharing of one network bandwidth by a plurality of users.
In one embodiment, as shown in fig. 3, an APN assignment method is provided, which is described by taking the method as an example applied to the communication device 105 in fig. 1, and includes the following steps:
uplink transmission:
step S302, extracting terminal identification information of a terminal side data frame, and inquiring a preset forwarding table stored in the communication equipment through the terminal identification information; the preset forwarding table comprises first terminal identification items used for associating terminal equipment and first APN items used for associating APNs;
the preset forwarding table may be a USER VLAN-APN VLAN forwarding table as shown in fig. 4, each first terminal identification item (USER VLAN1, USER VLAN2, USER VLAN3 through USER VLAN n in fig. 4) in the preset forwarding table corresponds to each first APN item (APN VLAN1, APN VLAN2, APN VLAN3 through APN VLAN n in fig. 4) one by one, and the first terminal identification item and the first APN item are both numerical values with the same format as the VLAN field. The terminal identification information is a VLAN field in the terminal-side data frame.
Step S304, when a first terminal identification item matching the terminal identification information exists, confirming the searched record of the terminal identification information, and acquiring a matching APN item; and when the first terminal identification item matching the terminal identification information does not exist, discarding the terminal side data frame.
The matching APN item is a first APN item corresponding to a first terminal identification item which is in a preset forwarding table and matches the terminal identification information;
step S306, modifying the corresponding field of the terminal identification information into the value matching the APN item, and uploading the terminal side data frame after modifying the terminal identification information to the communication protocol conversion equipment.
Specifically, the terminal identification information in the terminal-side data frame is modified to a value matching the APN entry, that is, the VLAN field in the terminal-side data frame is modified to a value matching the APN entry.
In a specific embodiment, the step of querying the preset forwarding table through the terminal identification information may include:
polling a preset forwarding table through a pointer to find whether a first terminal identification item matched with the terminal identification information exists or not;
further, the step of querying the preset forwarding table through the terminal identification information is shown in fig. 5, and includes:
step S502, the pointer points to the first terminal identification item in the preset forwarding table;
step S504, judge whether the pointer points to the end of the preset forwarding table, if yes, finish; if not, go to step S506;
the end refers to the bottom of a preset forwarding table, namely the next piece of the last first terminal identification item.
Specifically, the end refers to the address of the last entry of the forwarding table plus one, and if it is determined that the content pointed by the pointer of the forwarding table is empty, that is, the end is reached, it indicates that the last entry has been searched for or is not matched, and at this time, it may be determined that all entries of the entire forwarding table are not matched with the VLAN (i.e., the terminal identification information) of the terminal-side data frame.
Step S506, judging whether the first terminal identification item pointed by the pointer is matched with the terminal identification information, if so, executing step S510; if not, go to step S508;
step S508, the pointer points to the next first terminal identification item, and the step S504 is returned;
step S510, confirming the first terminal identification item matching the terminal identification information found.
Downlink transmission process:
step S312, APN identification information of a data frame at a communication protocol conversion side is extracted, and a preset forwarding table is inquired through the APN identification information;
the APN identification information may be a VLAN field in a data frame on the communication protocol conversion side.
Specifically, the step of querying the preset forwarding table through the APN identification information includes: and polling a preset forwarding table through a pointer to find whether a first APN item matching the APN identification information exists.
Further, the step of querying the preset forwarding table through the APN identification information is the same as the step S502 to the step S510, except that: the terminal identification information corresponds to APN identification information, and the first terminal identification item corresponds to a first APN item.
Step S314, when a first APN item matching the APN identification information exists, confirming the searched record of the APN identification information, and acquiring a matching terminal identification item; and when the first APN item matching the APN identification information does not exist, discarding the data frame of the communication protocol conversion side.
The matching terminal identification item is a first terminal identification item corresponding to a first APN item which is in a preset forwarding table and matches APN identification information;
step S316, modifying the corresponding field of the APN identification information into a value matching the terminal identification item, and issuing the communication protocol conversion side data frame after modifying the APN identification information to the terminal device 101, so that the terminal device 101 obtains the associated communication protocol conversion side data frame.
Specifically, the APN identification information is modified into the value matching the terminal identification item, that is, the VLAN field in the data frame on the communication protocol conversion side is modified into the value matching the terminal identification item
In one specific embodiment, the first APN item matched with the terminal identification information or the first terminal identification item matched with the APN identification information is directly obtained through the direct query of the preset forwarding table, instead of temporarily allocating the corresponding first APN item to the terminal identification information or allocating the corresponding first terminal identification item to the APN identification information, so that the data processing efficiency is improved.
In an embodiment based on the previous embodiment, as shown in fig. 6, an APN assignment method is provided:
uplink transmission:
step 602, before step S302, determining whether terminal identification information exists in the terminal-side data frame, and when it is determined that the terminal identification information does not exist, adding a value of a second APN item in the terminal-side data frame and uploading the terminal-side data frame to the communication protocol conversion device; and when the terminal identification information does not exist and the second APN item does not exist, discarding the terminal side data frame.
As shown in fig. 7, the second APN entry (APN VLAN m in fig. 7) is included in the preset forwarding table and is associated with the APN. The preset forwarding table further includes a second terminal identifier (NO VLAN in fig. 7) corresponding to the second APN item, and the second terminal identifier is associated with a terminal device that does not have terminal identifier information in the terminal-side data frame.
Specifically, when it is confirmed that there is no APN, the value of the second APN entry is added as a VLAN field to the terminal-side data frame, and the terminal-side data frame is uploaded to the communication protocol conversion device.
Downlink transmission:
step 612, when the APN identification information matches the second APN item, deleting the VLAN field in the data frame of the communication protocol conversion side and sending the VLAN field to the terminal device, so that the terminal device obtains the data frame of the associated communication protocol conversion side.
For terminal equipment without terminal identification information, a scheme for providing an APN and corresponding to the APN is provided in a specific embodiment, so that the application range is further improved compared with the previous embodiment, and before the step of extracting the terminal identification information of the terminal side data frame, the processing of the terminal side data frame sent by the terminal equipment without the terminal identification information is performed, namely the priority of the terminal equipment 101 without the terminal identification information is higher than that of the terminal equipment including the terminal identification information, the APN can be preferentially matched, and the temporary allocation of the APN is facilitated.
Based on the above, to further illustrate the present invention, the specific implementation process of the APN assignment method of the present invention is described by taking the USER VLAN-APN VLAN forwarding table as an example, as follows.
For example, a user VLAN implementation apparatus applying the APN assignment method includes:
a processor for processing instructions;
a memory for storing a plurality of instructions, the instructions adapted to be loaded and executed by the processor;
the memory is further configured to store a USER VLAN-APN VLAN forwarding table, where the forwarding table includes a plurality of preset forwarding rules, and each preset forwarding rule includes two items, namely, a USER VLAN (such as USER VLAN1, USER VLAN2, USER VLAN3 through USER VLAN n shown in fig. 4) and an APN VLAN (such as APN VLAN1, APN VLAN2, APN VLAN3 through APN VLAN n shown in fig. 4).
The above instructions include the steps of processing the received data frame as shown in fig. 4:
uplink transmission:
a) receiving a data frame sent by a USER device (namely, a terminal device), wherein the data frame is represented as a USER VLAN X in the figure 4;
b) judging whether the VLAN information of the data frame is matched with a preset forwarding rule or not; if yes, the VLAN information of the data frame is rewritten into a corresponding APN VLAN, that is, an Alter VLAN (modifying VLAN, which refers to modifying a VLAN ID in the data frame) between the USER VLAN X and the APN VLAN X in fig. 4, and then the data frame is forwarded upwards to a modem (modem, that is, a communication protocol conversion device) side in fig. 4, the forwarded data frame is represented as the APN VLAN X in fig. 4, and the binding of the USER VLAN and the APN in an uplink is realized;
downlink transmission:
a) receiving a data frame sent by a modem, wherein the data frame is represented as APN VLAN Y in FIG. 4;
b) judging whether the VLAN information of the data frame is matched with a preset forwarding rule (which can be a forwarding table in FIG. 4) or not; if yes, the VLAN information of the data frame is rewritten into a corresponding USER VLAN, that is, an Alter VLAN (modified VLAN, which refers to a VLAN ID in the modified data frame) between the USER VLAN Y and the APN VLAN Y in fig. 4, and then the data frame is forwarded to the USER side, and the forwarded data frame is represented as the APN VLAN Y in fig. 4, so that the binding of the USER VLAN and the APN in a downlink is realized.
Further, the embodiments of the present invention further provide a special VLAN forwarding rule with a high priority, and establish an enabling variable, so as to allocate an APN to a user equipment (which may also be a CPE, MIFI, or the like) without a VLAN.
It should be noted that the NO VLAN (a high-priority special VLAN forwarding rule corresponding to the USER equipment without the VLAN) is the NO VLAN in the USER VLAN-APN VLAN forwarding table in fig. 7; high priority means: when a data packet (or a data frame) is received, relative to other items in a USER VLAN-APN VLAN forwarding table, whether the data packet is an NO VLAN or not must be judged firstly, namely whether a VLAN field exists in the data packet or not is judged firstly, and if not, the VLAN field in the data packet is matched with other VLANs (from a USER VLAN1, a USER VLAN2, a USER VLAN3 to a USER VLAN n in the figure 7); if yes, forwarding according to NO VLAN. Because whether the judgment is NO VLAN is judged firstly, the high priority of the NO VLAN is embodied
The enabling variable is used for opening and closing a user NO VLAN item, namely whether a special VLAN forwarding rule is valid is determined, namely whether an NO VLAN- - -APN VLAN m in the graph 7 is valid is controlled, if the enabling variable is enabled, the equipment can be matched with the NO VLAN item, and if the enabling variable is not enabled, the equipment cannot be matched with the special VLAN forwarding rule. The forwarding table is preset, whether the special VLAN forwarding rule needs to be used or not is determined according to actual needs, and if the special VLAN forwarding rule does not need to be used, the rule can not be enabled or deleted.
The USER equipment can be distinguished by VLAN, VLAN of each USER equipment is different, only one equipment can use NO VLAN, and then special rules can only be applied to one equipment, and the processing process of receiving data frames in the USER VLAN-APN VLAN forwarding table is as follows:
A. uplink link
a) Receiving a data frame sent by user equipment;
b) if no VLAN (without VLAN means that there is no VLAN Tag of 4 bytes in VLAN packet format, i.e. VLAN Tag, in the data frame) first determines that the special rule is enabled (enable can be understood as rule valid, not enable, i.e. rule invalid, and will only take effect when rule exists and is valid): if enabled, the APN VLAN assigned to the configuration is added and then sent upwards to the modem side in fig. 7, and the data frame sent upwards is the APN VLAN X in fig. 7, that is, the process of Put on VLAN (adding VLAN, that is, adding APN VLAN X as a VLAN field to the data frame) in fig. 7, so as to implement uplink communication; if not, the packet is not lost, the forwarding is continued without processing.
B. Downlink link
a) Receiving a data frame sent by a modem, namely the APN VLAN Y in fig. 7;
b) judging whether the VLAN information of the data frame conforms to a special rule: if yes, deleting the VLAN field, continuing to forward the VLAN field downwards to the user side in the figure 7, and finally receiving the VLAN field by the user equipment; if not, the VLAN information is modified according to the low-priority VLAN forwarding rule (the low-priority VLAN forwarding rule is a common item in a USER VLAN-APN forwarding table, such as USER VLAN1, USER VLAN2, USER VLAN3 and USER VLAN n shown in figure 7), and then the VLAN information is continuously forwarded and acquired by the USER equipment of the corresponding VLAN.
In an embodiment shown in fig. 8, an APN assignment method is disclosed, which is described by taking the method as an example applied to the communication device 105 in fig. 1, and includes:
an uplink transmission process:
step S802, extracting terminal identification information of a terminal side data frame, and inquiring a preset forwarding table stored in the communication equipment through the terminal identification information; the preset forwarding table comprises first terminal identification items used for associating terminal equipment and first APN items used for associating APNs;
wherein, the preset forwarding table is a USER MAC-APN VLAN forwarding table as shown in fig. 9; each first terminal identification item (USER MAC1, USER MAC 2, USER MAC 3, through USER MAC n in fig. 9) in the preset forwarding table corresponds to each first APN item (APN VLAN1, APN VLAN2, APN VLAN3, through APN VLAN n in fig. 9) one to one. The terminal identification information is a source MAC field in a terminal side data frame, the first terminal identification item is a numerical value with the same format as the source MAC field, and the first APN item is a numerical value with the same format as the VLAN field.
Specifically, the step of querying the preset forwarding table through the terminal identification information is the same as the step S502 to the step 510, and is not described herein again.
Step S804, when a first terminal identification item matching the terminal identification information exists, confirming the searched record of the terminal identification information, and acquiring a matching APN item; and when the first terminal identification item matching the terminal identification information does not exist, discarding the terminal side data frame.
The matching APN item is a first APN item corresponding to a first terminal identification item which is in a preset forwarding table and matches the terminal identification information;
step S806, add the value of the matching APN item to the terminal-side data frame, and finally upload the terminal-side data frame added with the matching APN item to the communication protocol conversion device 107.
Specifically, the step of adding the value of the matching APN item to the terminal-side data frame is as follows: the value of the matching APN entry is added as a VLAN field to the terminal side data frame.
Downlink transmission process:
step S812, extracting APN identification information of a data frame at a communication protocol conversion side, and inquiring a preset forwarding table through the APN identification information;
the APN identification information is a VLAN field in a data frame of a communication protocol conversion side.
Specifically, the step of querying the preset forwarding table through the APN identification information is the same as the step S702 to the step S710, and is not described herein again.
Step S814, confirming the searched record of the APN identification information when the first APN item matching the APN identification information exists; and when the first APN item matching the APN identification information does not exist, discarding the data frame of the communication protocol conversion side.
Step S816 deletes the APN identification information in the communication protocol conversion side data frame, that is, deletes the VLAN field in the communication protocol conversion side data frame, and issues the communication protocol conversion side data frame with the VLAN field deleted to the terminal device 101, so that the terminal device 101 obtains the associated communication protocol conversion side data frame.
In a specific embodiment, a first APN item matched with the terminal identification information or a first terminal identification item matched with the APN identification information is directly obtained through a preset forwarding table query, instead of temporarily allocating the corresponding first APN item to the terminal identification information or allocating the corresponding first terminal identification item to the APN identification information, so that the data processing efficiency is improved. In addition, the first terminal identification item is a value with the same format as the source MAC field, and the method has the advantages that APN identification information (namely VLAN field) in a data frame of a communication protocol conversion side does not need to be modified in the downlink transmission process, and the APN identification information can be directly deleted, so that the data transmission efficiency is improved. Because the data portion of the data frame further includes the destination MAC field of the associated terminal device 101, the associated terminal device 101 can acquire the corresponding communication protocol conversion side data frame without using the VLAN field.
Based on the above, to further explain the present invention, the specific implementation process of the APN assignment method of the present invention is specifically described by taking the application of USER MAC-APN VLAN forwarding table as an example.
Based on the USER VLAN realizing device applying the APN distribution method, the memory of the USER VLAN realizing device does not store the USER VLAN-APN VLAN forwarding table and the corresponding VLAN forwarding rule in the forwarding table, but reestablishes a USER MAC-APN VLAN forwarding table.
It should be noted that this approach of USER MAC-APN VLAN is suitable for the case where all the MAC addresses of the USER terminals on the network are already known and no new USER terminals are added later. The forwarding table of the USER VLAN-APN VLAN and the forwarding table of the USER MAC-APN VLAN are incompatible, and are two different implementation modes, one is VLAN identification USER terminal (namely terminal equipment), the other is MAC identification USER terminal, and one implementation mode is selected to build a network according to needs.
The forwarding table includes multiple preset forwarding rules, each preset forwarding rule includes two items, namely, USER MAC (such as USER MAC1, USER MAC 2, USER MAC 3 through USER MAC n shown in fig. 9) and APN VLAN (such as APN VLAN1, APN VLAN2, APN VLAN3 through APN VLAN n shown in fig. 9), and the specific processing procedure of the received data is as follows:
uplink transmission:
a) receiving a data frame sent by the ue, i.e. user mac x in fig. 9.
b) Judging whether a source MAC field of the data frame is matched with a preset forwarding rule or not; if yes, marking VLAN appointed by APN on the data frame, and then forwarding the data frame to the modem side in figure 9, wherein the data frame forwarded upwards is represented as APN VLAN X in figure 9, and the binding of the MAC address of the user terminal and the APN VLAN on an uplink is realized.
Downlink transmission:
a) and receiving the data frame sent by the modem, namely the APN VLAN Y in fig. 9.
b) Judging whether the VLAN ID of the data frame is matched with a preset forwarding rule or not; if yes, deleting the VLAN field of the data frame, and then forwarding the data frame to the USER side in the figure 9, wherein the data frame forwarded downwards is represented as USER MAC Y in the figure 9, and the binding of the MAC address of the USER terminal and the APN VLAN in the downlink is realized.
In a specific embodiment, a plurality of network structures are provided to directly allocate service channels (i.e. service bearer channels) of a base station to user terminal equipment, thereby realizing independent bandwidth sharing among multiple users, ensuring that the bandwidths among the users are not influenced mutually, improving the network utilization rate and optimizing the network experience of the users.
It should be understood that, although the individual steps in the flowcharts of fig. 2, 3, 5, 6 and 8 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2, 3, 5, 6, and 8 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be alternated or performed with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 10, an APN assignment device is provided, which includes: a terminal data processing module 1010 and a communication data processing module 1020, wherein:
the terminal data processing module 1010 is configured to, when finding a record of terminal identification information in a terminal-side data frame, edit the terminal-side data frame based on the terminal identification information to obtain and upload a terminal-side data frame matching a corresponding APN;
and a communication data processing module 1020, configured to, when finding the record of the APN identification information in the communication protocol conversion side data frame, edit the communication protocol conversion side data frame based on the APN identification information, obtain and send a communication protocol conversion side data frame matching the corresponding terminal device.
Further, the terminal data processing module 1010 includes:
the terminal identification information extraction module is used for extracting the terminal identification information of the received terminal side data frame;
and the terminal identification information query module is used for querying a preset forwarding table through the terminal identification information and confirming the record of the searched terminal identification information when a first terminal identification item matched with the terminal identification information exists.
Specifically, if the terminal identification information query module cannot search the record of the terminal identification information, the terminal-side data frame corresponding to the terminal identification information is discarded.
The communication data processing module 1020 includes:
an APN identification information extraction module for extracting the APN identification information of the received data frame at the communication protocol conversion side;
and the APN identification information query module is used for querying a preset forwarding table through the APN identification information and confirming the searched record of the APN identification information when a first APN item matching the APN identification information exists.
Specifically, if the APN identification information query module cannot search the record of the APN identification information, the data frame of the communication protocol conversion side corresponding to the APN identification information is discarded.
The terminal identification information query module polls a preset forwarding table through a pointer and searches whether a first terminal identification item matched with the terminal identification information exists or not; and the APN identification information query module polls a preset forwarding table through a pointer and searches whether a first APN item matching the APN identification information exists or not.
Further, the terminal data processing module 1010 further includes:
the terminal data editing module is used for acquiring the matching APN item and modifying the corresponding field of the terminal identification information into the value of the matching APN item when the terminal identification information is a VLAN field; or when the terminal identification information is the source MAC field, adding the value of the matching APN item to the terminal side data frame.
Specifically, when the terminal identification information is a VLAN field, the terminal data editing module modifies the terminal identification information into a value matching an APN entry; or when the terminal identification information is the source MAC field, adding the value of the matching APN item to the terminal side data frame as the VLAN field.
The communication data processing module 1020 further includes:
the communication data editing module is used for acquiring a matched terminal identification item, and modifying a corresponding field of APN identification information into a value of the matched terminal identification item when the matched terminal identification item is a VLAN field; or deleting the APN identification information in the data frame of the communication protocol conversion side when the matched terminal identification item is the source MAC field.
And the APN identification information is a VLAN field.
Specifically, when the acquired matching terminal identification item is a VLAN field, the communication data editing module modifies APN identification information to a value of the matching terminal identification item.
Further, the method also comprises the following steps:
the terminal identification information confirming module is used for confirming whether the terminal identification information exists in the terminal side data frame;
specifically, when the terminal identification information confirmation module confirms that the APN does not exist, the communication data editing module adds the value of the second APN item to the terminal-side data frame and uploads the value. And when the terminal identification information confirmation module confirms that the second APN item does not exist and does not exist, discarding the terminal side data frame.
When the APN identification information query module queries a second APN item which is matched with the APN identification information through the APN identification information, the communication data editing module deletes the APN identification information in a data frame of a communication protocol conversion side.
For specific limitations of the APN assignment device, reference may be made to the above limitations of the APN assignment method, which is not described herein again. The modules in the APN distribution device may be implemented in whole or in part by software, hardware, or a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the communication device, and can also be stored in a memory in the communication device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a communication device is provided, which is connected between a terminal device and a communication protocol conversion device, and is configured to perform the steps of the above-mentioned APN assignment method.
To explain the technical solution of the present invention in detail, taking fig. 11 as an example, a specific process of implementing each embodiment of the above APN assignment method based on the communication device of the present invention is described:
in one embodiment as shown in fig. 11, the USER terminal and the CPE device are terminal devices in fig. 11, the communication device is a bridge, and the bridge stores a USER VLAN-APN VLAN forwarding table, which includes a plurality of USER VLAN-APN VLAN forwarding rules, and it is assumed that the network port name on one side of the bridge is eh0 and the network port name on the other side of the bridge is eth 1.
When eth0 receives the data frame from the USER side, according to the VLAN ID field (i.e. VLAN field) of the data frame, looking up the USER VLAN entries (USER VLAN1, USER VLAN2, USER VLAN3 to USER VLAN n in fig. 4) in the forwarding table one by one, if matching is possible, modifying the VLAN ID field of the data frame to the value of the APN VLAN corresponding to the USER VLAN, and finally sending the modified data frame from eth1 to the modem; if the matching fails, packet loss occurs.
When the eth1 receives a data frame from a modem side, the data frame searches for APN VLAN entries (APNVLAN 1, APN VLAN2, APN VLAN3 to APN VLAN n in FIG. 4) in a forwarding table one by one according to the VLAN ID field of the data frame, if the data frame can be matched with the APN VLAN entry, the VLAN ID field of the data frame is modified into a value of a USER VLAN corresponding to the APN VLAN, and finally the modified data frame is sent to a USER side from the eth 0; if the matching fails, packet loss occurs.
Further, the forwarding scheme for the data frame without the VLAN is as follows:
as shown in fig. 7, on the basis of the USER VLAN-APN VLAN forwarding table, a rule, NO VLAN — APN VLAN m, is added, if the rule is enabled, after eth0 receives the data frame from the USER side, it will first determine whether the data frame has a VLAN, that is, determine whether there is a VLAN field in the data frame, if not, add a VLAN to the data frame, that is, add the value of APN VLAN m as the VLAN id field of the data frame, and then send the VLAN to the modem from eth 1;
when eth1 receives the data frame from the modem side, it will search the APN VLAN entries (APN VLAN1, APN VLAN2, APN VLAN3 to APN VLAN n in FIG. 7) in the forwarding table one by one, if it can match and the APN VLAN corresponds to NOVLAN, then remove VLAN field in the data frame, and then send to the user side from eth 0; and if the matching cannot be carried out, packet loss processing is carried out.
Further, a forwarding relationship between an APN and a user VLAN is assigned to the lte CPE device (CPE device in fig. 11), so that the CPE device can also connect to the internet, thereby communicating with the network management software, receiving management of the network management software, and modifying configuration parameters of the network bridge in real time.
Specifically, the LTE CPE device is assigned a VLAN as a user device (end device). The specific implementation mode is as follows: and a VLAN port is newly established in the LTE CPE equipment, the VLAN ID of the VLAN port is an appointed user VLAN field, and the user VLAN field with a certain forwarding rule in a preset forwarding table is equal to the VLAN ID, so that the forwarding relation of one APN and one user VLAN is distributed to the LTE CPE equipment. VLAN fields in data packets sent to the base station by the LTE CPE are all modified to corresponding APN VLAN values, the APN is divided through the VLAN, and each APN corresponds to one APN VLAN.
In one embodiment, the USER terminal and the CPE device are terminal devices in fig. 11, the communication device is a bridge, and the bridge stores a USER MAC-APN VLAN forwarding table, which includes a plurality of USER MAC-APN VLAN forwarding rules, and it is assumed that a port name on one side of the bridge is eh0 and a port name on one side is eth 1.
When the eth0 receives a data frame from the USER side, USER MAC entries (USER MAC1, USER MAC 2, USER MAC 3 to USER MAC n in fig. 9) in a forwarding table are searched one by one according to the source MAC field of the data frame, if the USER MAC entries can be matched with the source MAC entries, a VLAN is added to the data frame, that is, the value of the APN VLAN corresponding to the USER MAC is added to the data frame as a VLAN id field, and finally, the modified data frame is sent to the modem from the eth 1; and if the matching cannot be carried out, packet loss processing is carried out.
When the eth1 receives the data frame from the modem side, it will search the APN VLAN entries (APN VLAN1, APN VLAN2, APN VLAN3 to APN VLAN n in the forwarding table one by one according to the VLAN ID field of the data frame, if it can be matched, it will remove the VLAN, i.e. delete the VLAN ID field in the data frame, and then send it from eth0 to the user side, the destination MAC field provided by the previous level route in the data frame is not modified, if it cannot be matched, it will process the packet loss.
Further, a forwarding relationship between an APN and a user terminal MAC address is assigned to the LTE CPE device (CPE device in fig. 11), so that the CPE device can also connect to the internet, thereby communicating with the network management software, receiving management of the network management software, and modifying configuration parameters of the network bridge in real time.
Specifically, the LTE CPE device is regarded as a user equipment (terminal device). The specific implementation mode is as follows: the MAC address of the LTE CPE device is obtained, and the USER terminal MAC addresses (USER MAC1, USER MAC 2, USER MAC 3 to USER MAC n in fig. 9) having a certain forwarding rule in the preset forwarding table are equal to the MAC addresses, that is, the forwarding relationship of one APN and one USER terminal MAC address is realized for the LTE CPE device.
In another embodiment, taking fig. 12 as an example, the user terminal is a terminal device in fig. 12, which is different from the two embodiments described above in that the communication device is a CPE device. The communication equipment in the two embodiments is a network bridge, and the network protocol of the network bridge is incomplete, and cannot access the internet, so that the communication equipment cannot be controlled on line, but when the communication equipment is CPE equipment, the CPE equipment can be connected to the internet through a certain forwarding rule occupying a forwarding table, and further establishes a connection with a certain network management process of a server on the internet, that is, can communicate with the network management process, so that the on-line management of the CPE equipment is realized, the on-line update of the forwarding table can also be realized, the maintenance is convenient, and the stability is good.
The CPE device is used as a communication device, which is described in detail below with reference to a specific example.
As shown in fig. 13, the communication device includes an application layer 1310, a VLAN Changer management module 1320, and an LTE multiple APN networking path module 1330; the application layer 1310 is configured to configure a USER VLAN parameter (a first terminal identifier) and a corresponding APN parameter (a first APN item), that is, bind the USER VLAN parameter and the APN parameter; the VLAN Changer management module 1320 is configured to store the bound USER VLAN parameter and APN parameter in a VLAN-APN VLAN forwarding table shown in fig. 14 (equivalent to a USER VLAN-APN VLAN forwarding table, where a USER VLAN1 and a USER VLAN2 to a USER VLAN N on the left side in fig. 14 are equivalent to first terminal identification entries, and an APN VLAN1 and an APN VLAN2 to an APN VLAN N on the right side are equivalent to first APN entries); the LTE multi-APN networking channel module 1330 is configured to perform a networking request based on the USER VLAN parameter and the APN parameter in the VLAN Changer management module.
Further, the CPE device operates in a bridge mode (Relay mode).
It should be noted that the CPE device executes the APN assignment method in the foregoing embodiments based on the application layer 1310, the VLAN Changer management module 1320, and the LTE multiple APN networking path module 1330.
In one embodiment, a communication device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 15. The communication device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the communication device is configured to provide computing and control capabilities. The memory of the communication device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the communication device is used for storing a preset forwarding table. The network interface of the communication device is used for being connected and communicated with external Ethernet building equipment and communication protocol conversion side equipment through a network. The computer program is executed by a processor to implement an APN assignment method.
In one embodiment, a communication device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 16. The communication device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the communication device is configured to provide computing and control capabilities. The memory of the communication device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the communication device is used for being connected and communicated with external Ethernet building equipment and communication protocol conversion side equipment through a network. The computer program is executed by a processor to implement an APN assignment method. The display screen of the communication equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the communication equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the communication equipment, an external keyboard, a touch pad or a mouse and the like.
It will be understood by those skilled in the art that the configurations shown in fig. 15 or fig. 16 are only block diagrams of some configurations relevant to the present application, and do not constitute a limitation on the communication device to which the present application is applied, and a particular communication device may include more or less components than those shown in the drawings, or combine some components, or have a different arrangement of components.
In one embodiment, as shown in fig. 17, an APN distribution system is provided, which includes a core network, a base station, a communication protocol conversion device, a communication device (CPE device in fig. 17), an ethernet building device (switch in fig. 17), and a terminal device (user terminal in fig. 17, and there may be 8 user terminals) connected in sequence. The communication device is configured to execute the APN assignment method in each embodiment.
Specifically, the base station is connected with the CPE device through an LTE air interface protocol; the CPE device is connected to the switch through a LAN (Local Area Network) port. Furthermore, the CPE equipment can comprise one or more LAN ports connected with the switch, and the expansibility is strong.
In the above APN distribution system, a plurality of USER VLAN parameters (VLAN 1, VLAN2, VLAN3 to VLAN8 in fig. 17) and corresponding APN parameters (APN 1, APN2, APN3 to APN8 in fig. 17) are configured through an application layer of the CPE device, and the plurality of USER VLAN parameters and corresponding APN parameters are stored in a VLAN-APN forwarding table VLAN in a VLAN Changer management module.
Configuring relevant parameters of a base station and a core network, specifically, configuring relevant APN information by the core network through configuring a routing or ACL (Access Control List ) rule, determining the service trend of a user (terminal equipment), and leading different terminal user data to different network domains or leading all users to the same network domain; the core network 111 is also able to assign IP addresses to end users (end devices).
In the downlink transmission process, the core network 111 communicates with an external network, and issues data of different network domains corresponding to the APN distribution service bearer channels to the base station through different routes or ACL rules configured by the core network.
In the transmission process of the uplink, different APNs are used for allocating service bearing channels and different routing or ACL rules configured by the core network, and the base station sends the data frames of the terminal side to different network domains through the core network.
It should be noted that the uplink transmission procedure and the downlink transmission procedure between the base station and the terminal device are already described above, and are not described herein again.
Furthermore, the CPE device includes a Subscriber Identity Module (SIM) card, and the SIM card can be normally used after being registered on the core network, so that the CPE device can be normally networked.
Further, the switch comprises a plurality of port ports connected with the terminal devices, wherein the port ports are configured as Trunk lines and allow VLANs (first terminal identification items) matched with APNs (8 first APN items) 1-8 to pass through; the joint port is also configured to ACCESS, and the VLAN of the port is consistent with the VLAN matched with each corresponding APN.
Further, a certain one of the APNs 1-8 (for example, APN1) is enabled on the CPE device to perform a dialing networking request, after the dialing networking is successful, the end user (user terminal in fig. 16) corresponding to the enabled APN is assigned an IP address from the core network, and a terminal-side data frame sent by the end user is forwarded to the base station through a forwarding table and an LTE multi-APN networking channel module in the CPE device, so that the end user accesses the EPC back-end network (core network); the APN which is not enabled cannot carry out networking request and access the EPC back-end network; or starting other APNs one by one to carry out dialing networking requests, and after the dialing networking requests are successful, the terminal users can all distribute IP addresses from the core network; and forwarding a terminal side data frame sent by a terminal user to a base station through a forwarding table and an LTE multi-APN networking channel module in CPE equipment, so that the terminal user can access an EPC back-end network (core network).
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, realizes an APN allocation method.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only show some embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (16)

1. An APN assignment method, comprising:
when the record of the terminal identification information in the terminal side data frame is found in a preset forwarding table, editing the terminal side data frame based on the terminal identification information to obtain and upload a terminal side data frame matched with a corresponding APN;
when the record of the APN identification information in the communication protocol conversion side data frame is found in a preset forwarding table, the communication protocol conversion side data frame is edited based on the APN identification information, and the communication protocol conversion side data frame matched with the corresponding terminal equipment is obtained and issued; the preset forwarding table comprises first terminal identification items used for associating terminal equipment and first APN items used for associating APNs; and each first terminal identification item in the preset forwarding table corresponds to each first APN item one by one, and different terminal identifications correspond to different APNs.
2. The APN assignment method of claim 1 wherein the step of searching for a record of terminal identification information in a terminal-side data frame in a predetermined forwarding table comprises:
extracting the terminal identification information of the received terminal side data frame, and inquiring a preset forwarding table through the terminal identification information; when a first terminal identification item matched with the terminal identification information exists in the preset forwarding table, confirming the record of the found terminal identification information;
the step of searching the record of the APN identification information in the data frame of the communication protocol conversion side in the preset forwarding table comprises the following steps:
extracting the APN identification information of the received data frame of the communication protocol conversion side, and inquiring the preset forwarding table through the APN identification information; and when a first APN item matching the APN identification information exists in the preset forwarding table, confirming the searched record of the APN identification information.
3. The APN allocation method according to claim 2, wherein said terminal identification information is a VLAN field;
the step of editing the terminal-side data frame based on the terminal identification information includes:
acquiring a matching APN item; the matching APN item is the first APN item corresponding to the first terminal identification item which matches the terminal identification information in the preset forwarding table;
modifying the corresponding field of the terminal identification information into the value of the matching APN item;
the step of editing the data frame of the communication protocol conversion side based on the APN identification information comprises the following steps:
acquiring a matching terminal identification item; the matching terminal identification item is the first terminal identification item corresponding to the first APN item which matches the APN identification information in the preset forwarding table;
and modifying the corresponding field of the APN identification information into the value of the matching terminal identification item.
4. The APN allocation method according to claim 3, wherein the preset forwarding table further comprises a second terminal identification item and a second APN item corresponding to the second terminal identification item; the second terminal identification item is used for associating terminal equipment without the terminal identification information in the terminal side data frame;
before the step of searching the record of the terminal identification information, the method further comprises the following steps:
confirming whether the terminal identification information exists in the terminal side data frame;
when the data frame does not exist, adding the value of the second APN item in the terminal side data frame and uploading the value;
the step of editing the data frame of the communication protocol conversion side based on the APN identification information comprises the following steps:
and deleting the APN identification information in the data frame of the communication protocol conversion side when the APN identification information is matched with the second APN item.
5. The APN allocation method according to claim 2, wherein the terminal identification information is a source MAC field;
the step of editing the terminal-side data frame based on the terminal identification information includes:
acquiring a matching APN item; the matching APN item is the first APN item corresponding to the first terminal identification item which matches the terminal identification information in the preset forwarding table;
adding the value of the matching APN item to the terminal side data frame;
the step of editing the data frame of the communication protocol conversion side based on the APN identification information comprises the following steps:
and deleting the APN identification information in the data frame of the communication protocol conversion side.
6. The APN allocation method according to any one of claims 2 to 5, wherein the step of querying a predetermined forwarding table through the terminal identification information comprises:
polling the preset forwarding table through a pointer to find whether a first terminal identification item matched with the terminal identification information exists or not;
the step of inquiring the preset forwarding table through the APN identification information comprises the following steps:
and polling the preset forwarding table through a pointer to find whether a first APN item matching the APN identification information exists.
7. An apparatus for APN assignment, the apparatus comprising:
the terminal data processing module is used for editing the terminal side data frame based on the terminal identification information when the record of the terminal identification information in the terminal side data frame is found in a preset forwarding table, and obtaining and uploading the terminal side data frame matched with the corresponding APN;
the communication data processing module is used for editing the data frame of the communication protocol conversion side based on the APN identification information when the record of the APN identification information in the data frame of the communication protocol conversion side is found in a preset forwarding table, and obtaining and issuing the data frame of the communication protocol conversion side matched with corresponding terminal equipment;
the preset forwarding table comprises first terminal identification items used for associating terminal equipment and first APN items used for associating APNs; and each first terminal identification item in the preset forwarding table corresponds to each first APN item one by one, and different terminal identifications correspond to different APNs.
8. The APN assignment device of claim 7,
the terminal data processing module comprises:
a terminal identification information extraction module, configured to extract the terminal identification information of the received terminal-side data frame;
the terminal identification information query module is used for querying a preset forwarding table through the terminal identification information; when a first terminal identification item matched with the terminal identification information exists in the preset forwarding table, confirming the record of the found terminal identification information; the communication data processing module comprises:
an APN identification information extraction module, configured to extract the APN identification information of the received data frame on the communication protocol conversion side;
and the APN identification information query module is used for querying the preset forwarding table through the APN identification information, and confirming the searched record of the APN identification information when a first APN item matching the APN identification information exists in the preset forwarding table.
9. The APN distribution device of claim 8 wherein the terminal identification information is a VLAN field;
the terminal data processing module further comprises:
the terminal data editing module is used for acquiring a matching APN item and modifying a corresponding field of the terminal identification information into a value of the matching APN item; the matching APN item is the first APN item corresponding to the first terminal identification item which matches the terminal identification information in the preset forwarding table;
the communication data processing module further comprises:
the communication data editing module is used for acquiring a matching terminal identification item and modifying a corresponding field of the APN identification information into a value of the matching terminal identification item; the matching terminal identification item is the first terminal identification item corresponding to the first APN item which matches the APN identification information in the preset forwarding table.
10. The APN assignment device of claim 9 wherein said pre-configured forwarding table further comprises a second terminal identification entry and a second APN entry corresponding to said second terminal identification entry; the second terminal identification item is used for associating terminal equipment without the terminal identification information in the terminal side data frame;
the device further comprises:
the terminal identification confirming module is used for confirming whether the terminal identification information exists in the terminal side data frame; when the data frame does not exist, adding the value of the second APN item in the terminal side data frame and uploading the value;
and the APN identification information query module is further used for deleting the APN identification information in the data frame of the communication protocol conversion side when the APN identification information is matched with the second APN item.
11. The APN distribution device of claim 8 wherein the terminal identification information is a source MAC field;
the terminal data processing module further comprises:
the terminal data editing module is used for acquiring a matching APN item and adding the value of the matching APN item to the terminal side data frame; the matching APN item is the first APN item corresponding to the first terminal identification item which matches the terminal identification information in the preset forwarding table;
and the communication data processing module is used for deleting the APN identification information in the data frame of the communication protocol conversion side when the matched terminal identification item is the source MAC field.
12. The APN distribution device of any of claims 8 to 11, wherein the terminal identification information query module is further configured to poll the preset forwarding table through a pointer to find whether a first terminal identification item matching the terminal identification information exists;
and the APN identification information query module is used for polling the preset forwarding table through a pointer and searching whether a first APN item matching the APN identification information exists or not.
13. A communication device, characterized in that the communication device is connected between a terminal device and a communication protocol conversion device;
the communication device is adapted to perform the steps of the method of any of claims 1 to 6.
14. A communication device according to claim 13, wherein the communication device is a CPE device, an MIFI device or a bridge.
15. An APN distribution system is characterized by comprising a core network, a base station, a communication protocol conversion device, a communication device, an Ethernet construction device and a terminal device which are connected in sequence; wherein the communication device is adapted to perform the steps of the method of any of claims 1 to 6.
16. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN201810979904.1A 2018-08-27 2018-08-27 APN allocation method, device, communication equipment and system Active CN109195200B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810979904.1A CN109195200B (en) 2018-08-27 2018-08-27 APN allocation method, device, communication equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810979904.1A CN109195200B (en) 2018-08-27 2018-08-27 APN allocation method, device, communication equipment and system

Publications (2)

Publication Number Publication Date
CN109195200A CN109195200A (en) 2019-01-11
CN109195200B true CN109195200B (en) 2021-01-15

Family

ID=64916005

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810979904.1A Active CN109195200B (en) 2018-08-27 2018-08-27 APN allocation method, device, communication equipment and system

Country Status (1)

Country Link
CN (1) CN109195200B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1901746A (en) * 2006-07-06 2007-01-24 华为技术有限公司 Method for obtaining user cut-in homing GGSN and net element device
CN101754324A (en) * 2009-12-23 2010-06-23 中兴通讯股份有限公司 Wireless network access method and driving device
CN101860807A (en) * 2010-05-05 2010-10-13 工业和信息化部电信传输研究所 Managing and communication establishing method of M2M terminal device group and device
EP2413621A1 (en) * 2009-03-27 2012-02-01 Sharp Kabushiki Kaisha Mobile communication system
CN102404861A (en) * 2011-06-30 2012-04-04 华为终端有限公司 Method for controlling user to access network and portable WIFI (Wireless Fidelity) hotspot equipment
CN103533666A (en) * 2012-07-02 2014-01-22 中兴通讯股份有限公司 Packet data network connection establishment methods and devices
CN103973569A (en) * 2013-01-28 2014-08-06 华为技术有限公司 Data message forwarding method, customer premises equipment and system
CN107306388A (en) * 2016-04-21 2017-10-31 中兴通讯股份有限公司 A kind of APN APN collocation method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7054945B2 (en) * 2001-04-09 2006-05-30 Nokia Corporation Technique for providing announcements in mobile-originated calls

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1901746A (en) * 2006-07-06 2007-01-24 华为技术有限公司 Method for obtaining user cut-in homing GGSN and net element device
EP2413621A1 (en) * 2009-03-27 2012-02-01 Sharp Kabushiki Kaisha Mobile communication system
CN101754324A (en) * 2009-12-23 2010-06-23 中兴通讯股份有限公司 Wireless network access method and driving device
CN101860807A (en) * 2010-05-05 2010-10-13 工业和信息化部电信传输研究所 Managing and communication establishing method of M2M terminal device group and device
CN102404861A (en) * 2011-06-30 2012-04-04 华为终端有限公司 Method for controlling user to access network and portable WIFI (Wireless Fidelity) hotspot equipment
CN103533666A (en) * 2012-07-02 2014-01-22 中兴通讯股份有限公司 Packet data network connection establishment methods and devices
CN103973569A (en) * 2013-01-28 2014-08-06 华为技术有限公司 Data message forwarding method, customer premises equipment and system
CN107306388A (en) * 2016-04-21 2017-10-31 中兴通讯股份有限公司 A kind of APN APN collocation method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Addition of NB-IoT radio access type;3GPP工作组;《3GPP TSG CT4 Meeting #72bis C4-162128》;20160415;全文 *
专用APN技术的信息化应用研究;周国志;《中国通信学会第六届学术年会论文集(上)》;20091126;全文 *

Also Published As

Publication number Publication date
CN109195200A (en) 2019-01-11

Similar Documents

Publication Publication Date Title
US11516704B2 (en) Information transmission method and apparatus
CN107733670B (en) Forwarding strategy configuration method and device
CN114124618B (en) Message transmission method and electronic equipment
CN106878199B (en) Configuration method and device of access information
CN114205926B (en) Control device and storage medium
US11516639B2 (en) Requesting flexible user-plane services in a service-based architecture
CN110752975B (en) Network sharing method and device
CN109495594B (en) Data transmission method, PNF SDN controller, VNF SDN controller and system
WO2014119715A1 (en) Communication terminal, communication method, program, communication system, and information processing apparatus
CN114024886B (en) Cross-resource-pool network intercommunication method, electronic equipment and readable storage medium
CN104993993A (en) Message processing method, device, and system
CN105874756A (en) Method and device for transmitting control signalling
CN114385314A (en) Internet of things equipment data migration system, method and device and storage medium
EP2466815A1 (en) Method and system for initiating forwarding of communicaiton, information and data message and for routing configuration
CN114125995A (en) Data transmission method and device
CN109195200B (en) APN allocation method, device, communication equipment and system
US11523443B2 (en) Extraction, conversion, and transmission of user packet from encapsulated packet
WO2016074478A1 (en) Method and device for identifying service chain path, and service chain
CN111163463A (en) Method, device, equipment and storage medium for accessing wireless equipment to router
JP5937563B2 (en) Communication base station and control method thereof
CN108934058B (en) Communication method and device
CN113473454A (en) Method for accessing local network and related equipment
JP6976199B2 (en) Information processing server and information processing method
KR101786616B1 (en) Method, apparatus and computer program for subnetting of software defined network
US11601428B2 (en) Cloud delivered access

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200108

Address after: 510663 Shenzhou Road, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangdong, 10

Applicant after: Jingxin Communication System (China) Co., Ltd.

Address before: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant before: Jingxin Communication System (China) Co., Ltd.

Applicant before: Jingxin Communication System (Guangzhou) Co., Ltd.

Applicant before: Jingxin Communication Technology (Guangzhou) Co., Ltd.

Applicant before: TIANJIN COMBA TELECOM SYSTEMS CO., LTD.

GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 510663 Shenzhou Road, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangdong, 10

Patentee after: Jingxin Network System Co.,Ltd.

Address before: 510663 Shenzhou Road, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangdong, 10

Patentee before: Comba Telecom System (China) Ltd.