CN107231341B - Message processing method and device - Google Patents

Message processing method and device Download PDF

Info

Publication number
CN107231341B
CN107231341B CN201611228947.3A CN201611228947A CN107231341B CN 107231341 B CN107231341 B CN 107231341B CN 201611228947 A CN201611228947 A CN 201611228947A CN 107231341 B CN107231341 B CN 107231341B
Authority
CN
China
Prior art keywords
network message
address
wired network
message
wireless
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
CN201611228947.3A
Other languages
Chinese (zh)
Other versions
CN107231341A (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.)
Shenzhen Tg Net Botone Technology Co ltd
Original Assignee
Shenzhen Tg Net Botone Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tg Net Botone Technology Co ltd filed Critical Shenzhen Tg Net Botone Technology Co ltd
Priority to CN201611228947.3A priority Critical patent/CN107231341B/en
Publication of CN107231341A publication Critical patent/CN107231341A/en
Application granted granted Critical
Publication of CN107231341B publication Critical patent/CN107231341B/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
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks

Landscapes

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

Abstract

The invention relates to a message processing method and a device, wherein the method comprises the following steps: acquiring a wired network message; if the wired network message comprises the user mark, acquiring the user mark contained in the wired network message; when the user mark indicates that the user mark is a user mark corresponding to a wireless user terminal accessed to the local, converting the wired network message into a wireless network message; sending the wireless network message to the wireless user terminal which is accessed to the local and corresponds to the user mark; and if the wired network message does not include the user mark, broadcasting the wireless network message converted from the wired network message according to a preset broadcasting rate threshold value. The scheme provided by the application avoids the problem that the network message requested by the wireless user terminal accessed to the local cannot be transmitted because a large amount of network messages not requested by the user occupy transmission resources.

Description

