CN109088955B - Message processing method and device - Google Patents

Message processing method and device Download PDF

Info

Publication number
CN109088955B
CN109088955B CN201810814476.7A CN201810814476A CN109088955B CN 109088955 B CN109088955 B CN 109088955B CN 201810814476 A CN201810814476 A CN 201810814476A CN 109088955 B CN109088955 B CN 109088955B
Authority
CN
China
Prior art keywords
message
address
terminal
processed
protocol
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
CN201810814476.7A
Other languages
Chinese (zh)
Other versions
CN109088955A (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.)
CHENGDU SKSPRUCE TECHNOLOGY Inc
Original Assignee
CHENGDU SKSPRUCE TECHNOLOGY Inc
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 CHENGDU SKSPRUCE TECHNOLOGY Inc filed Critical CHENGDU SKSPRUCE TECHNOLOGY Inc
Priority to CN201810814476.7A priority Critical patent/CN109088955B/en
Publication of CN109088955A publication Critical patent/CN109088955A/en
Application granted granted Critical
Publication of CN109088955B publication Critical patent/CN109088955B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5038Address allocation for local use, e.g. in LAN or USB networks, or in a controller area network [CAN]

Landscapes

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

Abstract

The invention provides a message processing method and a message processing device, which are applied to an AP in an operator network. The method comprises the following steps: receiving a message to be processed from a user terminal, and detecting whether the AP supports centralized distribution of a terminal IP address when the AP is in a local forwarding mode; when the AP currently supports the distribution of the terminal IP address set, judging whether the message to be processed is a terminal IP address acquisition message or not; if the message to be processed is a terminal IP address acquisition message, sending the message to be processed to the AC so that the AC or a server in communication connection with the AC allocates an IP address for the user terminal corresponding to the message to be processed; and if the message to be processed is not the terminal IP address acquisition message or the AP does not support the centralized distribution of the terminal IP address currently, locally forwarding the message to be processed based on the operator network. The method can solve the problem of IP address change during roaming on the basis of providing local service for the user terminal.

Description

