CN107231341A - Message processing method and device - Google Patents

Message processing method and device Download PDF

Info

Publication number
CN107231341A
CN107231341A CN201611228947.3A CN201611228947A CN107231341A CN 107231341 A CN107231341 A CN 107231341A CN 201611228947 A CN201611228947 A CN 201611228947A CN 107231341 A CN107231341 A CN 107231341A
Authority
CN
China
Prior art keywords
network message
user
address
mark
cable network
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.)
Granted
Application number
CN201611228947.3A
Other languages
Chinese (zh)
Other versions
CN107231341B (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.)
Science And Technology Ltd Of Botong Is Netted By Shenzhen Ten Thousand
Original Assignee
Science And Technology Ltd Of Botong Is Netted By Shenzhen Ten Thousand
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 Science And Technology Ltd Of Botong Is Netted By Shenzhen Ten Thousand filed Critical Science And Technology Ltd Of Botong Is Netted By Shenzhen Ten Thousand
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

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 present invention relates to a kind of message processing method and device, this method includes:Obtain cable network message;If the cable network message includes user's mark, the user's mark that the cable network message includes is obtained;When the user's mark represents the user's mark to access the corresponding user's mark of local wireless user terminal, the cable network message is converted into wireless network message;The wireless network message is sent to the local wireless user terminal of the corresponding access of the user's mark;If not including user's mark in the cable network message, according to default broadcast rate threshold value, the wireless network message being converted into by the cable network message is broadcasted.The network message that the scheme that the application is provided avoids non-user request largely ties up transfer resource, causes the problem of network message for accessing local wireless user terminal request can not be transmitted.

Description