Message processing method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for processing a packet.
Background
In a local area network environment, a wired network message sent by a wired network message sending server needs to be forwarded through a wireless Access Point (Access Point AP), that is, the wired network message is distributed after being converted into a wireless network message. With the development of computer technology and local area network technology, more and more network messages are forwarded through the wireless access point. After the network messages pass through the wireless access point, the network messages are all transmitted to the wireless air interface, and after part of the network messages are copied and forwarded by the multi-stage switch, the network messages are transmitted to the wireless air interface in multiple levels, so that a large number of network messages exist in the wireless air interface, wireless air interface broadband resources are occupied, and wireless users cannot access the wireless network.
Disclosure of Invention
Therefore, it is necessary to provide a message processing method and apparatus for solving the problem that a wireless user cannot access a wireless network due to the fact that a large number of network messages exist in a wireless air interface and wireless air interface broadband resources are occupied.
A method of message processing, the method comprising:
acquiring a wired network message;
if the wired network message comprises the user mark, acquiring the user mark contained in the wired network message;
when the user mark indicates that the user mark is a user mark corresponding to a wireless user terminal accessed to the local, converting the wired network message into a wireless network message;
sending the wireless network message to the wireless user terminal which is accessed to the local and corresponds to the user mark;
and if the wired network message does not include the user mark, broadcasting the wireless network message converted from the wired network message according to a preset broadcasting rate threshold value.
In one embodiment, after the obtaining the wired network message, the method further includes:
extracting a physical address included in the wired network message;
if the physical address indicates that the wired network message is a unicast message, inquiring an address table stored in the local;
when the physical address exists in the address table, converting the wired network message into a wireless network message and then sending the wireless network message to a wireless user terminal corresponding to the physical address;
discarding the wired network packet when the physical address does not exist in the address table;
if the physical address indicates that the wired network message is a non-unicast message, executing the step of acquiring the user mark included in the wired network message if the wired network message includes the user mark.
In one embodiment, before the extracting the physical address included in the wired network packet, the method further includes:
acquiring a physical address and an internet protocol address corresponding to a wireless user terminal accessed to the local;
if the acquired physical address exists in a local address table, updating an internet protocol address corresponding to the acquired physical address into the acquired internet protocol address in the address table;
if the acquired physical address does not exist in a local address table, writing the acquired physical address and an internet protocol address into the address table;
the step of sending the wireless network message to the wireless user terminal which is accessed to the local and corresponds to the user mark comprises the following steps:
determining a physical address and/or an internet protocol address in the address table pointed to by the user mark;
and sending the wireless network message to the wireless user terminal corresponding to the determined physical address and/or internet protocol address.
In an embodiment, if the wired network packet includes the user tag, the step of obtaining the user tag included in the wired network packet includes:
detecting whether the wired network message comprises a preset user mark keyword or not;
when the wired network message comprises a preset user mark keyword, extracting an address field corresponding to the preset user mark keyword;
detecting whether an address included in the address field exists in an address table stored locally;
when the address included in the address field exists in a local address table, the step of sending the wireless network packet to the wireless user terminal corresponding to the user tag includes:
and sending the wireless network message to a wireless user terminal corresponding to the address included in the address field.
In an embodiment, the step of converting the wired network packet into a wireless network packet and broadcasting according to a preset broadcasting rate threshold includes:
acquiring a preset broadcast rate threshold;
if the receiving rate of the wired network message which does not include the user mark is less than or equal to a preset broadcasting rate threshold value, converting the wired network message into a wireless network message and then broadcasting the wireless network message;
if the receiving rate of the wired network message not including the user mark is greater than the preset broadcast rate threshold value, the wired network message not including the user mark is received at the preset broadcast rate threshold value
And discarding a part of received wired network messages which do not include the user marks, converting the rest part of wired network messages into wireless network messages, and broadcasting, so that the broadcasting rate of the wireless network messages is less than or equal to a preset broadcasting rate threshold value.
A message processing apparatus, the apparatus comprising:
the message acquisition module is used for acquiring a wired network message;
a message processing module, configured to obtain a user tag included in the wired network message if the wired network message includes the user tag; when the user mark indicates that the user mark is a user mark corresponding to a wireless user terminal accessed to the local, converting the wired network message into a wireless network message; sending the wireless network message to the wireless user terminal which is accessed to the local and corresponds to the user mark; and if the wired network message does not include the user mark, broadcasting the wireless network message converted from the wired network message according to a preset broadcasting rate threshold value.
In one embodiment, the message processing module is further configured to extract a physical address included in the wired network message; if the physical address indicates that the wired network message is a unicast message, inquiring an address table stored in the local; when the physical address exists in the address table, converting the wired network message into a wireless network message and then sending the wireless network message to a wireless user terminal corresponding to the physical address; discarding the wired network packet when the physical address does not exist in the address table; if the physical address indicates that the wired network message is a non-unicast message, executing the step of acquiring the user mark included in the wired network message if the wired network message includes the user mark.
In one embodiment, the apparatus further comprises:
the address updating module is used for acquiring a physical address and an internet protocol address corresponding to a wireless user terminal accessed to the local; if the acquired physical address exists in a local address table, updating an internet protocol address corresponding to the acquired physical address into the acquired internet protocol address in the address table; if the acquired physical address does not exist in a local address table, writing the acquired physical address and an internet protocol address into the address table;
the message processing module is further configured to determine a physical address and/or an internet protocol address in the address table to which the user tag points; and sending the wireless network message to the wireless user terminal corresponding to the determined physical address and/or internet protocol address.
In one embodiment, the message processing module is further configured to detect whether the wired network message includes a preset user tagging keyword; when the wired network message comprises a preset user mark keyword, extracting an address field corresponding to the preset user mark keyword; detecting whether an address included in the address field exists in an address table stored locally; and when the address included in the address field exists in a local address table, sending the wireless network message to a wireless user terminal corresponding to the address included in the address field.
In one embodiment, the message processing module is further configured to obtain a preset broadcast rate threshold; if the receiving rate of the wired network message which does not include the user mark is less than or equal to a preset broadcasting rate threshold value, converting the wired network message into a wireless network message and then broadcasting the wireless network message; if the receiving rate of the wired network message not including the user mark is larger than the preset broadcasting rate threshold value, discarding the received part of the wired network message not including the user mark, converting the rest part of the wired network message into a wireless network message, and then broadcasting, so that the broadcasting rate of the wireless network message is smaller than or equal to the preset broadcasting rate threshold value.
According to the message processing method and device, after the wired network message is obtained, whether the wired network message has the user mark or not is detected, if the wired network message has the user mark and the user mark corresponds to the wireless user terminal accessed to the local, the wired network message is represented as the network message requested by the wireless user terminal accessed to the local, the wired network message including the user mark is converted into the wireless network message and then is sent to the wireless user terminal corresponding to the user mark, and the network message requested by the wireless user terminal accessed to the local can be transmitted to the corresponding wireless user terminal, so that the wireless user terminal is accessed to the wireless network. When the user mark does not exist in the wired network message, the wired network message is represented as a network message not requested by the user, and the wireless network message converted from the wired network message not having the user mark is broadcasted according to a preset broadcast rate threshold value, so that the problem that the network message not requested by the user occupies a large amount of transmission resources, and the network message requested by the wireless user terminal accessed to the local cannot be transmitted is solved.
Drawings
FIG. 1 is a diagram of an application environment of a message processing method in one embodiment;
fig. 2 is a schematic internal structure diagram of a wireless access point device for implementing a message processing method in an embodiment;
FIG. 3 is a flow diagram illustrating a method for message processing according to an embodiment;
FIG. 4 is a flowchart illustrating steps of obtaining a subscriber identity included in a cable network message if the cable network message includes the subscriber identity in one embodiment;
fig. 5 is a flowchart illustrating a step of broadcasting a wireless network packet converted from a cable network packet according to a preset broadcast rate threshold if a user tag is not included in the cable network packet in an embodiment;
FIG. 6 is a flow chart illustrating a message processing method according to another embodiment;
FIG. 7 is a flowchart illustrating the steps of address table update in one embodiment;
FIG. 8 is a logic diagram of a message processing method in one embodiment;
FIG. 9 is a block diagram of a message processing apparatus according to an embodiment;
fig. 10 is a block diagram showing a structure of a message processing apparatus according to another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention 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 invention and are not intended to limit the invention.
Fig. 1 is an application environment diagram of a message processing method in an embodiment. Referring to fig. 1, the message processing method is applied to a message processing system. The message processing system comprises a wireless user terminal 110, a wireless access point device 120, a wireless control device 130 and a server 140, wherein the wireless user terminal 110 is in wireless communication with the wireless access point device 120 through a wireless network, and the wireless access point device 120 is in communication with the wireless controller 130 and the server 140 through a wired network. The wireless user terminal 110 may be a mobile terminal, and the mobile terminal may be at least one of a mobile phone, a tablet computer, a notebook computer, and the like. The Wireless Access Point device (Wireless Access Point AP)120 is a Wireless switching device in a Wireless network. A Wireless Access Point Controller AC (Wireless Access Point Controller AC)130 is a network device for centrally managing the APs. The server 140 may be a separate physical server or a cluster of physical servers.
Fig. 2 is a schematic diagram of an internal structure of a wireless access point device in one embodiment. As shown in fig. 2, the apparatus includes a processor, a non-volatile storage medium, an internal memory, and a network interface connected through a system bus. The nonvolatile storage medium of the terminal stores an operating system. The device includes a processor for providing computing and control capabilities, supporting the operation of the entire device. The internal memory of the device may store computer readable instructions that, when executed by the processor, cause the processor to perform a message processing method. The network interface is used for performing network communication with the server, such as receiving a wired network message sent by the server. Those skilled in the art will appreciate that the configuration shown in fig. 2 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation on the terminal to which the present application is applied, and that a particular terminal may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
As shown in fig. 3, in an embodiment, a message processing method is provided, and this embodiment is illustrated by applying the method to the wireless access point device 120 in fig. 1. The method specifically comprises the following steps:
s302, obtaining the wired network message.
The wired network message refers to a network message transmitted by a server through a wired transmission medium. Such as a DHCP (Dynamic Host Configuration Protocol) message or an ARP (address resolution Protocol) message.
Specifically, the wireless user terminal can access the wireless access point device, when the wireless user terminal needs to access a wireless network and performs data interaction with the server, the wireless user terminal can transmit a request to the server through the wireless access point device, send a request message to the wireless access point device, and the wireless access point device sends the received request message to the server for response. The server generates a wired network message including response content after responding according to the request message, sends the generated wired network message to the wireless access point equipment, and processes and forwards the message through the wireless access point equipment.
In an embodiment, the server may also actively initiate data interaction with the wireless user terminal, and send the wired network packet to the wireless access point device, and the wireless access point device obtains the wired network packet sent by the server, and then processes and forwards the network packet.
S304, if the wired network message includes the user mark, the user mark included in the wired network message is obtained.
The user mark means that the message is marked with the message sending target information. The user mark can be in the header part of the cable network message or can be included in the text content of the cable network message.
In one embodiment, the wired network message received by the wireless access point device is a wired network message which is generated by the server according to the response of the request message reported by the wireless user terminal and includes the response content, and when the server generates the wired network message, the message sending target is determined, and the user marking can be performed on the message header part, so that the wireless access point device can determine the message sending target according to the message header part of the wired network message.
In one embodiment, the wired network message received by the wireless access point device is a wired network message initiated by the server for data interaction with the wireless user terminal. When the server does not store the corresponding information of the transmission target of the wired network message, the server cannot mark the message header part of the wired network message by the user. When the server generates the wired network message according to the data required to be transmitted, the data comprises the information of the message sending target, in this case, the text part of the generated wired network message can comprise the user mark, and the wireless access point equipment can obtain the user mark by analyzing the wired network message.
Specifically, after receiving the wired network packet sent by the server, the wireless access point device may first query a packet header portion of the wired network packet, detect whether the packet header portion includes a user tag, and if the packet header portion includes the user tag, identify the user tag. If the header part of the message does not include the user mark, the wireless access point equipment can analyze the text content of the wired network message and search whether the user mark is included in the analysis result. If the analysis result includes the user tag, the user tag is obtained, and if the analysis result does not include the user tag, it indicates that the wired network message is a message that is not required by the user, and step S310 is executed.
S306, when the user mark indicates that the user mark is the user mark corresponding to the wireless user terminal accessed to the local, the wired network message is converted into the wireless network message.
The wireless network message refers to a network message transmitted between wireless network devices through a wireless air interface. In this embodiment, the wireless access point device may store address information of a wireless user terminal accessing the wireless access point device in advance. The Address information of the wireless user terminal includes a physical Address (Media Access Control MAC Address) and an Internet Protocol Address (Internet Protocol Address IP Address).
Specifically, the wireless access point device may compare the obtained user identifier with locally stored address information of the local wireless user terminal, and when the user identifier obtained by the wireless access point device is the same as the locally stored address information, determine that the wired network packet transmission target is the local wireless user terminal. The wireless access point device can modify the message header part of the wired network message and modify the protocol identification representing the wired network message into the protocol identification representing the wireless network message.
When the user mark acquired by the wireless access point equipment is different from the locally stored address information, the wired network message is judged not to be accessed to the local wireless user terminal, and the wired network message is discarded.
S308, the wireless network message is sent to the wireless user terminal which is corresponding to the user mark and is accessed to the local.
Specifically, the wireless access point device may determine, according to the user identifier, a corresponding local wireless user terminal that receives the wireless network packet, and send the wireless network packet to the wireless user terminal in a wireless manner through a wireless air interface.
And S310, if the wired network message does not include the user mark, broadcasting the wireless network message converted from the wired network message according to a preset broadcasting rate threshold value.
The preset broadcast rate threshold refers to a preset maximum value of a rate for broadcasting the message. Specifically, the number of messages broadcasted in each time period may be, for example, ten wireless network messages broadcasted per second.
Specifically, when the wireless access point device determines that the wired network packet does not include the user identifier, it represents that the wired network packet does not explicitly receive the target, and is not the packet requested by the wireless user terminal. The wireless access point equipment can broadcast the wireless network message converted from the wired network message according to a preset broadcast rate threshold value.
In one embodiment, after receiving a wired network message that does not include a user tag, the wireless access point device may convert the received wired network message into a wireless network message, add a corresponding number of the converted wireless network messages into a broadcast queue according to a preset broadcast rate threshold, and sequentially broadcast the wireless network messages in the broadcast queue one by one through a wireless air interface.
According to the message processing method, after the wired network message is obtained, whether the wired network message has the user mark or not is detected, if the wired network message has the user mark and the user mark corresponds to the wireless user terminal accessed to the local, the wired network message is represented as the network message requested by the wireless user terminal accessed to the local, the wired network message including the user mark is converted into the wireless network message and then is sent to the wireless user terminal corresponding to the user mark, and the network message requested by the wireless user terminal accessed to the local can be transmitted to the corresponding wireless user terminal, so that the wireless user terminal is accessed to the wireless network. When the user mark does not exist in the wired network message, the wired network message is represented as a network message not requested by the user, and the wireless network message converted from the wired network message not having the user mark is broadcasted according to a preset broadcast rate threshold value, so that the problem that the network message not requested by the user occupies a large amount of transmission resources, and the network message requested by the wireless user terminal accessed to the local cannot be transmitted is solved.
As shown in fig. 4, in an embodiment, the step S304 specifically includes the following steps:
s402, detecting whether the wired network message includes a preset user mark keyword.
The preset user mark keyword is a preset character string used for marking a user mark in a message. Such as Target IP included in an APR (Address Resolution Protocol) request message or TargetMAC included in a DHCP (Dynamic Host Configuration Protocol) message.
Specifically, after receiving the wired network packet, the wireless access point device may compare a header portion of the wired network packet, which includes a character string, with a preset user tagging keyword. If the message header portion of the wired network message has a character string consistent with the preset user mark keyword, it is determined that the wired network message includes the preset user mark keyword, and step S404 is executed.
If the message header part of the wired network message does not have the character string consistent with the preset user mark key word, the wireless access point equipment can analyze the wired network message and check whether the character string consistent with the preset user mark key word exists in the analysis result. If the parsing result of the wired network packet includes a character string consistent with the preset user tagged keyword, it is determined that the wired network packet includes the preset user tagged keyword, and step S404 is executed. If the parsing result of the wired network packet does not have a character string consistent with the preset user tagged keyword, it is determined that the wired network packet does not include the preset user tagged keyword, and step S310 is executed.
S404, when the wired network message comprises the preset user mark key word, extracting the address field corresponding to the preset user mark key word.
Specifically, the wireless access point device may extract an address field corresponding to a character string when the character string consistent with a preset user mark keyword exists in the wired network packet. The Address corresponding to the Address field may be a physical Address (MediaAccess Control MAC Address) and/or an Internet Protocol Address (Internet Protocol Address IP Address).
S406, it is detected whether the address included in the address field exists in the address table stored locally.
The address table refers to a list stored in the wireless access point device for recording address data of the wireless user terminal accessing the wireless access point device. Specifically, the wireless access point device may traverse the addresses included in the locally stored address table, compare the traversed addresses with the addresses included in the extracted address field during the traversal, and determine that the addresses included in the extracted address field exist in the locally stored address table if the traversed addresses coincide with the addresses included in the extracted address field. If the traversed address is inconsistent with the address included in the extracted address field, it is determined that the address included in the extracted address field does not exist in the locally stored address table.
And S408, when the address included in the address field exists in the address table stored in the local, sending the wireless network message to the wireless user terminal corresponding to the address included in the address field.
In this embodiment, whether the wired network packet includes the user tag is determined based on the preset user tag keyword, when it is determined that the wired network packet includes the user tag, an address included in an address field corresponding to the preset user tag keyword is compared with a local address table, so as to determine whether the wired network packet is a packet requested by a local wireless user terminal, and the packet is transmitted when it is determined that the packet is requested by the local wireless user terminal, thereby ensuring that the network packet requested by the wireless user terminal accessed to the local can be transmitted to the corresponding wireless user terminal in time.
As shown in fig. 5, in an embodiment, the step S310 specifically includes the following steps:
s502, acquiring a preset broadcast rate threshold.
In one embodiment, the preset broadcast rate threshold is set by an administrator through a wireless control device (wireless access Point Controller AC) and is issued to a wireless access Point device connected to the wireless network device.
S504, if the receiving rate of the wired network message not including the user mark is less than or equal to the preset broadcasting rate threshold value, the wired network message is converted into a wireless network message and then is broadcasted.
Specifically, the wireless access point device may detect a receiving rate when receiving a wired network packet not including a user tag, determine that a forwarding rate of the wired network packet not including the user tag by the wireless access point device does not reach saturation when the detected receiving rate is less than or equal to a preset broadcast rate threshold, and directly convert the wired network packet into a wireless network packet and broadcast the wireless network packet without suppressing the wired network packet not including the user tag.
S506, if the receiving rate of the wired network message not including the user mark is larger than the preset broadcasting rate threshold, discarding the received part of the wired network message not including the user mark, converting the rest part of the wired network message into a wireless network message, and then broadcasting, so that the broadcasting rate of the wireless network message is smaller than or equal to the preset broadcasting rate threshold.
Specifically, when the detected receiving rate is greater than a preset broadcast rate threshold value, the wireless access point device determines that the forwarding rate of the wired network messages not including the user marks by the wireless access point device has reached saturation, performs broadcast rate suppression on the wired network messages not including the user marks, converts the corresponding number of wired network messages into wireless network messages according to the preset broadcast rate threshold value, performs broadcast, and discards the number of wired network messages exceeding the number of wired network messages.
In this embodiment, based on the preset broadcast rate threshold, when the receiving rate of the cable network packet not including the user tag is less than or equal to the preset broadcast rate threshold, the cable network packet not including the user tag is not forwarded and suppressed, so that all the packets can be broadcast. And when the receiving rate of the wired network message not including the user mark is greater than the preset broadcast rate threshold, the wired network message not including the user mark is forwarded and restrained according to the preset broadcast rate threshold, so that the problem that the network message not requested by the user occupies a large amount of transmission resources, and the network message requested by the wireless user terminal accessed to the local cannot be transmitted is solved.
As shown in fig. 6, in an embodiment, a method for processing a message is provided, which specifically includes the following steps:
s602, obtaining the wired network message.
S604, extracting the physical address included in the wired network message.
In this embodiment, the physical address refers to a MAC address (Media Access Control), which is used to indicate an identifier of each station on the internet, and is represented by a hexadecimal number, and has 48 bits in total. Such as: 00-23-5A-15-99-42. The wireless access point equipment can search in the wired network message according to the fixed format of the physical address, and extract after finding the field which accords with the fixed format of the physical address.
S606, if the physical address indicates that the wired network message is a unicast message, inquiring an address table stored in the local.
The unicast message refers to a message for data transmission in point-to-point communication. IEEE 802.3 specifies: the 48 th bit of the ethernet is used to indicate whether this address is a multicast address or a unicast address. If the bit is 0, it indicates that the MAC address is a unicast address, and if the bit is 1, it indicates that the MAC address is a non-unicast address.
Specifically, the wireless access point device may detect whether the 48 th bit of the extracted physical address is 0, and if the 48 th bit of the extracted physical address is 0, query the address table stored locally. The address table records the physical address of the wireless user terminal accessing to the local.
And S608, when the physical address exists in the address table, converting the wired network message into a wireless network message and then sending the wireless network message to the wireless user terminal corresponding to the physical address.
Specifically, when the physical address exists in the address table, it is indicated that the destination of sending the wired network message is a wireless user terminal accessed to the local, and the wired network message is converted into a wireless network message and then sent.
S610, when the physical address does not exist in the address table, the wired network message is discarded.
Specifically, when the physical address does not exist in the address table, it indicates that the destination of sending the wired network packet is not the wireless user terminal accessing to the local, and the wired network packet is directly discarded.
S612, if the physical address indicates that the cable network message is a non-unicast message and the cable network message includes the user mark, acquiring the user mark included in the cable network message.
In this embodiment, the non-unicast message includes a multicast message and a broadcast message. The multicast message and the broadcast message are used for data transmission in one-to-many communication. The broadcast message is a special case of the multicast message, the MAC address of the broadcast message represents all addresses, and is represented by full F: FF-FF-FF-FF-FF.
And S614, converting the wired network message into a wireless network message when the user mark indicates that the user mark is a user mark corresponding to the wireless user terminal accessed to the local.
S616, the wireless network message is sent to the wireless user terminal which is corresponding to the user mark and is accessed to the local.
And S618, if the physical address indicates that the wired network message is a non-unicast message and the wired network message does not include the user mark, broadcasting the wireless network message converted from the wired network message according to a preset broadcast rate threshold value.
In this embodiment, the wired network packet is classified by the physical address included in the wired network packet, and for the unicast packet, since the packet is sent to one destination, if the physical address indicates that the wireless user terminal is accessed locally, the unicast packet is forwarded, and if the physical address indicates that the wireless user terminal is not accessed locally, the wired network packet is directly discarded. For the non-unicast message, because the message sending targets are multiple, the broadcast rate is inhibited if the message sending target cannot be determined, so that the non-unicast message can be broadcast to a certain extent without losing useful messages, and the problem that the network message requested by the wireless user terminal accessed to the local cannot be transmitted because the non-unicast message which does not include the user mark occupies a large amount of transmission resources is avoided.
As shown in fig. 7, in an embodiment, before step S604 in the message processing method, the method further includes a step of updating an address table, and specifically includes the following steps:
s702, acquiring a physical address and an Internet protocol address corresponding to the wireless user terminal accessed to the local.
S704, if the obtained physical address exists in the local address table, updating the internet protocol address corresponding to the obtained physical address in the address table to the obtained internet protocol address.
Generally, a physical address corresponding to a wireless user terminal is changed without will, but an internet protocol address may be changed, and therefore, an address table stored locally needs to be updated to ensure validity of the address stored in the address table stored locally.
S706, if the obtained physical address does not exist in the local address table, writing the obtained physical address and the internet protocol address into the address table.
In this embodiment, step S616 includes: determining a physical address and/or an internet protocol address in an address table pointed to by a user mark; and sending the wireless network message to the wireless user terminal corresponding to the determined physical address and/or internet protocol address.
Specifically, the addresses to which the user tags included in different types of non-unicast packets point are different. For example, the Target IP included in the APR (Address Resolution Protocol) request message points to the internet Protocol Address in the Address table, and the Target MAC included in the DHCP (Dynamic Host Configuration Protocol) message points to the physical Address in the Address table.
In the embodiment, an update policy for the locally stored address table is provided, so that the validity of the address stored in the locally stored address table is ensured.
Fig. 8 is a logic diagram illustrating a message processing method according to an embodiment. Referring to fig. 8, after acquiring the wired network packet, the wireless access point device extracts a physical address in the wired network packet, and determines a packet type according to the physical address. And when the extracted physical address indicates that the wired network message is a unicast message, determining whether the unicast message is a message requested by a wireless user terminal accessed to the local through the address table stored in the local. If the unicast message is a message requested by a local wireless user terminal, converting the unicast message into a wireless network message which can be transmitted through a wireless air interface and then forwarding the wireless network message to the wireless user terminal; if the unicast message is not the message requested by the wireless user terminal accessed to the local, the message is directly discarded.
And when the extracted physical address indicates that the wired network message is a non-unicast message, checking whether the non-unicast message comprises a user mark. And if the non-unicast message comprises the user mark, determining whether the non-unicast message is a message requested by a wireless user terminal accessed to the local through a local address table. If the non-unicast message is a message requested by a local wireless user terminal, converting the unicast message into a wireless network message which can be transmitted through a wireless air interface and then forwarding the wireless network message to the wireless user terminal; if the non-unicast message is not the message requested by the wireless user terminal accessed to the local, the message is directly discarded. If the non-unicast message does not include the user mark, performing broadcast rate suppression processing on the non-unicast message, and broadcasting the wireless network message converted from the non-unicast message through a wireless air interface according to a preset broadcast rate threshold.
As shown in fig. 9, in an embodiment, there is provided a message processing apparatus, including: a message acquisition module 901 and a message processing module 902.
A message obtaining module 901, configured to obtain a wired network message.
A message processing module 902, configured to, if the wired network message includes the user tag, obtain the user tag included in the wired network message; when the user mark indicates that the user mark is a user mark corresponding to a wireless user terminal accessed to the local, converting the wired network message into a wireless network message; sending the wireless network message to a wireless user terminal which is correspondingly accessed to the local and marked by the user; and if the wired network message does not include the user mark, broadcasting the wireless network message converted from the wired network message according to a preset broadcasting rate threshold value.
The message processing device detects whether a user mark exists in the wired network message after acquiring the wired network message, if the user mark exists and is a user mark corresponding to a wireless user terminal accessed to the local, the user mark is represented as a network message requested by the wireless user terminal accessed to the local, the wired network message including the user mark is converted into a wireless network message and then is sent to the wireless user terminal corresponding to the user mark, and the network message requested by the wireless user terminal accessed to the local can be transmitted to the corresponding wireless user terminal, so that the wireless user terminal is accessed to a wireless network. When the user mark does not exist in the wired network message, the wired network message is represented as a network message not requested by the user, and the wireless network message converted from the wired network message not having the user mark is broadcasted according to a preset broadcast rate threshold value, so that the problem that the network message not requested by the user occupies a large amount of transmission resources, and the network message requested by the wireless user terminal accessed to the local cannot be transmitted is solved.
In one embodiment, the message processing module 902 is further configured to extract a physical address included in the wired network message; if the physical address indicates that the wired network message is a unicast message, inquiring an address table stored in the local; when the physical address exists in the address table, converting the wired network message into a wireless network message and then sending the wireless network message to the wireless user terminal corresponding to the physical address; when the physical address does not exist in the address table, discarding the wired network message; if the physical address indicates that the wired network message is a non-unicast message, executing a step of acquiring a user mark included in the wired network message if the wired network message includes the user mark.
In this embodiment, the wired network packet is classified by the physical address included in the wired network packet, and for the unicast packet, since the packet is sent to one destination, if the physical address indicates that the wireless user terminal is accessed locally, the unicast packet is forwarded, and if the physical address indicates that the wireless user terminal is not accessed locally, the wired network packet is directly discarded. For the non-unicast message, because the message sending targets are multiple, the broadcast rate is inhibited if the message sending target cannot be determined, so that the non-unicast message can be broadcast to a certain extent without losing useful messages, and the problem that the network message requested by the wireless user terminal accessed to the local cannot be transmitted because the non-unicast message which does not include the user mark occupies a large amount of transmission resources is avoided.
In one embodiment, the message processing module 902 is further configured to detect whether the wired network message includes a preset user tagging keyword; when the wired network message comprises a preset user mark keyword, extracting an address field corresponding to the preset user mark keyword; detecting whether an address included in the address field exists in an address table stored locally; and when the address included in the address field exists in the address table stored in the local, sending the wireless network message to the wireless user terminal corresponding to the address included in the address field.
In this embodiment, whether the wired network packet includes the user tag is determined based on the preset user tag keyword, when it is determined that the wired network packet includes the user tag, an address included in an address field corresponding to the preset user tag keyword is compared with a local address table, so as to determine whether the wired network packet is a packet requested by a local wireless user terminal, and the packet is transmitted when it is determined that the packet is requested by the local wireless user terminal, thereby ensuring that the network packet requested by the wireless user terminal accessed to the local can be transmitted to the corresponding wireless user terminal in time.
In one embodiment, the message processing module 902 is further configured to obtain a preset broadcast rate threshold; if the receiving rate of the wired network message not including the user mark is less than or equal to a preset broadcasting rate threshold value, converting the wired network message into a wireless network message and then broadcasting; if the receiving rate of the wired network message not including the user mark is larger than the preset broadcasting rate threshold value, discarding the received part of the wired network message not including the user mark, converting the rest part of the wired network message into a wireless network message, and then broadcasting, so that the broadcasting rate of the wireless network message is smaller than or equal to the preset broadcasting rate threshold value.
In this embodiment, based on the preset broadcast rate threshold, when the receiving rate of the cable network packet not including the user tag is less than or equal to the preset broadcast rate threshold, the cable network packet not including the user tag is not forwarded and suppressed, so that all the packets can be broadcast. And when the receiving rate of the wired network message not including the user mark is greater than the preset broadcast rate threshold, the wired network message not including the user mark is forwarded and restrained according to the preset broadcast rate threshold, so that the problem that the network message not requested by the user occupies a large amount of transmission resources, and the network message requested by the wireless user terminal accessed to the local cannot be transmitted is solved.
As shown in fig. 10, in an embodiment, there is provided a message processing apparatus including: a message acquisition module 1001, an address update module 1002 and a message processing module 1003.
The message obtaining module 1001 is configured to obtain a wired network message.
An address update module 1002, configured to obtain a physical address and an internet protocol address corresponding to a wireless user terminal accessing a local area; if the acquired physical address exists in the address table stored locally, updating the internet protocol address corresponding to the acquired physical address into the acquired internet protocol address in the address table; and if the acquired physical address does not exist in the locally stored address table, writing the acquired physical address and the Internet protocol address into the address table.
A message processing module 1003, configured to, if the wired network message includes the user tag, obtain the user tag included in the wired network message; when the user mark indicates that the user mark is a user mark corresponding to a wireless user terminal accessed to the local, converting the wired network message into a wireless network message; determining a physical address and/or an internet protocol address in an address table pointed to by a user mark; sending the wireless network message to a wireless user terminal corresponding to the determined physical address and/or internet protocol address; and if the wired network message does not include the user mark, broadcasting the wireless network message converted from the wired network message according to a preset broadcasting rate threshold value.
In the embodiment, an update policy for the locally stored address table is provided, so that the validity of the address stored in the locally stored address table is ensured.
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 a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like.
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-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present 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 (12)