Message processing method and device
Technical Field
The invention relates to the technical field of operator networks, in particular to a message processing method and device.
Background
At present, it is necessary to ensure that an IP address of a user terminal before and after roaming does not change in order to implement roaming between a plurality of APs (Access points) deployed in an operator network, and a service provided by the operator network is not interrupted by roaming. In general, a centralized forwarding manner is adopted in an operator network in the industry mainstream, that is, all messages of a user terminal are uploaded to an AC (Access Controller) by an AP deployed in the operator network, all messages are processed by the AC, and an IP address of the user terminal is centrally allocated by the AC, so that the IP address of the user terminal is not changed when the user terminal roams among a plurality of APs. However, in this way, the processing delay of the whole message processing flow is increased and the processing performance is deteriorated due to the too long path, and meanwhile, the network traffic is concentrated on the AC, so that the AP cannot provide the local service to the user terminal.
Disclosure of Invention
In order to overcome the above-mentioned deficiencies in the prior art, the present invention aims to provide a message processing method and apparatus, where the message processing method can allocate a fixed IP address to a user terminal by means of centralized allocation of IP addresses on the basis of providing a local service for local forwarding of messages to the user terminal, thereby solving the problem of IP address change when the user terminal roams in an operator network, improving the message processing performance of the overall message processing flow, and reducing the message processing delay of the message processing flow.
As for a method, an embodiment of the present invention provides a message processing method, where the message processing method is applied to a wireless access point AP deployed in an operator network, and the AP is in communication connection with a wireless controller AC and at least one user terminal, where the method includes:
receiving a message to be processed from the user terminal, and detecting whether the AP supports centralized distribution of a terminal IP address when the AP is in a local forwarding mode;
when the AP currently supports the distribution of the terminal IP address set, judging whether the message to be processed is a terminal IP address acquisition message or not;
if the message to be processed is a terminal IP address acquisition message, sending the message to be processed to the AC so that the AC or a server in communication connection with the AC allocates an IP address for a user terminal corresponding to the message to be processed;
if the message to be processed is not a terminal IP address acquisition message or the AP does not support terminal IP address centralized distribution currently, the message to be processed is locally forwarded based on the operator network so as to realize the service corresponding to the message to be processed.
Optionally, in an embodiment of the present invention, the method further includes:
receiving an IP address feedback message which is from the AC and corresponds to the message to be processed, wherein the IP address feedback message comprises an IP address matched with a user terminal which sends the message to be processed;
and sending the received IP address feedback message to the corresponding user terminal so as to complete IP address allocation of the user terminal.
Optionally, in this embodiment of the present invention, the AP stores an IP allocation flag for indicating a support status of the AP to centralized allocation of terminal IP addresses, and the step of detecting whether the AP currently supports centralized allocation of terminal IP addresses includes:
detecting the setting condition of the IP distribution mark;
when the IP distribution mark is detected to be set, judging that the AP currently supports the centralized distribution of the IP address of the terminal, otherwise, judging that the AP currently does not support the centralized distribution of the IP address of the terminal.
Optionally, in this embodiment of the present invention, a preset message protocol for indicating a terminal IP address acquisition message is recorded in the AP, where the preset message protocol includes a dynamic host configuration protocol DHCP protocol and an address resolution protocol ARP protocol, and the step of determining whether the message to be processed is the terminal IP address acquisition message includes:
performing message protocol identification on the message to be processed to obtain a target message protocol corresponding to the message to be processed;
comparing the target message protocol with the preset message protocol;
and when the protocol identical to the target message protocol exists in the preset message protocol, judging that the message to be processed is a terminal IP address acquisition message, or judging that the message to be processed is not the terminal IP address acquisition message.
Optionally, in an embodiment of the present invention, the method further includes:
and configuring a preset message protocol for expressing a terminal IP address acquisition message.
As for a device, an embodiment of the present invention provides a message processing device, where the message processing device is applied to a wireless access point AP deployed in an operator network, and the AP is in communication connection with a wireless controller AC and at least one user terminal, and the device includes:
the distribution detection module is used for receiving the message to be processed from the user terminal and detecting whether the AP supports the centralized distribution of the IP address of the terminal when the AP is in a local forwarding mode;
the message judging module is used for judging whether the message to be processed is a terminal IP address acquisition message or not when the AP currently supports the distribution of the terminal IP address set;
the message sending module is used for sending the message to be processed to the AC if the message to be processed is a terminal IP address acquisition message so as to enable the AC or a server in communication connection with the AC to allocate an IP address to a user terminal corresponding to the message to be processed;
and the message sending module is further configured to, if the to-be-processed message is not a terminal IP address acquisition message or the AP does not currently support terminal IP address centralized allocation, locally forward the to-be-processed message based on the operator network, so as to implement a service corresponding to the to-be-processed message.
Optionally, in an embodiment of the present invention, the apparatus further includes a feedback receiving module;
the feedback receiving module is used for receiving an IP address feedback message which is from the AC and corresponds to the message to be processed, wherein the IP address feedback message comprises an IP address matched with a user terminal which sends the message to be processed;
the message sending module is further configured to send the received IP address feedback message to the corresponding user terminal, so as to complete IP address allocation for the user terminal.
Optionally, in this embodiment of the present invention, the AP stores an IP allocation flag for indicating a support status of the AP to centralized allocation of terminal IP addresses, and a manner of the allocation detection module detecting whether the allocation detection module supports centralized allocation of terminal IP addresses includes:
detecting the setting condition of the IP distribution mark;
when the IP distribution mark is detected to be set, judging that the AP currently supports the centralized distribution of the IP address of the terminal, otherwise, judging that the AP currently does not support the centralized distribution of the IP address of the terminal.
Optionally, in this embodiment of the present invention, a preset message protocol for indicating a terminal IP address acquisition message is recorded in the AP, where the preset message protocol includes a dynamic host configuration protocol DHCP protocol and an address resolution protocol ARP protocol, and the manner for the message determination module to determine whether the message to be processed is a terminal IP address acquisition message includes:
performing message protocol identification on the message to be processed to obtain a target message protocol corresponding to the message to be processed;
comparing the target message protocol with the preset message protocol;
and when the protocol identical to the target message protocol exists in the preset message protocol, judging that the message to be processed is a terminal IP address acquisition message, or judging that the message to be processed is not the terminal IP address acquisition message.
Optionally, in an embodiment of the present invention, the apparatus further includes:
and the protocol configuration module is used for configuring a preset message protocol for expressing the terminal IP address acquisition message.
Compared with the prior art, the message processing method and the message processing device provided by the embodiment of the invention have the following beneficial effects: the message processing method can distribute the fixed IP address for the user terminal by adopting a mode of distributing the IP address in a centralized way on the basis of providing the local service of message local forwarding for the user terminal, solves the problem of IP address change when the user terminal roams in an operator network, improves the message processing performance of the whole message processing flow and reduces the message processing time delay of the message processing flow. The method is applied to an AP deployed in an operator network, the AP being in communication connection with an AC and at least one user terminal. Firstly, the method receives a message to be processed from the user terminal, and detects whether the AP supports centralized distribution of the IP address of the terminal when the AP is in a local forwarding mode. And then, when the AP currently supports the distribution of the terminal IP address set, the method judges whether the message to be processed is a terminal IP address acquisition message. Then, when the message to be processed is a terminal IP address acquisition message, the method sends the message to be processed to the AC so that the AC or a server in communication connection with the AC allocates an IP address to a user terminal corresponding to the message to be processed, thereby allocating a fixed IP address to the user terminal by adopting a centralized IP address allocation mode on the basis of local forwarding and solving the problem of IP address change when the user terminal roams in an operator network. Finally, when the message to be processed is not a terminal IP address acquisition message or the AP does not support terminal IP address centralized distribution, the method locally forwards the message to be processed based on the operator network to realize the service corresponding to the message to be processed, thereby ensuring that the operator network can normally provide local service, improving the message processing performance of the whole message processing flow and reducing the message processing delay of the message processing flow.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments are briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the claims of the present invention, and it is obvious for those skilled in the art that other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a block diagram of a wireless access point AP according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart of a message processing method according to an embodiment of the present invention.
Fig. 3 is a second flowchart of a message processing method according to an embodiment of the present invention.
Fig. 4 is a third schematic flow chart of the message processing method according to the embodiment of the present invention.
Fig. 5 is a schematic block diagram of a message processing apparatus according to an embodiment of the present invention.
Fig. 6 is a second block diagram of a message processing apparatus according to an embodiment of the present invention.
Fig. 7 is a third block diagram of a message processing apparatus according to an embodiment of the present invention.
Icon: 10-AP; 11-a memory; 12-a processor; 13-a communication unit; 100-a message processing apparatus; 110-an allocation detection module; 120-message judgment module; 130-a message sending module; 140-a feedback receiving module; 150-protocol configuration module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Fig. 1 is a block diagram of a wireless access point AP10 according to an embodiment of the present invention. In the embodiment of the present invention, the AP10 is deployed in an operator network and is used for providing service services to a user terminal. The number of the APs 10 deployed in the operator network is multiple, and multiple APs 10 are communicatively connected to a wireless controller AC located outside the coverage area of the operator network, so as to perform terminal IP address centralized allocation for the user terminal within the coverage area of the operator network through the AC, so that the IP address of the user terminal when roaming among the multiple APs 10 within the coverage area of the operator network does not change. Meanwhile, a plurality of the APs 10 can provide local services for connected user terminals. In this embodiment, the AP10 includes a message processing apparatus 100, a memory 11, a processor 12, and a communication unit 13. The memory 11, the processor 12 and the communication unit 13 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The message processing device 100 includes at least one software functional module capable of being stored in the memory 11 in the form of software or firmware (firmware), and the processor 12 executes various functional applications and data processing by running the corresponding software functional module of the message processing device 100 stored in the memory 11.
In this embodiment, the memory 11 may be configured to store an IP allocation flag, where the IP allocation flag is used to indicate a support status of the AP10 for centralized allocation of IP addresses of terminals. If the IP distribution flag is set, the AP10 currently supports the centralized distribution of the IP addresses of the terminals; if the IP assignment flag is not set, it indicates that the AP10 does not currently support terminal IP address centralized assignment. The value of the corresponding set of the IP allocation flag may be 1 or 0, and different configurations may be performed according to the specific situation.
The memory 11 is further configured to record a preset message Protocol used for indicating a terminal IP Address acquisition message, where the AP10 may determine, through the preset message Protocol, whether the acquired message is the terminal IP Address acquisition message corresponding to the preset message Protocol, where the terminal IP Address acquisition message is used to indicate that a user terminal sending the message needs to acquire an IP Address, and the preset message Protocol includes a DHCP (Dynamic Host Configuration Protocol) Protocol, an ARP (Address Resolution Protocol ), and the like. The memory 11 may be, but is not limited to, a random access memory, a read only memory, a programmable read only memory, an erasable programmable read only memory, an electrically erasable programmable read only memory, and the like. The memory 11 may also be used to store various applications that the processor 12 executes upon receiving execution instructions. Further, the software programs and modules in the memory 11 may also include an operating system, which may include various software components and/or drivers for managing system tasks (e.g., memory management, storage device control, power management, etc.), and may communicate with various hardware or software components to provide an operating environment for other software components.
In this embodiment, the processor 12 may be an integrated circuit chip having signal processing capabilities. The Processor 12 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In this embodiment, the communication unit 13 is configured to establish a communication connection between the AP10 and another external device through a network, and perform data transmission through the network. Wherein the other external devices include an AC and a user terminal.
In this embodiment, the AP10 ensures that the AP10 can allocate a fixed IP address to the user terminal by adopting a centralized IP address allocation method on the basis of providing a local service for local forwarding of a packet to the user terminal through the packet processing device 100 stored in the memory 11, so as to solve the problem of IP address change when the user terminal roams in an operator network, improve the packet processing performance of the overall packet processing flow, and reduce the packet processing delay of the packet processing flow.
It is understood that the configuration shown in fig. 1 is only a schematic configuration of the AP10, and the AP10 may include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
Fig. 2 is a schematic flow chart of a message processing method according to an embodiment of the present invention. In the embodiment of the present invention, the message processing method is applied to an AP10 shown in fig. 1 deployed in an operator network, where the AP10 is in communication connection with an AC and at least one user terminal, and the number of the APs 10 in the operator network is multiple. The following describes the specific flow and steps of the message processing method shown in fig. 2 in detail.
Step S210, receiving the message to be processed from the user terminal, and detecting whether the AP10 supports centralized allocation of the terminal IP address when the AP is in the local forwarding mode.
In this embodiment, the AP10 is deployed in an operator network and is in communication connection with at least one user terminal, and the user terminal obtains an IP address matched with the user terminal by sending a message to the AP10 or implements a local service. When receiving a message to be processed from a user terminal, the AP10 detects whether the AP is in a local forwarding mode or a centralized forwarding mode.
When the AP10 is in the centralized forwarding mode, the AP10 directly sends the to-be-processed packet to an AC communicatively connected to the AP10, and the AC processes the to-be-processed packet, that is, the AC performs centralized allocation on IP addresses of the user terminals, and performs centralized management and control on services of the user terminals.
When the AP10 is in a local forwarding mode, the AP10 detects whether it currently supports centralized allocation of IP addresses of terminals, wherein the AP10 stores therein an IP allocation flag indicating a support status of the AP10 for centralized allocation of IP addresses of terminals, and the step of detecting whether it currently supports centralized allocation of IP addresses of terminals includes:
detecting the setting condition of the IP distribution mark;
when the IP distribution flag is detected to be set, the AP10 is judged to support the centralized distribution of the IP addresses of the terminals currently, otherwise, the AP10 is judged not to support the centralized distribution of the IP addresses of the terminals currently.
Wherein, when the AP10 currently supports allocation in the terminal IP address set, the AP10 will correspondingly execute the step S220; when the AP10 does not currently support allocation in the terminal IP address set, the AP10 will correspondingly perform step S240.
Step S220, judging whether the message to be processed is a terminal IP address acquisition message.
In this embodiment, the terminal IP address acquisition message is used to acquire a corresponding matched IP address, and a preset message protocol used to represent the terminal IP address acquisition message is recorded in the AP10, where the preset message protocol includes a DHCP protocol and an ARP protocol. When the AP10 currently supports the distribution of the terminal IP address set, the AP10 may determine whether the message to be processed is a terminal IP address acquisition message by determining whether the message protocol corresponding to the message to be processed is the same as a preset message protocol.
Optionally, the step of determining whether the message to be processed is a terminal IP address acquisition message includes:
performing message protocol identification on the message to be processed to obtain a target message protocol corresponding to the message to be processed;
comparing the target message protocol with the preset message protocol;
and when the protocol identical to the target message protocol exists in the preset message protocol, judging that the message to be processed is a terminal IP address acquisition message, or judging that the message to be processed is not the terminal IP address acquisition message.
In this embodiment, when a target packet protocol corresponding to the packet to be processed is the same as any one protocol included in the preset packet protocol, it indicates that the packet to be processed is a terminal IP address acquisition packet, and a user terminal that sends the packet to be processed needs to acquire a matched IP address through the packet to be processed; when the target message protocol corresponding to the message to be processed does not exist in all protocols included in the preset message protocol, the preset message protocol indicates that the message to be processed is not a terminal IP address acquisition message but a service data message, and the user terminal sending the message to be processed needs to realize a service function of content matching through the message to be processed. When the AP10 determines that the message to be processed is a terminal IP address acquisition message, the AP10 will execute step S230; when the AP10 determines that the message to be processed is not a terminal IP address acquisition message, the AP10 will execute step S240.
Step S230, sending the to-be-processed packet to the AC, so that the AC or a server communicatively connected to the AC allocates an IP address to the user terminal corresponding to the to-be-processed packet.
In an implementation manner of this embodiment, when the AP10 is in a local forwarding mode and the AP10 determines that the to-be-processed packet is a terminal IP address acquisition packet, the AP10 sends the to-be-processed packet to the AC, so that the AC performs centralized IP address allocation for the ue sending the to-be-processed packet based on the to-be-processed packet, and sends an IP address feedback packet including an IP address matched with the ue to the AP10, so that the AP10 sends the IP address feedback packet to a corresponding ue, thereby implementing IP address allocation to the ue.
In another implementation manner of this embodiment, the AC is communicatively connected to a server for IP address allocation, when the AP10 is in a local forwarding mode and the AP10 determines that the to-be-processed packet is a terminal IP address acquisition packet, the AP10 sends the to-be-processed packet to the AC, and the AC sends the to-be-processed packet to the server, so that the server performs centralized IP address allocation for the user terminal that sends the to-be-processed packet based on the to-be-processed packet, and sends an IP address feedback packet including an IP address matching the user terminal to the AP10 via the AC, so that the AP10 sends the IP address feedback packet to the corresponding user terminal, thereby implementing IP address allocation for the user terminal.
In this embodiment, the step S230 may allocate a fixed IP address to the user terminal by adopting a centralized IP address allocation mode on the basis that the AP10 is in the local forwarding mode, so as to solve the problem of IP address change when the user terminal roams in the operator network.
Step S240, locally forwarding the to-be-processed packet based on the operator network, so as to implement a service corresponding to the to-be-processed packet.
In this embodiment, when the AP10 is in the local forwarding mode and the AP10 does not support centralized allocation of the terminal IP address currently, it indicates that the AP10 needs to forward the to-be-processed packet in a local forwarding manner to implement a local service corresponding to the to-be-processed packet, and at this time, the to-be-processed packet may be a terminal IP address acquisition packet or a service data packet.
When the AP10 is in a local forwarding mode, and the AP10 currently supports centralized allocation of a terminal IP address, but the to-be-processed packet is not a terminal IP address acquisition packet, it indicates that the to-be-processed packet is a service data packet, and the AP10 needs to provide a corresponding local service for the user terminal in a manner of locally forwarding the to-be-processed packet, thereby ensuring that the operator network can normally provide local services, improving the packet processing performance of the overall packet processing flow, and reducing the packet processing delay of the packet processing flow.
Fig. 3 is a second schematic flow chart of the message processing method according to the embodiment of the present invention. In this embodiment of the present invention, the message processing method may further include step S250 and step S260.
And step S250, receiving an IP address feedback message corresponding to the message to be processed from the AC.
In this embodiment, after the AP10 sends the to-be-processed packet determined as the terminal IP address acquisition packet to the AC, the AC or the server in communication with the AC generates a corresponding IP address feedback packet based on the to-be-processed packet, sends the IP address feedback packet to the AP10, and sends the IP address feedback packet to the corresponding matched user terminal through the AP 10. And the IP address feedback message comprises an IP address matched with the user terminal sending the message to be processed.
Step S260, sending the received IP address feedback packet to the corresponding user terminal, so as to complete IP address allocation to the user terminal.
In this embodiment, the IP address feedback packet records the MAC address of the user terminal, and the AP10 may send the IP address feedback packet to the corresponding user terminal according to the MAC address of the user terminal, and the user terminal analyzes the IP address feedback packet to obtain the allocated IP address corresponding to the user terminal.
Fig. 4 is a third schematic flow chart of the message processing method according to the embodiment of the present invention. In this embodiment of the present invention, the message processing method may further include step S209.
Step S209, configure a preset message protocol for indicating the terminal IP address acquisition message.
In this embodiment, the preset message protocol may be configured differently by the operation and maintenance personnel of the AP10 at the AP10 according to requirements, or configured differently by the operation and maintenance personnel of the operator network at the AC or the server communicatively connected to the AC according to requirements, and then the configured preset message protocol is sent to the AP10 for data configuration and work operation.
Fig. 5 is a block diagram of a message processing apparatus 100 according to an embodiment of the present invention. In the embodiment of the present invention, the message processing apparatus 100 is applied to the AP10 shown in fig. 1 deployed in an operator network, and the AP10 is communicatively connected to an AC and at least one user terminal, where the number of the APs 10 in the operator network is plural. In this embodiment, the message processing apparatus 100 includes an allocation detection module 110, a message determination module 120, and a message sending module 130.
The allocation detection module 110 is configured to receive a to-be-processed packet from the user terminal, and detect whether the AP10 supports centralized allocation of a terminal IP address when the AP is in a local forwarding mode.
In this embodiment, the AP10 stores an IP assignment flag indicating a support status of the AP10 for centralized assignment of terminal IP addresses, and the manner of the assignment detection module 110 detecting whether it supports centralized assignment of terminal IP addresses includes:
detecting the setting condition of the IP distribution mark;
when the IP distribution flag is detected to be set, the AP10 is judged to support the centralized distribution of the IP addresses of the terminals currently, otherwise, the AP10 is judged not to support the centralized distribution of the IP addresses of the terminals currently.
The allocation detecting module 110 may execute step S210 shown in fig. 2, and the specific execution process may refer to the above detailed description of step S210.
The message determining module 120 is configured to determine whether the to-be-processed message is a terminal IP address acquisition message when the AP10 currently supports distribution of a terminal IP address set.
In this embodiment, a preset message protocol for indicating that a terminal IP address obtains a message is recorded in the AP10, where the preset message protocol includes a dynamic host configuration protocol DHCP protocol and an address resolution protocol ARP protocol, and the manner for the message determination module 120 to determine whether the message to be processed is a terminal IP address obtaining message includes:
performing message protocol identification on the message to be processed to obtain a target message protocol corresponding to the message to be processed;
comparing the target message protocol with the preset message protocol;
and when the protocol identical to the target message protocol exists in the preset message protocol, judging that the message to be processed is a terminal IP address acquisition message, or judging that the message to be processed is not the terminal IP address acquisition message.
The message determining module 120 may execute step S220 shown in fig. 2, and the specific execution process may refer to the above detailed description of step S220.
The message sending module 130 is configured to send the to-be-processed message to the AC if the to-be-processed message is a terminal IP address acquisition message, so that the AC or a server communicatively connected to the AC allocates an IP address to a user terminal corresponding to the to-be-processed message.
The message sending module 130 is further configured to, if the to-be-processed message is not a terminal IP address acquisition message or the AP10 does not currently support terminal IP address centralized allocation, locally forward the to-be-processed message based on the operator network, so as to implement a service corresponding to the to-be-processed message.
In this embodiment, the message sending module 130 may execute step S230 or step S240 shown in fig. 2, and the specific execution process may refer to the above detailed description of step S230 and step S240.
Fig. 6 is a second schematic block diagram of the message processing apparatus 100 according to the embodiment of the present invention. In this embodiment of the present invention, the message processing apparatus 100 may further include a feedback receiving module 140.
The feedback receiving module 140 is configured to receive an IP address feedback packet from the AC and corresponding to the to-be-processed packet, where the IP address feedback packet includes an IP address matched with a user terminal that sends the to-be-processed packet.
In this embodiment, the feedback receiving module 140 may execute step S250 shown in fig. 3, and the specific execution process may refer to the above detailed description of step S250.
The message sending module 130 is further configured to send the received IP address feedback message to the corresponding user terminal, so as to complete IP address allocation for the user terminal.
In this embodiment, the message sending module 130 may further execute step S260 shown in fig. 3, and the specific execution process may refer to the above detailed description of step S260.
Fig. 7 is a third block diagram of the message processing apparatus 100 according to the embodiment of the present invention. In this embodiment of the present invention, the message processing apparatus 100 may further include a protocol configuration module 150.
The protocol configuration module 150 is configured to configure a preset message protocol for indicating a terminal IP address acquisition message.
In this embodiment, the protocol configuration module 150 may execute step S209 shown in fig. 4, and the specific execution process may refer to the above detailed description of step S209.
In summary, in the message processing method and the message processing apparatus provided in the embodiments of the present invention, the message processing method can allocate a fixed IP address to the user terminal by adopting a centralized IP address allocation manner on the basis of providing a local service for local forwarding of a message to the user terminal, so as to solve the problem of IP address change when the user terminal roams in an operator network, improve the message processing performance of the overall message processing flow, and reduce the message processing delay of the message processing flow. The method is applied to an AP deployed in an operator network, the AP being in communication connection with an AC and at least one user terminal. Firstly, the method receives a message to be processed from the user terminal, and detects whether the AP supports centralized distribution of the IP address of the terminal when the AP is in a local forwarding mode. And then, when the AP currently supports the distribution of the terminal IP address set, the method judges whether the message to be processed is a terminal IP address acquisition message. Then, when the message to be processed is a terminal IP address acquisition message, the method sends the message to be processed to the AC so that the AC or a server in communication connection with the AC allocates an IP address to a user terminal corresponding to the message to be processed, thereby allocating a fixed IP address to the user terminal by adopting a centralized IP address allocation mode on the basis of local forwarding and solving the problem of IP address change when the user terminal roams in an operator network. Finally, when the message to be processed is not a terminal IP address acquisition message or the AP does not support terminal IP address centralized distribution, the method locally forwards the message to be processed based on the operator network to realize the service corresponding to the message to be processed, thereby ensuring that the operator network can normally provide local service, improving the message processing performance of the whole message processing flow and reducing the message processing delay of the message processing flow.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A message processing method is applied to a wireless Access Point (AP) deployed in an operator network, the AP is in communication connection with a wireless controller (AC) and at least one user terminal, an IP allocation mark used for expressing the support condition of the AP on terminal IP address centralized allocation is stored in the AP, and the method comprises the following steps:
receiving a message to be processed from the user terminal, and detecting whether the AP supports centralized distribution of a terminal IP address when the AP is in a local forwarding mode;
when the AP currently supports the distribution of the terminal IP address set, judging whether the message to be processed is a terminal IP address acquisition message or not;
if the message to be processed is a terminal IP address acquisition message, sending the message to be processed to the AC so that the AC or a server in communication connection with the AC allocates an IP address for a user terminal corresponding to the message to be processed;
if the message to be processed is not a terminal IP address acquisition message or the AP does not support terminal IP address centralized distribution currently, locally forwarding the message to be processed based on the operator network so as to realize a service corresponding to the message to be processed;
wherein, the step of detecting whether the self supports the centralized distribution of the terminal IP address currently comprises the following steps:
detecting the setting condition of the IP distribution mark;
when the IP distribution mark is detected to be set, judging that the AP currently supports the centralized distribution of the IP address of the terminal, otherwise, judging that the AP currently does not support the centralized distribution of the IP address of the terminal.
2. The method of claim 1, further comprising:
receiving an IP address feedback message which is from the AC and corresponds to the message to be processed, wherein the IP address feedback message comprises an IP address matched with a user terminal which sends the message to be processed;
and sending the received IP address feedback message to the corresponding user terminal so as to complete IP address allocation of the user terminal.
3. The method according to claim 1 or 2, wherein a preset message protocol for indicating a terminal IP address acquisition message is recorded in the AP, wherein the preset message protocol includes a dynamic host configuration protocol DHCP protocol and an address resolution protocol ARP protocol, and the step of determining whether the message to be processed is the terminal IP address acquisition message includes:
performing message protocol identification on the message to be processed to obtain a target message protocol corresponding to the message to be processed;
comparing the target message protocol with the preset message protocol;
and when the protocol identical to the target message protocol exists in the preset message protocol, judging that the message to be processed is a terminal IP address acquisition message, or judging that the message to be processed is not the terminal IP address acquisition message.
4. The method of claim 3, further comprising:
and configuring a preset message protocol for expressing a terminal IP address acquisition message.
5. A packet processing apparatus, applied to a wireless access point AP deployed in an operator network, the AP being in communication connection with a wireless controller AC and at least one user terminal, and an IP assignment flag indicating a support status of centralized assignment of terminal IP addresses by the AP being stored in the AP, the apparatus comprising:
the distribution detection module is used for receiving the message to be processed from the user terminal and detecting whether the AP supports the centralized distribution of the IP address of the terminal when the AP is in a local forwarding mode;
the message judging module is used for judging whether the message to be processed is a terminal IP address acquisition message or not when the AP currently supports the distribution of the terminal IP address set;
the message sending module is used for sending the message to be processed to the AC if the message to be processed is a terminal IP address acquisition message so as to enable the AC or a server in communication connection with the AC to allocate an IP address to a user terminal corresponding to the message to be processed;
the message sending module is further configured to, if the to-be-processed message is not a terminal IP address acquisition message or the AP does not currently support terminal IP address centralized allocation, locally forward the to-be-processed message based on the operator network to implement a service corresponding to the to-be-processed message;
the method for detecting whether the distribution detection module supports centralized distribution of the IP address of the terminal at present comprises the following steps:
detecting the setting condition of the IP distribution mark;
when the IP distribution mark is detected to be set, judging that the AP currently supports the centralized distribution of the IP address of the terminal, otherwise, judging that the AP currently does not support the centralized distribution of the IP address of the terminal.
6. The apparatus of claim 5, further comprising a feedback receiving module;
the feedback receiving module is used for receiving an IP address feedback message which is from the AC and corresponds to the message to be processed, wherein the IP address feedback message comprises an IP address matched with a user terminal which sends the message to be processed;
the message sending module is further configured to send the received IP address feedback message to the corresponding user terminal, so as to complete IP address allocation for the user terminal.
7. The apparatus according to claim 5 or 6, wherein a preset message protocol for indicating a terminal IP address acquisition message is recorded in the AP, wherein the preset message protocol includes a dynamic host configuration protocol DHCP protocol and an address resolution protocol ARP protocol, and the manner for the message determination module to determine whether the message to be processed is a terminal IP address acquisition message includes:
performing message protocol identification on the message to be processed to obtain a target message protocol corresponding to the message to be processed;
comparing the target message protocol with the preset message protocol;
and when the protocol identical to the target message protocol exists in the preset message protocol, judging that the message to be processed is a terminal IP address acquisition message, or judging that the message to be processed is not the terminal IP address acquisition message.
8. The apparatus of claim 7, further comprising:
and the protocol configuration module is used for configuring a preset message protocol for expressing the terminal IP address acquisition message.
CN201810814476.7A 2018-07-23 2018-07-23 Message processing method and device Active CN109088955B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810814476.7A CN109088955B (en) 2018-07-23 2018-07-23 Message processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810814476.7A CN109088955B (en) 2018-07-23 2018-07-23 Message processing method and device