Message processing method and device
Technical field
The present invention relates to field of computer technology, more particularly to a kind of message processing method and device.
Background technology
In LAN environment, cable network message sends the cable network message that server is sent, need to be by wireless visit Ask that access point (Access Point AP) is forwarded, i.e., cable network message is converted into after wireless network message and carried out Distribution.With the development of computer technology and local area network technology, the network message forwarded by wireless access points is got over Come more.Network message can be all transferred on radio open after wireless access points, and subnetwork message passes through , can be in multiple class transport to radio open so that radio open can have substantial amounts of net after the duplication forwarding of multistage switches Network message, takes radio open broadband resource, causes wireless user can not access wireless network.
The content of the invention
Based on this, it is necessary to there can be substantial amounts of network message for radio open, radio open broadband resource is taken, is led Causing the problem of wireless user can not access wireless network, there is provided a kind of message processing method and device.
A kind of message processing method, methods described includes:
Obtain cable network message;
If the cable network message includes user's mark, user's mark that the cable network message includes is obtained Note;
When the user's mark represents that the user's mark is the local corresponding user's mark of wireless user terminal of access When, the cable network message is converted into wireless network message;
The wireless network message is sent to the local wireless user terminal of the corresponding access of the user's mark;
If not including user's mark in the cable network message, according to default broadcast rate threshold value, broadcast by described The wireless network message that cable network message is converted into.
In one embodiment, after the acquisition cable network message, methods described also includes:
Extract the physical address that the cable network message includes;
If the physical address represents that the cable network message is unicast message, inquiry is stored in local address Table;
When the physical address is present in the address table, the cable network message is converted into wireless network report Wireless user terminal corresponding to the physical address is sent after text;
When the physical address is not existed in the address table, the cable network message is abandoned;
If the physical address represents that the cable network message is non-unicast message, if performing the wired network Network message includes user's mark, then the step of obtaining the user's mark that the cable network message includes.
In one embodiment, before the physical address that the extraction cable network message includes, methods described Also include:
Obtain the local corresponding physical address of wireless user terminal of access and Internet protocol address;
It is stored in local address table, will be obtained in the address table if the physical address obtained is present in The corresponding Internet protocol address of the physical address be updated to obtain the Internet protocol address;
If the physical address obtained is not existed in and is stored in local address table, by described in acquisition physically Location is write in the address table with Internet protocol address;
It is described to send the wireless network message to the local wireless user of the corresponding access of the user's mark The step of terminal, includes:
Determine the physical address and/or Internet protocol address in the address table that the user's mark is pointed to;
The wireless network message is sent to the corresponding nothing of the physical address and/or Internet protocol address of determination Line user terminal.
In one embodiment, if the cable network message includes user's mark, the wired network is obtained The step of user's mark that network message includes, includes:
Detect that whether including pre-set user in the cable network message marks keyword;
When the cable network message includes pre-set user mark keyword, the pre-set user mark is extracted crucial The corresponding address field of word;
Detect that address that the address field includes whether there is in being stored in local address table;
When the address that the address field includes, which is present in, to be stored in local address table, it is described will be described wireless The step of network message sends wireless user terminal corresponding to the user's mark includes:
The wireless network message is sent to the corresponding wireless user terminal in address included to the address field.
In one embodiment, it is described that the cable network message is converted into wireless network message, and according to default wide Broadcasting the step of rate-valve value is broadcasted includes:
Obtain default broadcast rate threshold value;
If the receiving velocity for not including the cable network message of user's mark is less than or equal to default broadcast rate threshold Value, then broadcasted after the cable network message being converted into wireless network message;
If the receiving velocity for not including the cable network message of user's mark is more than default broadcast rate threshold value,
Do not include the part cable network packet loss of user's mark by what is received, and by remaining part cable network Message is broadcasted after being converted into wireless network message so that the broadcast rate of the wireless network message is less than or equal to default Broadcast rate threshold value.
A kind of message process device, described device includes:
Receive message module, for obtaining cable network message;
Message processing module (MPM), if including user's mark for the cable network message, obtains the cable network The user's mark that message includes;When the user's mark represents that the user's mark is the local wireless user terminal pair of access During the user's mark answered, the cable network message is converted into wireless network message;By the wireless network message send to The user's mark is corresponding to access the local wireless user terminal;If not including user in the cable network message to mark Note, then according to default broadcast rate threshold value, broadcast the wireless network message being converted into by the cable network message.
In one embodiment, the message processing module (MPM) is additionally operable to extract the physics that the cable network message includes Address;If the physical address represents that the cable network message is unicast message, inquiry is stored in local address table;When When the physical address is present in the address table, the cable network message is converted into after wireless network message send to The corresponding wireless user terminal of the physical address;When the physical address is not existed in the address table, abandon described Cable network message;If the physical address represents that the cable network message is non-unicast message, if performing described Cable network message includes user's mark, then the step of obtaining the user's mark that the cable network message includes.
In one embodiment, described device also includes:
Address update module, for obtaining the local corresponding physical address of wireless user terminal of access and Internet protocol Address;It is stored in if the physical address obtained is present in local address table, by acquisition in the address table The corresponding Internet protocol address of the physical address is updated to the Internet protocol address obtained;If the thing obtained Reason address, which is not existed in, to be stored in local address table, then is write the physical address of acquisition and Internet protocol address In the address table;
The message processing module (MPM) be additionally operable to determine physical address in the address table that the user's mark is pointed to and/ Or Internet protocol address;The wireless network message is sent to the physical address and/or Internet protocol of determination The corresponding wireless user terminal in location.
In one embodiment, whether the message processing module (MPM) is additionally operable to detect in the cable network message includes in advance If user's mark keyword;When the cable network message includes pre-set user mark keyword, the default use is extracted The corresponding address field of family mark keyword;The address that detecting the address field includes whether there is local in being stored in In address table;When the address that the address field includes, which is present in, to be stored in local address table, by the wireless network Network message sends the corresponding wireless user terminal in address included to the address field.
In one embodiment, the message processing module (MPM) is additionally operable to obtain default broadcast rate threshold value;If not including using The receiving velocity of the cable network message of family mark is less than or equal to default broadcast rate threshold value, then by the cable network Message is broadcasted after being converted into wireless network message;If not including the receiving velocity of the cable network message of user's mark More than default broadcast rate threshold value, then do not include the part cable network packet loss of user's mark by what is received, and will be surplus Remaining part cable network message is broadcasted after being converted into wireless network message so that the broadcast speed of the wireless network message Rate is less than or equal to default broadcast rate threshold value.
Above-mentioned message processing method and device, after cable network message is got, detection cable network message in whether There is user's mark, if there is user's mark, and during user's mark corresponding for the local wireless user terminal of access, then it represents that To access the network message of local wireless user terminal request, the cable network message including the user's mark is converted into nothing After line network message, send to the corresponding wireless user terminal of the user's mark, it is ensured that the local wireless user terminal of access The network message of request can be transferred to corresponding wireless user terminal so that the wireless user terminal accesses wireless network. When not there is no user's mark in cable network message, then it represents that the network message asked for non-user, according to default broadcast rate Threshold value, broadcast the wireless network message that is converted into by the cable network message that not there is no user's mark, it is to avoid non-user request Network message largely tie up transfer resource, cause what the network message for accessing local wireless user terminal request can not be transmitted Problem.
Brief description of the drawings
Fig. 1 is the applied environment figure of message processing method in one embodiment;
Fig. 2 illustrates for the internal structure of the wireless access point device in one embodiment for realizing message processing method Figure;
Fig. 3 is the schematic flow sheet of message processing method in one embodiment;
If Fig. 4 includes user's mark for cable network message in one embodiment, obtain in cable network message and wrap The schematic flow sheet of the step of user's mark included;
If Fig. 5 is does not include user's mark in cable network message in one embodiment, according to default broadcast rate threshold Value, broadcast by the wireless network message that cable network message is converted into the step of schematic flow sheet;
Fig. 6 is the schematic flow sheet of message processing method in another embodiment;
The schematic flow sheet for the step of Fig. 7 updates for address table in one embodiment;
Fig. 8 is the logical schematic of message processing method in one embodiment;
Fig. 9 is the structured flowchart of message process device in one embodiment;
Figure 10 is the structured flowchart of message process device in another embodiment.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Fig. 1 is the applied environment figure of message processing method in one embodiment.Reference picture 1, the message processing method application In message handling system.Message handling system includes wireless user terminal 110, wireless access point device 120, wireless control apparatus 130 and server 140, wireless user terminal 110 passes through wireless network and carries out radio communication, nothing with wireless access point device 120 Line access point apparatus 120 is communicated by cable network with wireless controller 130 and server 140.Wireless user terminal 110 Can be specifically mobile terminal, mobile terminal specifically can be with least one of mobile phone, tablet personal computer, notebook computer etc..Nothing Line access point apparatus (Wireless Access Point AP) 120 is the radio switching device in wireless network.Controlled in wireless Equipment (Wireless Access Point Controller AC) 130 is a kind of network equipment, for centralized management AP. Server 140 can be specifically independent physical server or physical server cluster.
Fig. 2 is the internal structure schematic diagram of wireless access point device in one embodiment.As shown in Fig. 2 the equipment includes Processor, non-volatile memory medium, built-in storage and the network interface connected by system bus.Wherein, terminal is non-easy The property lost storage medium is stored with operating system.The processor that the equipment includes, which is used to provide, to be calculated and control ability, and support is whole The operation of equipment.Built-in storage in the equipment can store computer-readable instruction, and the computer-readable instruction is by the place When managing device execution, a kind of message processing method of the computing device may be such that.Network interface is used to carry out network with server The cable network message that communication, such as the reception server are sent.It will be understood by those skilled in the art that the structure shown in Fig. 2, Only the block diagram of the part-structure related to application scheme, does not constitute the terminal being applied thereon to application scheme Restriction, specific terminal can include than more or less parts shown in figure, either combine some parts or have Different part arrangements.
As shown in figure 3, in one embodiment there is provided a kind of message processing method, the present embodiment is applied in this way Wireless access point device 120 in above-mentioned Fig. 1 is illustrated.This method specifically includes following steps:
S302, obtains cable network message.
Wherein, cable network message refers to the network message transmitted by wire transmission media that server is sent.Such as DHCP (Dynamic Host Configuration Protocol DHCP) messages or ARP (Address Resolution Protocol address resolution protocols) message etc..
Specifically, wireless user terminal can access wireless access point device, need access wireless network and and server When carrying out data interaction, it can send and ask to wireless access point device by wireless access point device transmission request to server The request message received is sent to server responded again by message, wireless access point device.Server is according to request Generation includes the cable network message of response content after message is responded, and the cable network message of generation is issued to and wirelessly connect Enter point device, Message processing and forwarding are carried out by wireless access point device.
In one embodiment, server also can actively initiate the data interaction between wireless user terminal, will be wired Network message is issued to wireless access point device, and wireless access point device obtains the cable network message that server is issued, then right Network message is handled and forwarded.
S304, if cable network message includes user's mark, obtains the user's mark that cable network message includes.
Wherein, user's mark refers to marked the information that message sends target in messages.User's mark can be wired In the heading part of network message, the body matter that cable network message can also be included in.
In one embodiment, the cable network message that wireless access point device is received is whole according to wireless user for server The cable network message including response content generated after the request message reported response is held, server is generating the cable network During message, specify message and send target, user's mark can be carried out in heading part so that wireless access point device can be according to having The heading part of line network message determines that message forwards target.
In one embodiment, wireless access point device receive cable network message be initiated by server with it is wireless User terminal carries out the cable network message of data interaction.When pair for not storing cable network message transmission target on the server During the information answered, server can not carry out user's mark to the heading part of cable network message.Server is as needed During the data generation cable network message of transmission, the data of institute's foundation include the information that message sends target, in which case The body part of the cable network message of generation may include user's mark, and wireless access point device can be by parsing cable network report Text obtain including user's mark.
Specifically, wireless access point device can first inquire about wired after the cable network message that server is issued is received The heading part of network message, detects whether the heading part includes user's mark, if the header point includes user Mark, then the user's mark.If the heading part does not include user's mark, wireless access point device can be to cable network message Body matter parsed, search whether to include user's mark in analysis result.If analysis result includes user's mark, The user's mark is then obtained, if also not including user's mark in analysis result, shows the cable network message non-user demand Message, perform step S310.
S306, when user's mark represents user's mark to access the corresponding user's mark of local wireless user terminal, Cable network message is converted into wireless network message.
Wherein, wireless network message refers to the network report being transmitted between Wireless Communication Equipment by radio open Text.In the present embodiment, the wireless user's end for accessing the wireless access point device can be previously stored on wireless access point device The address information at end.The address information of wireless user terminal includes physical address (Media Access Control MAC Address) With Internet protocol address (Internet Protocol Address IP address).
Specifically, wireless access point device can be by the user's mark of acquisition and the local wireless user of the access being locally stored The address information of terminal is compared, when the user's mark that wireless access point device is obtained is identical with the address information being locally stored When, then judge that cable network message sends target as access local wireless user terminal.Wireless access point device can be wired to this The heading part of network message is modified, and the protocol-identifier for representing cable network message is revised as to represent wireless network report The protocol-identifier of text.
When the user's mark that wireless access point device is obtained and the address information being locally stored are differed, then judge wired It is not access local wireless user terminal that network message, which sends target, by the cable network packet loss.
S308, wireless network message is sent to the local wireless user terminal of the corresponding access of user's mark.
Specifically, wireless access point device can determine corresponding according to user's mark, receive connecing for the wireless network message Enter local wireless user terminal, wireless network message is transmitted to the wireless user in a wireless form by radio open Terminal.
S310, if not including user's mark in cable network message, according to default broadcast rate threshold value, is broadcasted by wired The wireless network message that network message is converted into.
Wherein, default broadcast rate threshold value refers to the maximum of the speed broadcasted message pre-set.Specifically Can be the message amount broadcasted in each time cycle, such as ten wireless network messages of broadcast per second etc..
Specifically, when wireless access point device judges not include user's mark in cable network message, the wired network is characterized Reception target, the message that non-wireless user terminal is asked is not known in network message.Wireless access point device can be according to default broadcast The wireless network message that rate-valve value broadcast is converted into by cable network message.
In one embodiment, wireless access point device can not include the cable network message of user's mark receiving Afterwards, the cable network message received is converted into wireless network message, according still further to default broadcast rate threshold value by respective numbers The obtained wireless network message of conversion add broadcast queue, wireless access point device is to the wireless network message in broadcast queue Broadcasted successively one by one by radio open.
Above-mentioned message processing method, after cable network message is got, with the presence or absence of use in detection cable network message Family is marked, if there is user's mark, and during user's mark corresponding for the local wireless user terminal of access, then it represents that for access The network message of local wireless user terminal request, wireless network is converted into by the cable network message including the user's mark After message, send to the corresponding wireless user terminal of the user's mark, it is ensured that the local wireless user terminal request of access Network message can be transferred to corresponding wireless user terminal so that the wireless user terminal accesses wireless network.In wired network When not there is no user's mark in network message, then it represents that the network message asked for non-user, according to default broadcast rate threshold value, extensively Broadcast the wireless network message being converted into by the cable network message that not there is no user's mark, it is to avoid the network report of non-user request Text largely ties up transfer resource, causes the problem of network message for accessing local wireless user terminal request can not be transmitted.
As shown in figure 4, in one embodiment, step S304 specifically includes following steps:
Whether include pre-set user in S402, detection cable network message and mark keyword.
Wherein, pre-set user mark keyword refers to that what is set in advance is used in the character string that user's mark is identified in message. Target IP that such as APR (Address Resolution Protocol address resolution protocols) request message includes or The Target that DHCP (Dynamic Host Configuration Protocol DHCP) message includes MAC etc..
Specifically, wireless access point device can be after cable network message be received, by the message of the cable network message Head portion includes character string and contrasted with pre-set user mark keyword.If the heading part of the cable network message is present When marking the consistent character string of keyword with pre-set user, judge that the cable network message includes pre-set user and marks keyword, Perform step S404.
If the character string consistent with pre-set user mark keyword is not present in the heading part of the cable network message, Wireless access point device can parse the cable network message, check whether exist and pre-set user mark key in analysis result The consistent character string of word.If there is the character consistent with pre-set user mark keyword in the analysis result of the cable network message During string, judge that the cable network message includes pre-set user and marks keyword, perform step S404.If the cable network message When the character string consistent with pre-set user mark keyword being not present in analysis result, judge that the cable network message does not include pre- If user's mark keyword, step S310 is performed.
S404, when cable network message includes pre-set user mark keyword, extracts pre-set user mark keyword Corresponding address field.
Specifically, wireless access point device can exist consistent with pre-set user mark keyword in cable network message During character string, the corresponding address field of the character string is extracted.The corresponding address of address field can be physical address (Media Access Control MAC Address) and/or Internet protocol address (Internet Protocol Address IP address).
S406, the address that includes of detection address field whether there is in being stored in local address table.
Wherein, address table refers to be stored in is used to record the nothing for accessing the wireless access point device in wireless access point device The list of the address date of line user terminal.Specifically, wireless access point device can be traveled through to be stored in local address table and wrapped The address included, in traversal, the address that the address field of the address of traversal and extraction includes is compared, if the ground of traversal Location is consistent with the address that the address field extracted includes, then the address that judging the address field extracted includes is present in storage In local address table.If the address of traversal and the address that the address field extracted includes are inconsistent, judge what is extracted The address that address field includes is not present in being stored in local address table.
S408, when the address that address field includes, which is present in, to be stored in local address table, by wireless network report Text sends the corresponding wireless user terminal in address included to address field.
In the present embodiment, mark whether keyword includes user's mark as according to judgement cable network message using pre-set user Note, when judging that cable network message includes user's mark, marks what the corresponding address field of keyword included by pre-set user Address is contrasted with local address table, thus judge cable network message whether as local wireless user terminal requests message, Message is transmitted during by the message for being determined as local wireless user terminal requests, it is ensured that the local wireless user of access is whole The network message of end request can be transferred to corresponding wireless user terminal in time.
As shown in figure 5, in one embodiment, step S310 specifically includes following steps:
S502, obtains default broadcast rate threshold value.
In one embodiment, it is that keeper passes through wireless control apparatus (Wireless to preset broadcast rate threshold value Access Point Controller AC) uniformly set and be issued to connect the Wireless Communication Equipment WAP set It is standby.
S504, if the receiving velocity for not including the cable network message of user's mark is less than or equal to default broadcast rate threshold Value, then broadcasted after cable network message being converted into wireless network message.
Specifically, wireless access point device can detect reception speed when receiving the cable network message for not including user's mark Rate, is less than or equal to default broadcast rate threshold value in the receiving velocity detected, judges wireless access point device to not including using The forwarding rate of the cable network message of family mark is not up to saturation, without entering to the cable network message for not including user's mark Row suppresses, and is broadcasted after cable network message directly is converted into wireless network message.
S506, if the receiving velocity for not including the cable network message of user's mark is more than default broadcast rate threshold value, Do not include the part cable network packet loss of user's mark by what is received, and remaining part cable network message is converted To be broadcasted after wireless network message so that the broadcast rate of wireless network message is less than or equal to default broadcast rate threshold Value.
Specifically, wireless access point device judges nothing when the receiving velocity detected is more than default broadcast rate threshold value Line access point apparatus has reached saturation to the forwarding rate for not including the cable network message of user's mark, is marked to not including user The cable network message of note carries out broadcast rate suppression, according to default broadcast rate threshold value by the cable network message of respective numbers Broadcasted after being converted into wireless network message, and by more than the cable network packet loss of quantity.
In the present embodiment, using default broadcast rate threshold value as foundation, the cable network message of user's mark is not being included Receiving velocity when being less than or equal to default broadcast rate threshold value, the cable network message that user's mark is not included is not turned Send out suppression processing, it is ensured that all messages can be broadcasted.And do not including connecing for the cable network message of user's mark When receiving speed more than default broadcast rate threshold value, according to default broadcast rate threshold value to not including the cable network report of user's mark Text carries out forwarding suppression processing, it is to avoid the network message of non-user request largely ties up transfer resource, causes access local The problem of network message of wireless user terminal request can not be transmitted.
As shown in fig. 6, in one embodiment there is provided a kind of message processing method, this method specifically includes following step Suddenly:
S602, obtains cable network message.
S604, extracts the physical address that cable network message includes.
In the present embodiment, physical address refers to MAC Address (Media Access Control), for representing internet The identifier of each upper website, is represented, six bits of byte 48 totally using hexadecimal number.Such as:00-23-5A-15-99- 42.Wireless access point device can according to physical address set form, searched in cable network message, finding symbol Extracted after the field for the set form for closing physical address.
S606, if physical address table shows that cable network message is unicast message, inquiry is stored in local address table.
Wherein, unicast message refers to the message carried out data transmission in point-to-point communication.IEEE 802.3 is provided:Ethernet 48bit be used for represent that this address is multicast address or unicast address.If this position is 0, represent that this MAC Address is Unicast address, if this position is 1, it is non-unicast address to represent this MAC Address.
Specifically, wireless access point device can detect whether extracts physical address 48bit is 0, if 0, then inquiry is deposited Storage is in local address table.Record has the physical address for accessing local wireless user terminal in address table.
S608, when physical address is present in address table, cable network message is converted into after wireless network message and sent out Deliver to the corresponding wireless user terminal of physical address.
Specifically, when physical address is present in address table, illustrate that cable network message sends target local for access Wireless user terminal, then be transmitted after cable network message being converted into wireless network report.
S610, when physical address is not existed in address table, abandons cable network message.
Specifically, when physical address is not present in address table, it is not access to illustrate that cable network message sends target Local wireless user terminal, then directly by the cable network packet loss.
S612, if physical address table shows that cable network message is non-unicast message, and cable network message includes user Mark, then obtain the user's mark that cable network message includes.
In the present embodiment, non-unicast message includes multicast message and broadcasting packet.Multicast message and broadcasting packet are used for The message carried out data transmission in one-to-many communication.Broadcasting packet is the special case of multicast message, the mac address table of broadcasting packet Show all addresses, represented with full F:FF-FF-FF-FF-FF-FF.
S614, when user's mark represents user's mark to access the corresponding user's mark of local wireless user terminal, Cable network message is converted into wireless network message.
S616, wireless network message is sent to the local wireless user terminal of the corresponding access of user's mark.
S618, if physical address table shows cable network message not include using in non-unicast message, and cable network message Family is marked, then according to default broadcast rate threshold value, broadcasts the wireless network message being converted into by cable network message.
In the present embodiment, the physical address included by cable network message is classified to cable network message, It is one because message sends target for unicast message, if physical address is expressed as accessing local wireless user terminal, Forwarded, if physical address is represented not to access local wireless user terminal, directly by cable network packet loss.It is right In non-unicast message, because message sends target to be multiple, it can not determine that message sends target and then carry out broadcast rate suppression Processing, enables non-unicast message to be broadcasted, useful message is not lost to a certain extent, while avoiding does not include using Family marks non-unicast message largely to tie up transfer resource, causes the network message for accessing local wireless user terminal request can not The problem of transmission.
As shown in fig. 7, in one embodiment, in message processing method before step S604, in addition to updating address table The step of, specifically include following steps:
S702, obtains the local corresponding physical address of wireless user terminal of access and Internet protocol address.
S704, is stored in local address table if the physical address obtained is present in, by acquisition in address table The corresponding Internet protocol address of physical address is updated to the Internet protocol address obtained.
In general, wireless user terminal corresponding physical address be it is nonvoluntary change, but Internet protocol Location may change, accordingly, it would be desirable to be updated to being stored in local address table, it is ensured that be stored in local address table The validity of the address of storage.
S706, is stored in local address table if the physical address obtained is not existed in, by the physical address of acquisition With in Internet protocol address writing address table.
In the present embodiment, step S616 includes:Determine user's mark point to address table in physical address and/or mutually Networking protocol address;Wireless network message is sent corresponding wireless to the physical address of determination and/or Internet protocol address User terminal.
Specifically, the address difference pointed to for the user's mark that different types of non-unicast message includes.Such as, than As the Target IP that APR (Address Resolution Protocol address resolution protocols) request message includes are pointed to It is the Internet protocol address in address table, DHCP (match somebody with somebody by Dynamic Host Configuration Protocol DynamicHosts Putting agreement) the Target MAC that include of message point to is physical address in address table.
There is provided the more new strategy of the address table to being locally stored in the present embodiment, it is ensured that is stored in local address The validity of the address stored in table.
Fig. 8 shows the logical schematic of message processing method in one embodiment.With reference to Fig. 8, wireless access point device After cable network message is obtained, the physical address in cable network message is extracted, type of message is judged according to physical address. When the physical address of extraction represents the cable network message for unicast message, by being stored in, local address table determines the unicast Whether message is the message for accessing local wireless user terminal request.If the unicast message is access, local wireless user is whole The message of request is held, then the unicast message is converted into after the wireless network message that can be transmitted by radio open and is forwarded to wirelessly User terminal;If the unicast message is not the message of the local wireless user terminal request of access, directly by the packet loss.
When it is non-unicast message that the physical address of extraction, which represents the cable network message, whether the non-unicast message is checked Including user's mark.If the non-unicast message includes user's mark, by being stored in, local address table determines that this is non-unicast Whether message is the message for accessing local wireless user terminal request.If the non-unicast message is the local wireless user of access The message of terminal request, then be forwarded to nothing after the unicast message to be converted into the wireless network message that can be transmitted by radio open Line user terminal;If the non-unicast message is not the message of the local wireless user terminal request of access, directly by the message Abandon.If the non-unicast message does not include user's mark, broadcast rate suppression processing is carried out to the non-unicast message, according to pre- If broadcast rate threshold value, the wireless network message being converted into by the non-unicast message is broadcasted by radio open.
As shown in figure 9, in one embodiment there is provided a kind of message process device, including:Receive message module 901 With message processing module (MPM) 902.
Receive message module 901, for obtaining cable network message.
Message processing module (MPM) 902, if including user's mark for cable network message, is obtained in cable network message Including user's mark;When user's mark represents that user's mark is the local corresponding user's mark of wireless user terminal of access When, cable network message is converted into wireless network message;Wireless network message is sent to the corresponding access of user's mark originally The wireless user terminal on ground;If not including user's mark in cable network message, according to default broadcast rate threshold value, broadcast by The wireless network message that cable network message is converted into.
Above-mentioned message process device, after cable network message is got, with the presence or absence of use in detection cable network message Family is marked, if there is user's mark, and during user's mark corresponding for the local wireless user terminal of access, then it represents that for access The network message of local wireless user terminal request, wireless network is converted into by the cable network message including the user's mark After message, send to the corresponding wireless user terminal of the user's mark, it is ensured that the local wireless user terminal request of access Network message can be transferred to corresponding wireless user terminal so that the wireless user terminal accesses wireless network.In wired network When not there is no user's mark in network message, then it represents that the network message asked for non-user, according to default broadcast rate threshold value, extensively Broadcast the wireless network message being converted into by the cable network message that not there is no user's mark, it is to avoid the network report of non-user request Text largely ties up transfer resource, causes the problem of network message for accessing local wireless user terminal request can not be transmitted.
In one embodiment, message processing module (MPM) 902 is additionally operable to extract the physical address that cable network message includes; If physical address table shows that cable network message is unicast message, inquiry is stored in local address table;When physical address is present When in address table, cable network message is converted into after wireless network message and sends whole to the corresponding wireless user of physical address End;When physical address is not existed in address table, cable network message is abandoned;If physical address table shows cable network, message is Non-unicast message, if then performing cable network message includes user's mark, obtains the user that cable network message includes The step of mark.
In the present embodiment, the physical address included by cable network message is classified to cable network message, It is one because message sends target for unicast message, if physical address is expressed as accessing local wireless user terminal, Forwarded, if physical address is represented not to access local wireless user terminal, directly by cable network packet loss.It is right In non-unicast message, because message sends target to be multiple, it can not determine that message sends target and then carry out broadcast rate suppression Processing, enables non-unicast message to be broadcasted, useful message is not lost to a certain extent, while avoiding does not include using Family marks non-unicast message largely to tie up transfer resource, causes the network message for accessing local wireless user terminal request can not The problem of transmission.
In one embodiment, message processing module (MPM) 902 is additionally operable in detection cable network message whether include default use Family marks keyword;When cable network message includes pre-set user mark keyword, pre-set user mark keyword is extracted Corresponding address field;The address that includes of detection address field whether there is in being stored in local address table;Work as address The address that field includes is present in when being stored in local address table, and wireless network message is sent into address field into bag The corresponding wireless user terminal in address included.
In the present embodiment, mark whether keyword includes user's mark as according to judgement cable network message using pre-set user Note, when judging that cable network message includes user's mark, marks what the corresponding address field of keyword included by pre-set user Address is contrasted with local address table, thus judge cable network message whether as local wireless user terminal requests message, Message is transmitted during by the message for being determined as local wireless user terminal requests, it is ensured that the local wireless user of access is whole The network message of end request can be transferred to corresponding wireless user terminal in time.
In one embodiment, message processing module (MPM) 902 is additionally operable to obtain default broadcast rate threshold value;If not including user The receiving velocity of the cable network message of mark is less than or equal to default broadcast rate threshold value, then is converted into cable network message Broadcasted after wireless network message;If the receiving velocity for not including the cable network message of user's mark is more than default broadcast speed Rate threshold value, then do not include the part cable network packet loss of user's mark by what is received, and by remaining part wired network Network message is broadcasted after being converted into wireless network message so that the broadcast rate of wireless network message is less than or equal to default wide Broadcast rate-valve value.
In the present embodiment, using default broadcast rate threshold value as foundation, the cable network message of user's mark is not being included Receiving velocity when being less than or equal to default broadcast rate threshold value, the cable network message that user's mark is not included is not turned Send out suppression processing, it is ensured that all messages can be broadcasted.And do not including connecing for the cable network message of user's mark When receiving speed more than default broadcast rate threshold value, according to default broadcast rate threshold value to not including the cable network report of user's mark Text carries out forwarding suppression processing, it is to avoid the network message of non-user request largely ties up transfer resource, causes access local The problem of network message of wireless user terminal request can not be transmitted.
As shown in Figure 10, in one embodiment there is provided a kind of message process device, including:Receive message module 1001st, address update module 1002 and message processing module (MPM) 1003.
Receive message module 1001, for obtaining cable network message.
Address update module 1002, the wireless user terminal corresponding physical address and internet local for obtaining access Protocol address;It is stored in if the physical address obtained is present in local address table, by the physics of acquisition in address table The corresponding Internet protocol address in address is updated to the Internet protocol address obtained;Deposited if the physical address obtained is not existed in Storage is in local address table, then by the physical address of acquisition and Internet protocol address writing address table.
Message processing module (MPM) 1003, if including user's mark for cable network message, obtains cable network message The user's mark included;When user's mark represents that user's mark is the local corresponding user's mark of wireless user terminal of access When, cable network message is converted into wireless network message;Determine user's mark point to address table in physical address and/or Internet protocol address;Wireless network message is sent to the physical address of determination and/or the corresponding nothing of Internet protocol address Line user terminal;If not including user's mark in cable network message, according to default broadcast rate threshold value, broadcast by wired network The wireless network message that network message is converted into.
There is provided the more new strategy of the address table to being locally stored in the present embodiment, it is ensured that is stored in local address The validity of the address stored in table.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described program can be stored in a non-volatile computer and can be read In storage medium, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage is situated between Matter can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM) etc..
Each technical characteristic of above example can be combined arbitrarily, to make description succinct, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield, is all considered to be the scope of this specification record.
Embodiment described above only expresses the several embodiments of the present invention, and it describes more specific and detailed, but simultaneously Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention Protect scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. a kind of message processing method, methods described includes:
Obtain cable network message;
If the cable network message includes user's mark, the user's mark that the cable network message includes is obtained;
, will when the user's mark represents the user's mark to access the corresponding user's mark of local wireless user terminal The cable network message is converted into wireless network message;
The wireless network message is sent to the local wireless user terminal of the corresponding access of the user's mark;
If not including user's mark in the cable network message, according to default broadcast rate threshold value, broadcast by described wired The wireless network message that network message is converted into.
2. according to the method described in claim 1, it is characterised in that after the acquisition cable network message, methods described is also Including:
Extract the physical address that the cable network message includes;
If the physical address represents that the cable network message is unicast message, inquiry is stored in local address table;
When the physical address is present in the address table, the cable network message is converted into after wireless network message Send to the corresponding wireless user terminal of the physical address;
When the physical address is not existed in the address table, the cable network message is abandoned;
If the physical address represents that the cable network message is non-unicast message, if performing the cable network report Text includes user's mark, then the step of obtaining the user's mark that the cable network message includes.
3. method according to claim 2, it is characterised in that the physics that the extraction cable network message includes Before address, methods described also includes:
Obtain the local corresponding physical address of wireless user terminal of access and Internet protocol address;
It is stored in if the physical address obtained is present in local address table, by the institute of acquisition in the address table State the Internet protocol address that the corresponding Internet protocol address of physical address is updated to obtain;
If the physical address obtained is not existed in and is stored in local address table, by the physical address of acquisition with Internet protocol address is write in the address table;
It is described to send the wireless network message to the local wireless user terminal of the corresponding access of the user's mark The step of include:
Determine the physical address and/or Internet protocol address in the address table that the user's mark is pointed to;
The wireless network message is sent to the corresponding wireless use of the physical address and/or Internet protocol address of determination Family terminal.
4. according to the method described in claim 1, it is characterised in that if the cable network message includes user's mark Note, then the step of obtaining the user's mark that the cable network message includes includes:
Detect that whether including pre-set user in the cable network message marks keyword;
When the cable network message includes pre-set user mark keyword, the pre-set user mark keyword pair is extracted The address field answered;
Detect that address that the address field includes whether there is in being stored in local address table;
It is described by the wireless network when the address that the address field includes, which is present in, to be stored in local address table The step of message sends wireless user terminal corresponding to the user's mark includes:
The wireless network message is sent to the corresponding wireless user terminal in address included to the address field.
5. according to the method described in claim 1, it is characterised in that described that the cable network message is converted into wireless network Message, and include the step of broadcasted according to default broadcast rate threshold value:
Obtain default broadcast rate threshold value;
If the receiving velocity for not including the cable network message of user's mark is less than or equal to default broadcast rate threshold value, Broadcasted after the cable network message is converted into wireless network message;
If the receiving velocity for not including the cable network message of user's mark is more than default broadcast rate threshold value,
Do not include the part cable network packet loss of user's mark by what is received, and by remaining part cable network message Broadcasted after being converted into wireless network message so that the broadcast rate of the wireless network message is less than or equal to default broadcast Rate-valve value.
6. a kind of message process device, it is characterised in that described device includes:
Receive message module, for obtaining cable network message;
Message processing module (MPM), if including user's mark for the cable network message, obtains the cable network message The user's mark included;When the user's mark represents that the user's mark is corresponding for the local wireless user terminal of access During user's mark, the cable network message is converted into wireless network message;The wireless network message is sent to described The local wireless user terminal of the corresponding access of user's mark;If not including user's mark in the cable network message, Then according to default broadcast rate threshold value, the wireless network message being converted into by the cable network message is broadcasted.
7. device according to claim 6, it is characterised in that the message processing module (MPM) is additionally operable to extract the wired network The physical address that network message includes;If the physical address represents that the cable network message is unicast message, inquiry is deposited Storage is in local address table;When the physical address is present in the address table, the cable network message is converted into Wireless user terminal corresponding to the physical address is sent after wireless network message;Described in not existed in when the physical address When in address table, the cable network message is abandoned;If the physical address represents that the cable network message is non-unicast report Text, if then performing the cable network message includes user's mark, obtains what the cable network message included The step of user's mark.
8. device according to claim 7, it is characterised in that described device also includes:
Address update module, for obtaining the local corresponding physical address of wireless user terminal of access and Internet protocol Location;It is stored in if the physical address obtained is present in local address table, by the institute of acquisition in the address table State the Internet protocol address that the corresponding Internet protocol address of physical address is updated to obtain;If the physics obtained Address, which is not existed in, to be stored in local address table, then the physical address of acquisition and Internet protocol address is write into institute State in address table;
The message processing module (MPM) is additionally operable to determine physical address in the address table that the user's mark is pointed to and/or mutually Networking protocol address;The wireless network message is sent to the physical address and/or Internet protocol address pair of determination The wireless user terminal answered.
9. device according to claim 6, it is characterised in that the message processing module (MPM) is additionally operable to detect the wired network Whether include pre-set user in network message and mark keyword;When the cable network message includes pre-set user mark keyword When, extract the corresponding address field of the pre-set user mark keyword;Detect whether is address that the address field includes It is present in and is stored in local address table;Local address table is stored in when the address that the address field includes is present in When middle, the wireless network message is sent to the corresponding wireless user terminal in address included to the address field.
10. device according to claim 6, it is characterised in that the message processing module (MPM) is additionally operable to obtain default broadcast Rate-valve value;If the receiving velocity for not including the cable network message of user's mark is less than or equal to default broadcast rate threshold Value, then broadcasted after the cable network message being converted into wireless network message;If not including the described of user's mark has The receiving velocity of line network message is more than default broadcast rate threshold value, then the part for not including user's mark received is wired Network message is abandoned, and broadcasted after remaining part cable network message is converted into wireless network message so that described The broadcast rate of wireless network message is less than or equal to default broadcast rate threshold value.
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 true CN107231341A (en) 2017-10-03
CN107231341B 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)