1. A method of message processing, the method comprising:
acquiring a wired network message including response content sent by a server;
extracting a physical address included in the wired network message;
if the physical address indicates that the wired network message is a unicast message, inquiring an address table stored in the local;
when the physical address exists in the address table, converting the wired network message into a wireless network message and then sending the wireless network message to a wireless user terminal corresponding to the physical address;
discarding the wired network packet when the physical address does not exist in the address table;
if the physical address indicates that the wired network message is a non-unicast message, and if the wired network message comprises a user mark, acquiring the user mark contained in the wired network message; the physical address is different from the user tag;
when the user mark indicates that the user mark is a user mark corresponding to a wireless user terminal accessed to the local, converting the wired network message into a wireless network message;
determining an internet protocol address in an address table pointed to by the user mark; sending the wireless network message to a wireless user terminal corresponding to the determined internet protocol address;
and if the wired network message does not include the user mark, broadcasting the wireless network message converted from the wired network message according to a preset broadcasting rate threshold value.
2. The method of claim 1, wherein the physical address is a MAC address.
3. The method of claim 1, wherein prior to extracting the physical address included in the wired network message, the method further comprises:
acquiring a physical address and an internet protocol address corresponding to a wireless user terminal accessed to the local;
if the acquired physical address exists in a local address table, updating an internet protocol address corresponding to the acquired physical address into the acquired internet protocol address in the address table;
if the acquired physical address does not exist in a local address table, writing the acquired physical address and an internet protocol address into the address table;
the step of sending the wireless network message to the wireless user terminal which is accessed to the local and corresponds to the user mark comprises the following steps:
determining a physical address and/or an internet protocol address in the address table pointed to by the user mark;
and sending the wireless network message to the wireless user terminal corresponding to the determined physical address and/or internet protocol address.
4. The method according to claim 1, wherein the step of obtaining the user tag included in the cable network message if the cable network message includes the user tag comprises:
detecting whether the wired network message comprises a preset user mark keyword or not;
when the wired network message comprises a preset user mark keyword, extracting an address field corresponding to the preset user mark keyword;
detecting whether an address included in the address field exists in an address table stored locally;
when the address included in the address field exists in a local address table, the step of sending the wireless network packet to the wireless user terminal corresponding to the user tag includes:
and sending the wireless network message to a wireless user terminal corresponding to the address included in the address field.
5. The method of claim 1, wherein the step of converting the wired network packet into a wireless network packet and broadcasting according to a preset broadcast rate threshold comprises:
acquiring a preset broadcast rate threshold;
if the receiving rate of the wired network message which does not include the user mark is less than or equal to a preset broadcasting rate threshold value, converting the wired network message into a wireless network message and then broadcasting the wireless network message;
if the receiving rate of the wired network message not including the user mark is greater than the preset broadcast rate threshold value, the wired network message not including the user mark is received at the preset broadcast rate threshold value
And discarding a part of received wired network messages which do not include the user marks, converting the rest part of wired network messages into wireless network messages, and broadcasting, so that the broadcasting rate of the wireless network messages is less than or equal to a preset broadcasting rate threshold value.
6. A message processing apparatus, the apparatus comprising:
the message acquisition module is used for acquiring the wired network message which is sent by the server and comprises the response content;
the message processing module is used for extracting a physical address included in the wired network message; if the physical address indicates that the wired network message is a unicast message, inquiring an address table stored in the local; when the physical address exists in the address table, converting the wired network message into a wireless network message and then sending the wireless network message to a wireless user terminal corresponding to the physical address; discarding the wired network packet when the physical address does not exist in the address table; if the physical address indicates that the wired network message is a non-unicast message, and if the wired network message comprises a user mark, acquiring the user mark contained in the wired network message; when the user mark indicates that the user mark is a user mark corresponding to a wireless user terminal accessed to the local, converting the wired network message into a wireless network message; determining an internet protocol address in an address table pointed to by the user mark; sending the wireless network message to a wireless user terminal corresponding to the determined internet protocol address; if the wired network message does not include the user mark, broadcasting the wireless network message converted from the wired network message according to a preset broadcasting rate threshold value; the physical address is different from the user tag.
7. The apparatus of claim 6, wherein the physical address is a MAC address.
8. The apparatus of claim 6, further comprising:
the address updating module is used for acquiring a physical address and an internet protocol address corresponding to a wireless user terminal accessed to the local; if the acquired physical address exists in a local address table, updating an internet protocol address corresponding to the acquired physical address into the acquired internet protocol address in the address table; if the acquired physical address does not exist in a local address table, writing the acquired physical address and an internet protocol address into the address table;
the message processing module is further configured to determine a physical address and/or an internet protocol address in the address table to which the user tag points; and sending the wireless network message to the wireless user terminal corresponding to the determined physical address and/or internet protocol address.
9. The apparatus of claim 6, wherein the message processing module is further configured to detect whether a predetermined user tagged keyword is included in the cable network message; when the wired network message comprises a preset user mark keyword, extracting an address field corresponding to the preset user mark keyword; detecting whether an address included in the address field exists in an address table stored locally; and when the address included in the address field exists in a local address table, sending the wireless network message to a wireless user terminal corresponding to the address included in the address field.
10. The apparatus of claim 6, wherein the message processing module is further configured to obtain a preset broadcast rate threshold; if the receiving rate of the wired network message which does not include the user mark is less than or equal to a preset broadcasting rate threshold value, converting the wired network message into a wireless network message and then broadcasting the wireless network message; if the receiving rate of the wired network message not including the user mark is larger than the preset broadcasting rate threshold value, discarding the received part of the wired network message not including the user mark, converting the rest part of the wired network message into a wireless network message, and then broadcasting, so that the broadcasting rate of the wireless network message is smaller than or equal to the preset broadcasting rate threshold value.
11. A wireless access point device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method of any one of claims 1 to 5.
12. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 5.
CN201611228947.3A 2016-12-27 2016-12-27 Message processing method and device Active CN107231341B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611228947.3A CN107231341B (en) 2016-12-27 2016-12-27 Message processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611228947.3A CN107231341B (en) 2016-12-27 2016-12-27 Message processing method and device