Publications (2)

Publication Number Publication Date
CN109088955A CN109088955A (en) 2018-12-25
CN109088955B true CN109088955B (en) 2021-07-09

Family

ID=64838095

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810814476.7A Active CN109088955B (en) 2018-07-23 2018-07-23 Message processing method and device

Country Status (1)

Country Link
CN (1) CN109088955B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113473576B (en) * 2020-03-31 2023-04-07 深圳市万普拉斯科技有限公司 Roaming networking processing method and device, mobile terminal and readable storage medium
CN115086946B (en) * 2022-05-23 2024-04-16 阿里巴巴(中国)有限公司 Communication method, system, wireless access device and access controller
CN115767155A (en) * 2022-09-07 2023-03-07 成都西加云杉科技有限公司 Network communication method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101778425A (en) * 2010-03-10 2010-07-14 北京傲天动联技术有限公司 Method for dynamically balancing broadband access server load in wireless local area network
CN102281594A (en) * 2011-09-06 2011-12-14 华为技术有限公司 Message forwarding method, wireless access point (AP) and message forwarding system
CN102316447A (en) * 2011-09-14 2012-01-11 福建星网锐捷网络有限公司 Internet protocol (IP) address allocation and sending method, wireless access device, server and system
CN103491005A (en) * 2013-09-06 2014-01-01 福建星网锐捷网络有限公司 Method for controlling transmission of message, access point device and relevant system
CN105992395A (en) * 2015-01-30 2016-10-05 杭州华三通信技术有限公司 Method and device for realizing ultrathin access point
CN107295514A (en) * 2016-04-12 2017-10-24 中兴通讯股份有限公司 A kind of data forwarding method, WAP and communication system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120300710A1 (en) * 2011-05-27 2012-11-29 Nokia Siemens Networks Oy Distributing L2 Baseband Processing in a Radio Network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101778425A (en) * 2010-03-10 2010-07-14 北京傲天动联技术有限公司 Method for dynamically balancing broadband access server load in wireless local area network
CN102281594A (en) * 2011-09-06 2011-12-14 华为技术有限公司 Message forwarding method, wireless access point (AP) and message forwarding system
CN102316447A (en) * 2011-09-14 2012-01-11 福建星网锐捷网络有限公司 Internet protocol (IP) address allocation and sending method, wireless access device, server and system
CN103491005A (en) * 2013-09-06 2014-01-01 福建星网锐捷网络有限公司 Method for controlling transmission of message, access point device and relevant system
CN105992395A (en) * 2015-01-30 2016-10-05 杭州华三通信技术有限公司 Method and device for realizing ultrathin access point
CN107295514A (en) * 2016-04-12 2017-10-24 中兴通讯股份有限公司 A kind of data forwarding method, WAP and communication system