Cited By (1)

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

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030225881A1 (en) * 2002-06-04 2003-12-04 Apoorv Saxena Efficient cascaded lookups at a network node
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
CN103024851A (en) * 2012-11-23 2013-04-03 福建星网锐捷网络有限公司 Wireless-network based message transmission method, device and network equipment
CN103079229A (en) * 2012-12-28 2013-05-01 上海寰创通信科技股份有限公司 Directional broadcast transmission method for access controller
US20140133385A1 (en) * 2004-11-05 2014-05-15 Ruckus Wireless, Inc. Distributed access point for ip based communications
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

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030225881A1 (en) * 2002-06-04 2003-12-04 Apoorv Saxena Efficient cascaded lookups at a network node
US20140133385A1 (en) * 2004-11-05 2014-05-15 Ruckus Wireless, Inc. Distributed access point for ip based communications
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
CN103024851A (en) * 2012-11-23 2013-04-03 福建星网锐捷网络有限公司 Wireless-network based message transmission method, device and network equipment
CN103079229A (en) * 2012-12-28 2013-05-01 上海寰创通信科技股份有限公司 Directional broadcast transmission method for access controller
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

Cited By (2)

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

Also Published As

Publication number Publication date
CN107231341B (en) 2020-09-15

Similar Documents

Publication Publication Date Title
CN101938415B (en) Rapid forwarding method for network forwarding device
US8837483B2 (en) Mapping private and public addresses
CN106412142B (en) Resource equipment address obtaining method and device
KR102052520B1 (en) A node and a communication method for supporting content mobility in a content centric network
CN1774889B (en) Arrangement for traversing an IPv4 network by IPv6 mobile nodes
CN104468866B (en) A kind of multiple gateway terminal fast roaming method in WLAN
US20130198369A1 (en) Method and apparatus for mapping locator and identifier of mobile host
CN101621414A (en) Method and apparatus for discovering network resource and topology
CN107770072B (en) Method and equipment for sending and receiving message
US8472420B2 (en) Gateway device
JP6633775B2 (en) Packet transmission
CN110505621B (en) Terminal migration processing method and device
CN106130819B (en) The detection method and device of VTEP exception
US8250189B1 (en) Employing IP version fields to determine data-link layer addresses
JP2019521619A (en) Packet forwarding
CN108322521A (en) Message content method for pushing, device, system, computer equipment and storage medium
CN107580079A (en) A kind of message transmitting method and device
CN106507414B (en) Message forwarding method and device
CN107623757A (en) Entry updating method and apparatus
CN104081749A (en) DAD-NS triggered address resolution for dos attack protection
CN108199968A (en) Route processing method and device
CN108494701A (en) Load sharing method and device
JP2004260463A (en) Router, communication apparatus, network address management system, network address managing method and network address management program
CN103338275A (en) Port distribution method and apparatus
CN104717640B (en) A kind of implementation method of the wireless communication based on positioning

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