Publications (2)

Publication Number Publication Date
CN107231341A CN107231341A (en) 2017-10-03
CN107231341B true CN107231341B (en) 2020-09-15

Family

ID=59932175

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611228947.3A Active CN107231341B (en) 2016-12-27 2016-12-27 Message processing method and device

Country Status (1)

Country Link
CN (1) CN107231341B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109041275B (en) * 2018-06-28 2022-02-11 新华三技术有限公司 Data transmission method and device and wireless access point

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1933460A (en) * 2006-09-30 2007-03-21 中兴通讯股份有限公司 Equipment, system and realizing method for wireless local network transmission group broadcasting frame
CN101141493A (en) * 2007-10-11 2008-03-12 杭州华三通信技术有限公司 Address analysis method and access point of wireless LAN
CN101150521A (en) * 2007-11-05 2008-03-26 北京航空航天大学 Congestion control method for multi-to-multi reliable multicast
WO2008072667A1 (en) * 2006-12-13 2008-06-19 Nec Corporation Telecommunication network, network node device, and routing method
CN102088417A (en) * 2011-03-18 2011-06-08 华为技术有限公司 Method and apparatus for achieving IP (Internet Protocol) message loopback
TW201143487A (en) * 2010-05-25 2011-12-01 Cybertan Technology Inc Wireless network multicasting system
CN105323724A (en) * 2015-06-03 2016-02-10 成都西加云杉科技有限公司 Setting method and device for sending speed in multicast/broadcast technology
CN105450652A (en) * 2015-12-03 2016-03-30 迈普通信技术股份有限公司 Authentication method, device and system
CN106209641A (en) * 2016-06-24 2016-12-07 迈普通信技术股份有限公司 A kind of method, system and device of Message processing

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7412507B2 (en) * 2002-06-04 2008-08-12 Lucent Technologies Inc. Efficient cascaded lookups at a network node
US7505447B2 (en) * 2004-11-05 2009-03-17 Ruckus Wireless, Inc. Systems and methods for improved data throughput in communications networks
CN103024851A (en) * 2012-11-23 2013-04-03 福建星网锐捷网络有限公司 Wireless-network based message transmission method, device and network equipment
CN103079229B (en) * 2012-12-28 2015-07-15 上海寰创通信科技股份有限公司 Directional broadcast transmission method for access controller

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1933460A (en) * 2006-09-30 2007-03-21 中兴通讯股份有限公司 Equipment, system and realizing method for wireless local network transmission group broadcasting frame
WO2008072667A1 (en) * 2006-12-13 2008-06-19 Nec Corporation Telecommunication network, network node device, and routing method
CN101141493A (en) * 2007-10-11 2008-03-12 杭州华三通信技术有限公司 Address analysis method and access point of wireless LAN
CN101150521A (en) * 2007-11-05 2008-03-26 北京航空航天大学 Congestion control method for multi-to-multi reliable multicast
TW201143487A (en) * 2010-05-25 2011-12-01 Cybertan Technology Inc Wireless network multicasting system
CN102088417A (en) * 2011-03-18 2011-06-08 华为技术有限公司 Method and apparatus for achieving IP (Internet Protocol) message loopback
CN105323724A (en) * 2015-06-03 2016-02-10 成都西加云杉科技有限公司 Setting method and device for sending speed in multicast/broadcast technology
CN105450652A (en) * 2015-12-03 2016-03-30 迈普通信技术股份有限公司 Authentication method, device and system
CN106209641A (en) * 2016-06-24 2016-12-07 迈普通信技术股份有限公司 A kind of method, system and device of Message processing