Also Published As

Publication number Publication date
CN109088955A (en) 2018-12-25

Similar Documents

Publication Publication Date Title
CN108307002B (en) DHCP message processing method and device
CN109088955B (en) Message processing method and device
CN108777722B (en) Multi-system networking communication method and device, mobile terminal and storage medium
US10979285B2 (en) Service transmission method, device, and system
US9100303B2 (en) Methods, devices, and systems for allocating IP address
US20080028071A1 (en) Communication load reducing method and computer system
CN107249048B (en) Air conditioning system and address allocation method and device thereof
KR100689734B1 (en) method and apparatus for allocating address in wireless network
CN113473576B (en) Roaming networking processing method and device, mobile terminal and readable storage medium
US20150113168A1 (en) Network Bridging
CN109196889B (en) User information acquisition method, identification corresponding relation storage method, device and equipment
CN108429824B (en) Address allocation method and device
CN108667957B (en) IP address allocation method, first electronic device and first server
CN104869621A (en) Method and device for network awareness
CN109698845B (en) Data transmission method, server, unloading card and storage medium
CN111669309B (en) VxLAN establishing method, wireless controller and switch
CN113885794A (en) Data access method and device based on multi-cloud storage, computer equipment and medium
CN114585026A (en) Frequency point switching method, terminal, base station and storage medium
TW201406103A (en) Server and service mode setting method
US11265798B2 (en) Method and radio communication system for an industrial automation system
CN108259636B (en) Message processing method and device
CN107172229B (en) Router configuration method and device
US20160182691A1 (en) System and Method for Operating Dual-Stack Devices
CN113992685B (en) Service controller determining method, system and device
CN110611589B (en) Control method and device of regional control system and air conditioning system

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
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Message processing method and device

Effective date of registration: 20220728

Granted publication date: 20210709

Pledgee: Agricultural Bank of China Limited by Share Ltd. Chengdu Wenjiang branch

Pledgor: CHENGDU SKSPRUCE TECHNOLOGY, Inc.

Registration number: Y2022980011424

PE01 Entry into force of the registration of the contract for pledge of patent right