Also Published As

Publication number Publication date
CN107231341A (en) 2017-10-03

Similar Documents

Publication Publication Date Title
CN106412142B (en) Resource equipment address obtaining method and device
CN108259347B (en) Message transmission method and device
US10530735B2 (en) Pro-active mechanism to detect LISP movable silent host
CN105144652A (en) Address resolution in software-defined networks
CN110493366B (en) Method and device for adding access point into network management
CN107770072B (en) Method and equipment for sending and receiving message
CN106921578B (en) Method and device for generating forwarding table item
US8472420B2 (en) Gateway device
CN102333039B (en) Method for forwarding message, and method and device for generating table entry
CN102035738B (en) Method and device for acquiring routing information
CN109981819B (en) mDNS message processing method, device and networking system
US10270607B2 (en) Method and system for roamed client device handling
CN111049947B (en) Message forwarding method and device, electronic equipment and storage medium
CN106850869B (en) IP address configuration method and network equipment
CN107070719B (en) Equipment management method and device
KR102219270B1 (en) Method for processing traffic based on sdn
CN107231341B (en) Message processing method and device
CN108989173B (en) Message transmission method and device
CN110958124B (en) Multicast group management method, device, readable storage medium and computer
CN116566897A (en) Addressing routing method, device, equipment and medium
CN103841083B (en) Strengthen the method and device of message recognition capability
US20140372575A1 (en) Information processing apparatus and recording medium
JP2009071423A (en) Network adapter
CN105450527B (en) The method and device for handling message, sending information, receiving information
CN111614791B (en) Access device for entity link analysis and method thereof

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