CN104519061B - A kind of message forwarding method, device and system - Google Patents

A kind of message forwarding method, device and system Download PDF

Info

Publication number
CN104519061B
CN104519061B CN201410787317.4A CN201410787317A CN104519061B CN 104519061 B CN104519061 B CN 104519061B CN 201410787317 A CN201410787317 A CN 201410787317A CN 104519061 B CN104519061 B CN 104519061B
Authority
CN
China
Prior art keywords
wireless
target
control message
business datum
capwap tunnel
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
CN201410787317.4A
Other languages
Chinese (zh)
Other versions
CN104519061A (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201410787317.4A priority Critical patent/CN104519061B/en
Publication of CN104519061A publication Critical patent/CN104519061A/en
Application granted granted Critical
Publication of CN104519061B publication Critical patent/CN104519061B/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
    • 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
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/08Upper layer protocols
    • H04W80/12Application layer protocols, e.g. WAP [Wireless Application Protocol]

Landscapes

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

Abstract

The present invention provides a kind of message forwarding method, device and system, it is related to data communication field, a kind of mode to be E-Packeted in the case where wireless AC and wireless aps are in NAT device both ends is provided, can effectively perform the protocol massages transmission between wireless AC and wireless aps.Its method is:Wireless AC by local Socket interfaces after the business datum of corresponding upper-layer service program is obtained, business datum is encapsulated in CAPWAP tunnel control message and is transmitted, and then business datum is transmitted to corresponding upper-layer service program by wireless aps after receiving the control message and unsealing acquisition business datum by local Socket interfaces.The embodiment of the present invention is used for the forwarding for realizing the protocol massages between wireless AC and wireless aps.

Description

A kind of message forwarding method, device and system
Technical field
The present invention relates to data communication field, more particularly to a kind of message forwarding method, device and system.
Background technology
As WLAN (Wireless Local Area Networks, WLAN) application is more and more extensive, The type of its deployment scenario is also increasingly abundanter.Its composition mainly includes:NAT (Network Address Translation, Network address translation) equipment, for private net address to be converted into public network address to alleviate public network address exhaustion problem;Wireless aps (Access Point, access point), for launching wireless access signal, guiding user connects wireless network;Wireless AC (Wireless Access Point Controller, access controller), for carrying out centralized Control and pipe to each wireless aps Reason.
Under a kind of distributed WLAN deployment scenario (as shown in Figure 1) common at present, due to wireless AC (001 in figure) position In public network, and wireless aps (002 in figure) are located at the rear end (i.e. in private network) of NAT device (003 in figure), and NAT device has isolated public affairs Net and private network, wireless AC can not be interacted directly by upper-layer protocol and wireless aps.Thus, prior art needs as wireless AC When being interacted by upper-layer protocol and wireless aps, generally by inquiring Target Wireless AP private net address, and then right Specific port mapping is carried out on the NAT device answered, so as to the outer net such as wireless AC equipment by access with the port that postpones so as to The corresponding wireless aps of Intranet are mapped to, so as to realize the interaction of protocol massages.
However, when realizing the interaction of protocol massages using which, it is necessary to by operating personnel previously according to scene in it is each IP (Internet Protocol, Internet protocol) address of wireless aps, manual configuration port mapping.And due to each wireless aps IP address be side by DHCP (Dynamic Host Configuration Protocol, DHCP) Formula dynamic access, when the IP address of some wireless aps changes, the corresponding relation of original port mapping can fail, and lead Causing the interaction of protocol massages can not be carried out.
The content of the invention
Embodiments of the invention provide a kind of message forwarding method, device and system, for solving because of port mapping relationship Wireless AC caused by failure carries out the problem of stability is poor, and reliability is low when upper-layer protocol interacts with wireless aps.
To reach above-mentioned purpose, embodiments of the invention adopt the following technical scheme that:
First aspect, there is provided a kind of message forwarding method, including:
Radio Access Controller AC obtains target wireless access points AP index information, for Target Wireless AP distribution with Available port number corresponding to the index information, and establish local socket Socket interfaces according to the port numbers;
Upper-layer service program business datum to be sent is obtained by the local Socket interfaces;
According to the index information, it is determined that target wireless access points corresponding with Target Wireless AP control and configuration association CAPWAP tunnel is discussed, and the business datum is encapsulated in the preset field in the target CAPWAP tunnel control message;
Control message after encapsulation is sent to the Target Wireless AP by the target CAPWAP tunnel, so as to the mesh Mark deblocking after wireless aps receive the control message and obtain the business datum.
Second aspect, there is provided a kind of message forwarding method, including:
Wireless access point AP is local socket Socket interface assignment available ports number, and is established according to the port numbers The local Socket interfaces;
Control message is received, it is described to control message to encapsulate business datum in preset field for Radio Access Controller AC Afterwards, sent out by target wireless access points corresponding with wireless aps control and configuration protocol CAPWAP tunnel to the wireless aps Send;
The control message is unsealed, obtains the business datum for being encapsulated in preset field in the control message, and lead to Cross the local Socket interfaces and the business datum is forwarded to upper-layer service program.
The third aspect, there is provided a kind of Radio Access Controller, including:
Initialization unit, for obtaining target wireless access points AP index information, for the Target Wireless AP distribution with Available port number corresponding to the index information, and establish local socket Socket interfaces according to the port numbers;
Acquiring unit, for obtaining upper-layer service program business datum to be sent by the local Socket interfaces;
Encapsulation unit, for according to the index information, it is determined that Target Wireless corresponding with the Target Wireless AP accesses Point control and configuration protocol CAPWAP tunnel, and the business datum is encapsulated in the target CAPWAP tunnel control message Preset field;
Transmitting element, for sending the control report after encapsulation to the Target Wireless AP by the target CAPWAP tunnel Text, the acquisition business datum is unsealed after receiving the control message so as to the Target Wireless AP.
Fourth aspect, there is provided a kind of WAP, including:
Initialization unit, for for local socket Socket interface assignment available ports number, and according to the port numbers Establish the local Socket interfaces;
Receiving unit, message is controlled for receiving, it is described to control message to be sealed for Radio Access Controller AC in preset field After having filled business datum, pass through target wireless access points corresponding with wireless access point AP control and configuration protocol CAPWAP Tunnel is sent to the wireless aps;
Unit is unsealed, for unsealing the control message, obtains and is encapsulated in the described of preset field in the control message Business datum, and the business datum is forwarded to by upper-layer service program by the local Socket interfaces.
5th aspect, there is provided a kind of message forwarding system, including:
Network address translation device, a Radio Access Controller AC as described in the third aspect are at least one such as the Wireless access point AP described in four aspects;
The wireless AC is located at the both ends of the NAT device with each wireless aps respectively, the wireless AC with it is each wireless Communicated between AP by WAP control and configuration protocol CAPWAP tunnel.
It can be seen that the present invention provides a kind of message forwarding method, device and system, wireless AC is passing through local Socket interfaces After the business datum for obtaining corresponding upper-layer service program, business datum is encapsulated in CAPWAP tunnel control message and passed It is defeated, and then wireless aps are after receiving the control message and unsealing and obtain business datum, by local Socket interfaces by business number Upper-layer service program is corresponded to according to being transmitted to.So, upper strata is carried out by using the CAPWAP tunnel between wireless AC and wireless aps The transmission of protocol massages, the IP address for avoiding wireless aps in the prior art change so that being pre-configured with port mapping relationship Failure, the problem of causing message interaction not carry out.Therefore, the present invention can effectively perform wireless AC relative to prior art Protocol massages transmission between wireless aps, solve because port mapping relationship failure causes wireless AC to carry out upper strata with wireless aps The problem of stability is poor during protocol interaction, and reliability is relatively low.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of connection diagram of message forwarding system provided in an embodiment of the present invention;
Fig. 2 is a kind of structural representation of message forwarding system provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic flow sheet one of message forwarding method provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic flow sheet two of message forwarding method provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic flow sheet three of message forwarding method provided in an embodiment of the present invention;
Fig. 6 controls message format schematic diagram for a kind of CAPWAP tunnel provided in an embodiment of the present invention;
Fig. 7 is a kind of structural representation one of Radio Access Controller provided in an embodiment of the present invention;
Fig. 8 is a kind of structural representation two of Radio Access Controller provided in an embodiment of the present invention;
Fig. 9 is a kind of structural representation one of WAP provided in an embodiment of the present invention;
Figure 10 is a kind of structural representation two of WAP provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
Fig. 1 is a kind of connection diagram of message forwarding system provided in an embodiment of the present invention, of the invention real for implementing A kind of message forwarding method of example offer is provided.Referring to Fig. 1, the message forwarding system is by wireless AC001, an one or more nothings Line AP002, NAT device 003, interchanger 004 and internet 005 form.
Wherein, wireless AC001 can be the nucleus equipment of wireless network under the application scenarios, for managing the wireless network In all wireless aps (management operation include:Issue configuration, modification relevant configured parameter, radio-frequency intelligent management, access safety control System etc.), direct communication directly be present with internet 005 and be connected;It can be wireless router or switched wireless that wireless aps 002, which are, Machine, for for using wireless device (such as:The wireless devices such as mobile phone, tablet personal computer, notebook computer) user provide enter have The access point of gauze network, between interchanger 004 direct communication be present is connected;NAT device 003 can be that operational network address turns The server of agreement is changed, one end has direct communication with interchanger 004 and is connected, and the other end has direct communication with internet 005 Connection.
Further, wireless AC001 passes through between the communication connection between each equipment in the system, with each wireless aps 002 In the presence of based on CAPWAP (Control And Provisioning of Wireless Access Points Protocol Specification, WAP control and configuration protocol) tunnel connection, wireless AC001 can pass through CAPWAP tunnel control Each wireless aps 002 are made, and can also realize that the data between wireless AC001 and each wireless aps 002 are led to by each CAPWAP tunnel Letter.
Fig. 2 is a kind of structural representation of message forwarding system provided in an embodiment of the present invention.Referring to Fig. 2, message forwarding Wireless AC001 in system includes:Upper-layer service program 0011, CAPWAP proxy modules 0012 and CAPWAP modules 0013; Wireless aps 002 include:Upper-layer service program 0021, CAPWAP proxy modules 0022 and CAPWAP modules 0023.Wherein, wirelessly CAPWAP proxy modules 0012 in AC001 are used to realize data between upper-layer service program 0011 and CAPWAP modules 0013 Transmission;CAPWAP proxy modules 0022 in wireless aps 002 are used to realize data in upper-layer service program 0021 and CAPWAP Transmission between module 0023;CAPWAP modules 0013 in wireless AC001 and the CAPWAP modules 0023 in wireless aps 002 are logical Cross CAPWAP tunnel exist communication connection, the CAPWAP tunnel by the NAT device 003 in message forwarding system, interchanger 004 with And the grade of internet 005 is realized jointly.
Embodiments of the invention provide a kind of message forwarding method, and this method can apply to the forwarding of message shown in Fig. 1 system Wireless AC in system, as shown in figure 3, this method includes:
S101, wireless AC obtain Target Wireless AP index information, are distributed for Target Wireless AP corresponding with index information Available port number, and establish local socket (Socket) interface according to port numbers.
S102, upper-layer service program business datum to be sent is obtained by local sockets interface.
S103, according to index information, it is determined that target CAPWAP tunnel corresponding with Target Wireless AP, and business datum is sealed The preset field in message is controlled mounted in target CAPWAP tunnel.
Under a kind of implementation, wireless AC can be in business datum to be encapsulated in target CAPWAP tunnel control message Preset field before, in preset field set preset data identify.
Wherein, the preset data identifies carries the data for needing to transmit for indicating to control in message.
S104, by target CAPWAP tunnel to Target Wireless AP send encapsulation after control message, so as to Target Wireless Deblocking obtains business datum after AP receives control message.
Under a kind of implementation, wireless AC can also receive business datum in Target Wireless AP, and pass through target CAPWAP tunnel is sent in after the control message that preset field encapsulates response data to wireless AC feedbacks:
Control message is received by target CAPWAP tunnel;
Deblocking control message, obtains the response data for being encapsulated in preset field in control message, and pass through local Socket Response data is forwarded to upper-layer service program by interface.
The present invention provides a kind of message forwarding method, and wireless AC is obtaining corresponding upper-layer service by local Socket interfaces The business datum of program, and then business datum is encapsulated in CAPWAP tunnel control message and is transmitted, so as to Target Wireless AP is receiving the control message and is unsealing acquisition business datum.So, by using the CAPWAP between wireless AC and wireless aps Tunnel carries out the transmission of upper-layer protocol message, avoids by the operation that port mapping relationship is transmitted is pre-configured with, can Effectively perform between wireless AC and wireless aps protocol massages transmission, solve because port mapping relationship failure cause wireless AC with Wireless aps carry out the problem of stability is poor, and reliability is relatively low during upper-layer protocol interaction.
Embodiments of the invention also provide a kind of message forwarding method, and this method can apply to the forwarding of message shown in Fig. 1 Wireless aps in system, as shown in figure 4, this method includes:
S201, wireless aps are that local sockets interface distributes available port number, and establish local socket according to port numbers Interface.
S202, receive control message.
Wherein, this control message for wireless AC after preset field encapsulates business datum, by corresponding with wireless aps Target CAPWAP tunnel is sent to wireless aps.
S203, deblocking control message, obtain the business datum for being encapsulated in preset field in control message, and pass through local set Connect word interface and business datum is forwarded to upper-layer service program.
Under a kind of implementation, business datum can also be forwarded to upper strata by wireless aps by local Socket interfaces After business procedure:
The response data of upper-layer service program transmission to be feedback is obtained by local Socket interfaces;
Response data is encapsulated in the preset field in target CAPWAP tunnel control message;
Control message after encapsulation is sent to wireless AC by target CAPWAP tunnel, so that wireless AC receives control report Deblocking obtains response data after text.
Under another implementation, further, response data can be encapsulated in target CAPWAP tunnels by wireless aps Before preset field in road control message, preset data is set to identify in preset field.
Wherein, the preset data identifies carries the data for needing to transmit for indicating to control in message.
The present invention provides a kind of message forwarding method, the control that wireless aps are transmitted in the wireless AC of reception by CAPWAP tunnel Message and after unsealing and obtaining business datum, corresponding upper-layer service program is transmitted to by local Socket interfaces by business datum. So, the transmission of upper-layer protocol message is carried out by using the CAPWAP tunnel between wireless AC and wireless aps, avoids dependence The operation that port mapping relationship is transmitted is pre-configured with, the protocol massages that can effectively perform between wireless AC and wireless aps pass It is defeated, solve because stability is poor when port mapping relationship failure causes wireless AC and wireless aps the progress upper-layer protocol to interact, reliably The problem of property is relatively low.
In order that those skilled in the art can be more clearly understood that technical scheme provided in an embodiment of the present invention, below base In message forwarding system shown in Fig. 1, by specific embodiment, to another message forwarding method provided in an embodiment of the present invention It is described in detail, as shown in figure 5, this method includes:
S301, perform initialization operation.
Specifically, wireless AC and Target Wireless AP carries out initialization operation respectively, the machine Socket connections of itself are established, Upper-layer service program is waited to perform data transfer operation.
Wherein, Target Wireless AP is any in multiple wireless aps that CAPWAP tunnel is connected with above-mentioned wireless AC be present It is individual.
On the one hand, exemplary, wireless AC CAPWAP modules obtain Target Wireless AP index information, and this is indexed Information is sent to CAPWAP proxy modules, is that Target Wireless AP distribution one is corresponding with the index information by CAPWAP proxy modules Available port number.
Further, wireless AC CAPWAP proxy modules establish local Socket interfaces according to the port numbers of distribution, Realize the monitoring to the port.
Wherein, wireless AC CAPWAP modules can be somebody's turn to do by the CAPWAP tunnel acquisition of information being connected with Target Wireless AP Target Wireless AP index information, the index information include Target Wireless AP identification information (such as identification number, title etc.). CAPWAP proxy modules can believe the port numbers and the Target Wireless AP index after for Target Wireless AP assignment of port numbers Breath is recorded in default corresponding table, and the default corresponding table is index information and the distribution for being used to record each wireless aps in wireless AC The tables of data of corresponding relation between each port numbers.
On the other hand, exemplary, Target Wireless AP CAWAP modules instruction CAPWAP proxy modules use default port Number local Socket interfaces are established, realize the monitoring to the port.
Wherein, default port numbers can be to establish local Socket interfaces with above-mentioned wireless AC to use port numbers identical end Slogan, obtained by Target Wireless AP CAWAP modules by the CAPWAP tunnel between wireless AC from wireless AC sides;Or Can also be the port numbers that system default is set or outside input is given, specific selection mode includes but is not limited to this, herein Do not limit.
The business datum that S302, wireless AC perform upper-layer service program is sent.
Specifically, when monitor determination upper-layer service program transmission data to local Socket interfaces, pass through local Socket interfaces obtain upper-layer service program business datum to be sent, and according to index information, it is determined that with AP pairs of Target Wireless The target CAPWAP tunnel answered, business datum is encapsulated in the preset field in target CAPWAP tunnel control message, Jin Ertong Cross the target CAPWAP tunnel and the control message after encapsulation is sent to Target Wireless AP.
Wherein, target CAPWAP tunnel is the CAPWAP tunnel between wireless AC and Target Wireless AP.
It is exemplary, when wireless AC upper-layer service program sends business datum, wireless AC according to the target specified without Line AP, Target Wireless AP port numbers are distributed to by the way that inquiry acquisition is above-mentioned, and then connect port corresponding to the port numbers.Its In, inquiry acquisition can include:Obtained using the mode of same command line, or inquired about and obtained by user's peripheral operation, and it is above-mentioned The acquisition modes enumerated are exemplary only, include but is not limited to.
Further, CAPWAP proxy modules are by the above-mentioned local Socket interfaces of foundation, by above-mentioned upper-layer service journey The business datum of sequence is forwarded to CAPWAP modules.
In the present embodiment, upper-layer service program is by taking remote terminal (Telnet) agreement as an example.Telnet agreements are TCP/ A member in IP agreement race, it is the standard agreement and major way of Internet telnet services.Assuming that above-mentioned distribute to mesh The port numbers for marking wireless aps are 8899, then upper-layer service program can perform order by using Telnet:“telnet 127.0.0.18899 " mode connect CAPWAP proxy modules monitoring the port.And in actual applications, due to applied field The difference of scape and the difference of upper-layer service procedural agreement, the mode of connection CAPWAP proxy module listening ports there may be one Determine difference, do not limit herein.
Further, wireless AC CAPWAP proxy modules are after the connection request of mentioned order is received, by upper strata industry The business datum for program of being engaged in and Target Wireless AP index information are sent to CAPWAP modules by local Socket interfaces.
CAPWAP modules after the index information of the business datum of upper-layer service program and Target Wireless AP is received, by It is connected in a plurality of different CAPWAP tunnel on wireless AC simultaneously be present with corresponding different radio AP, it is necessary to be believed according to the index Breath, it is determined that target CAPWAP tunnel corresponding with above-mentioned Target Wireless AP.
It is worth mentioning, because the foundation of CAPWAP tunnel between wireless AC and each wireless aps is dynamic, if a certain The IP address of individual wireless aps changes, and can re-establish corresponding CAPWAP tunnel, but rope corresponding with the CAPWAP tunnel Fuse breath is no variation in, thus is eliminated in original port mapping scheme and to be caused because the IP address of wireless aps changes Port mapping failure the problem of.
And then above-mentioned business datum is encapsulated in the preset field in target CAPWAP tunnel control message.Wherein, CAPWAP tunnel control message format as shown in fig. 6, including:MAC (Medium/MediaAccess Control, medium access Control) address field, IP address field, UDP (User Datagram Protocol, User Datagram Protocol), CAPWAP heads Field and FCS (Frame Check Sequence, frame check sequence) field, in addition to the self-defined load of optional manufacturer (Vendor Specific Payload) field.Above-mentioned preset field can think Vendor Specific therein Payload fields, the Vendor Specific Payload fields are defined in CAPWAP agreements, in the control that CAPWAP writes Can be by the customized field of manufacturer in message processed.
It is worth mentioning, above-mentioned business datum is being encapsulated to the predetermined word in controlling message to above-mentioned target CAPWAP tunnel Before section, it is also necessary to preset data mark is added in the preset field, the preset data is identified for indicating in control message The data for needing to transmit are carried, can be the specific sub- ID values of Vendor Specific Payload, so as to Target Wireless AP Reception is identified.
Further, wireless AC CAPWAP modules are after the encapsulation to above-mentioned business datum is completed, by above-mentioned Target CAPWAP tunnel corresponding with Target Wireless AP sends the control message after encapsulation.
S303, Target Wireless AP perform the reception to business datum.
Specifically, being sent in preset field to Target Wireless AP by target CAPWAP tunnel in wireless AC encapsulates business After the control message of data, Target Wireless AP receives the control message, and then unseals acquisition and be encapsulated in the control message in advance If the business datum of field, and business datum is forwarded to by upper-layer service program by local Socket interfaces.
Exemplary, Target Wireless AP CAPWAP modules are receiving what wireless AC was sent by target CAPWAP tunnel After controlling message, the control message is judged:If being identified in the preset field of the control message comprising preset data, Determine to encapsulate the business datum of wireless AC upper-layer services program in the control message.And then Target Wireless AP CAPWAP moulds Block identification control message in business datum after, deblocking obtain the business datum, and by the business datum of acquisition send to CAPWAP proxy modules.
Further, Target Wireless AP CAPWAP proxy modules pass through local after above-mentioned business datum is received Socket interfaces, the business datum is sent to upper-layer service program and handled.
The response data that S304, Target Wireless AP perform upper-layer service program is sent.
Specifically, when upper-layer service program receives business datum and feeds back transmission response data, pass through local Socket interfaces obtain upper-layer service program response data to be sent, and response data is encapsulated in into target CAPWAP tunnel control Preset field in message processed, and then the control message after encapsulation is sent to wireless AC by target CAPWAP tunnel.
Exemplary, Target Wireless AP upper-layer service program passes through local Socket receiving CAPWAP proxy modules After the business datum that interface is sent, the business datum is handled, and feeds back and sends number of responses corresponding with the business datum According to.
Further, Target Wireless AP CAPWAP proxy modules pass through the above-mentioned local according to default port numbers foundation Socket interfaces, the response data of above-mentioned upper-layer service program is forwarded to CAPWAP modules.
Target Wireless AP CAPWAP modules seal the response data after the response data of upper-layer service program is received The preset field in message is controlled mounted in target CAPWAP tunnel, and the control after encapsulation is sent by above-mentioned target CAPWAP tunnel Message processed.
It is worth mentioning, above-mentioned response data is being encapsulated to the predetermined word in controlling message to above-mentioned target CAPWAP tunnel Before section, it is also necessary to preset data mark is added in the preset field, so that reception is identified in wireless AC.
S305, wireless AC perform the reception to response data.
Specifically, receiving business datum in Target Wireless AP, and fed back and sent out to wireless AC by target CAPWAP tunnel Send after preset field encapsulates the control message of response data, wireless AC receives control report by target CAPWAP tunnel Text, and then control message is unsealed, the response data for being encapsulated in preset field in control message is obtained, and connect by local Socket Response data is forwarded to upper-layer service program by mouth.
Exemplary, wireless AC CAPWAP modules are receiving Target Wireless AP transmissions by target CAPWAP tunnel After controlling message, the control message is judged:If being identified in the preset field of the control message comprising preset data, Determine to encapsulate the response data of Target Wireless AP upper-layer service programs in the control message.And then wireless AC CAPWAP moulds Block identification control message in response data after, deblocking obtain the response data, and by the response data of acquisition send to CAPWAP proxy modules.
Further, wireless AC CAPWAP proxy modules are connect after above-mentioned response data is received by local Socket Mouthful, the response data is sent to upper-layer service program and handled, completes whole service interaction process.
The present invention provides a kind of message forwarding method, and wireless AC is obtaining corresponding upper-layer service by local Socket interfaces After the business datum of program, business datum is encapsulated in CAPWAP tunnel control message and is transmitted, and then wireless aps are connecing After receiving the control message and unsealing acquisition business datum, business datum is transmitted to by corresponding upper strata industry by local Socket interfaces Business program.So, the transmission of upper-layer protocol message is carried out by using the CAPWAP tunnel between wireless AC and wireless aps, is avoided The IP address of wireless aps changes so that be pre-configured with port mapping relationship failure in the prior art, cause message interaction without The problem of method is carried out.Therefore, the present invention can effectively perform the agreement report between wireless AC and wireless aps relative to prior art Text transmission, solve because stability is poor when port mapping relationship failure causes wireless AC and wireless aps the progress upper-layer protocol to interact, The problem of reliability is relatively low.
The embodiment of the present invention provides a kind of Radio Access Controller (AC) 01, and this is wireless, and AC01 is used to implement implementation of the present invention A kind of routing capacity method of testing that example provides, can be the wireless AC in test system as shown in Figure 1, or Fig. 1 institutes Show the One function module in wireless AC, as shown in fig. 7, the wireless AC01 includes:
Initialization unit 011, for obtaining Target Wireless AP index information, for Target Wireless AP distribution and index information Corresponding available port number, and establish local Socket interfaces according to port numbers.
Acquiring unit 012, for obtaining upper-layer service program business datum to be sent by local Socket interfaces.
Encapsulation unit 013, for according to index information, it is determined that target CAPWAP tunnel corresponding with Target Wireless AP, and Business datum is encapsulated in the preset field in target CAPWAP tunnel control message.
Transmitting element 014, for sending the control message after encapsulation to Target Wireless AP by target CAPWAP tunnel, with Just deblocking obtains business datum after Target Wireless AP receives control message.
It should be noted that wherein dashed connection line represents can possess annexation between unit in figure, can not also have Standby direct annexation, for example can not directly be interacted between initialization unit 011 and acquiring unit 012, initialize Unit 011 can notify acquiring unit 012 after initialization operation is completed, and can also not notify, unification is carried out by equipment Regulation and control.
Optionally, as shown in figure 8, the wireless AC01 can also include:
Receiving unit 015, for receiving business datum in Target Wireless AP, and by target CAPWAP tunnel to wireless AC feedbacks are sent in after the control message that preset field encapsulates response data, and control report is received by target CAPWAP tunnel Text;
Unit 016 is unsealed, message is controlled for unsealing, obtains the response data for being encapsulated in preset field in control message, And response data is forwarded to by upper-layer service program by local Socket interfaces.
Optionally, encapsulation unit 013 can be also used for:
Before the preset field being encapsulated in business datum in target CAPWAP tunnel control message, in preset field Preset data is set to identify, preset data identifies carries the data for needing to transmit for indicating to control in message.
The present invention provides a kind of Radio Access Controller, and corresponding upper-layer service journey is obtained by using local Socket interfaces The business datum of sequence, and then business datum is encapsulated in CAPWAP tunnel control message and is transmitted, so as to Target Wireless AP Receive the control message and unseal acquisition business datum.So, by using the CAPWAP tunnels between wireless AC and wireless aps Road carries out the transmission of upper-layer protocol message, avoids dependence and is pre-configured with the operation that port mapping relationship is transmitted, Neng Gouyou The protocol massages that effect is performed between wireless AC and wireless aps transmit, and solve because port mapping relationship failure causes wireless AC and nothing Line AP carries out the problem of stability is poor, and reliability is relatively low during upper-layer protocol interaction.
The embodiment of the present invention also provides a kind of WAP (AP) 02, and the wireless aps 02 are used to implement the embodiment of the present invention A kind of routing capacity method of testing provided, can be any one in the wireless aps in test system as shown in Figure 1, can also For the One function module in any one wireless aps shown in Fig. 1, as shown in figure 9, the wireless aps 02 include:
Initialization unit 021, for for local Socket interface assignments available port number, and established according to port numbers local Socket interfaces.
Receiving unit 022, message is controlled for receiving.
Wherein, it is wireless AC after preset field encapsulates business datum that this, which controls message, by with AP pairs of Target Wireless What the target CAPWAP tunnel answered was sent to Target Wireless AP.
Unit 023 is unsealed, message is controlled for unsealing, obtains the business datum for being encapsulated in preset field in control message, And business datum is forwarded to by upper-layer service program by local Socket interfaces.
Optionally, as shown in Figure 10, the wireless aps 02 can also include:
Acquiring unit 024, for after business datum is forwarded into upper-layer service program by local Socket interfaces, The response data of upper-layer service program transmission to be feedback is obtained by local Socket interfaces;
Encapsulation unit 025, for the preset field being encapsulated in response data in target CAPWAP tunnel control message;
Transmitting element 026, for sending the control message after encapsulation to wireless AC by target CAPWAP tunnel, so as to nothing Deblocking obtains response data after line AC receives control message.
Optionally, encapsulation unit 025 can be also used for:
Before the preset field being encapsulated in response data in target CAPWAP tunnel control message, in preset field Preset data is set to identify, preset data identifies carries the data for needing to transmit for indicating to control in message.
The present invention provides a kind of WAP, and the control message transmitted via CAPWAP tunnel by receiving wireless AC is simultaneously After deblocking obtains business datum, business datum is transmitted to by corresponding upper-layer service program by local Socket interfaces.So, lead to The CAPWAP tunnel crossed between the wireless AC of use and wireless aps carries out the transmission of upper-layer protocol message, avoids dependence and is pre-configured with The operation that port mapping relationship is transmitted, the protocol massages transmission between wireless AC and wireless aps can be effectively performed, is solved Stability is poor when causing the wireless AC to be interacted with wireless aps progress upper-layer protocol because of port mapping relationship failure, and reliability is relatively low Problem.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, apparatus embodiments described above are only schematical, for example, the unit Division, only a kind of division of logic function, can there is other dividing mode, such as multiple units or component when actually realizing Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.
In addition, in equipment and system in each embodiment of the present invention, each functional unit can be integrated in a processing In unit or the independent physics of unit includes, can also two or more units it is integrated in a unit. And above-mentioned each unit can both be realized in the form of hardware, hardware can also be used to add the form of SFU software functional unit real It is existing.
Realizing all or part of step of above method embodiment can be completed by the related hardware of programmed instruction, preceding The program stated can be stored in a computer read/write memory medium, and upon execution, execution includes above method reality to the program The step of applying;And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM (Read Only Memory, read-only storage Device), RAM (Random Access Memory, random access memory), magnetic disc or CD etc. are various can be with storage program generation The medium of code.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (13)

  1. A kind of 1. message forwarding method, it is characterised in that including:
    Radio Access Controller AC obtains target wireless access points AP index information, and end can be used for Target Wireless AP distribution Slogan, by the available port number and the Target Wireless AP index information corresponding record in default corresponding table, and according to The port numbers establish local socket Socket interfaces;
    Upper-layer service program business datum to be sent is obtained by the local Socket interfaces;
    According to the index information, it is determined that target wireless access points corresponding with Target Wireless AP control and configuration protocol CAPWAP tunnel, and the business datum is encapsulated in the preset field in the target CAPWAP tunnel control message;
    By the target CAPWAP tunnel to the Target Wireless AP send encapsulation after control message, so as to the target without Deblocking obtains the business datum after line AP receives the control message.
  2. 2. according to the method for claim 1, it is characterised in that the business datum is received in the Target Wireless AP, And the control report for being sent in preset field and encapsulating response data is fed back to the wireless AC by the target CAPWAP tunnel After text, in addition to:
    The control message is received by the target CAPWAP tunnel;
    The control message is unsealed, obtains the response data for being encapsulated in preset field in the control message, and pass through institute State local Socket interfaces and the response data is forwarded to the upper-layer service program.
  3. 3. according to the method for claim 1, it is characterised in that the business datum is encapsulated in the target described Before preset field in CAPWAP tunnel control message, in addition to:
    Preset data is set to identify in the preset field, the preset data is identified for indicating to take in the control message With the data for needing to transmit.
  4. A kind of 4. message forwarding method, it is characterised in that including:
    Wireless access point AP is local socket Socket interface assignment available ports number, and according to being established the port numbers Local Socket interfaces;
    Control message is received, it is described to control message to be connect for Radio Access Controller AC in the local Socket by the wireless AC Mouth obtains upper-layer service program business datum to be sent, is determined and the wireless aps pair according to the index information of the wireless aps The target wireless access points control answered and configuration protocol CAPWAP tunnel, and the business datum is encapsulated in the target After preset field in CAPWAP tunnel control message, sent by the target CAPWAP tunnel to the wireless aps;Its In, the local Socket interfaces of the wireless AC obtain the index information of the wireless aps for the wireless AC, are described wireless AP distributes available port number, by the index information corresponding record of the available port number and the wireless aps in default corresponding table In, established according to the available port number;
    The control message is unsealed, obtains the business datum for being encapsulated in preset field in the control message, and pass through institute State local Socket interfaces and the business datum is forwarded to upper-layer service program.
  5. 5. according to the method for claim 4, it is characterised in that it is described by the local Socket interfaces by the industry After data forwarding to upper-layer service program of being engaged in, in addition to:
    The response data of upper-layer service program transmission to be feedback is obtained by the local Socket interfaces;
    The response data is encapsulated in the preset field in the target CAPWAP tunnel control message;
    Control message after encapsulation is sent to the wireless AC by the target CAPWAP tunnel, so that the wireless AC is received Deblocking obtains the response data after to the control message.
  6. 6. according to the method for claim 5, it is characterised in that the response data is encapsulated in the target described Before preset field in CAPWAP tunnel control message, in addition to:
    Preset data is set to identify in the preset field, the preset data is identified for indicating to take in the control message With the data for needing to transmit.
  7. A kind of 7. Radio Access Controller, it is characterised in that including:
    Initialization unit, for obtaining target wireless access points AP index information, end can be used for Target Wireless AP distribution Slogan, by the available port number and the Target Wireless AP index information corresponding record in default corresponding table, and according to The port numbers establish local socket Socket interfaces;
    Acquiring unit, for obtaining upper-layer service program business datum to be sent by the local Socket interfaces;
    Encapsulation unit, for according to the index information, it is determined that target wireless access points control corresponding with the Target Wireless AP System and configuration protocol CAPWAP tunnel, and the business datum is encapsulated in pre- in target CAPWAP tunnel control message If field;
    Transmitting element, for sending the control message after encapsulation to the Target Wireless AP by the target CAPWAP tunnel, Deblocking obtains the business datum after receiving the control message so as to the Target Wireless AP.
  8. 8. Radio Access Controller according to claim 7, it is characterised in that also include:
    Receiving unit, for receiving the business datum in the Target Wireless AP, and pass through the target CAPWAP tunnel After being sent in the control message that preset field encapsulates response data to Radio Access Controller AC feedbacks, by described Target CAPWAP tunnel receives the control message;
    Unit is unsealed, for unsealing the control message, obtains the response for being encapsulated in preset field in the control message Data, and the response data is forwarded to by the upper-layer service program by the local Socket interfaces.
  9. 9. Radio Access Controller according to claim 7, it is characterised in that the encapsulation unit is used for:
    Before the preset field being encapsulated in the business datum in the target CAPWAP tunnel control message, in institute Stating in preset field sets preset data to identify, and the preset data is identified for indicating to carry needs in the control message The data of transmission.
  10. A kind of 10. WAP, it is characterised in that including:
    Initialization unit, for for local socket Socket interface assignment available ports number, and established according to the port numbers The local Socket interfaces;
    Receiving unit, for receive control message, it is described control message be Radio Access Controller AC by the wireless AC Local Socket interfaces obtain upper-layer service program business datum to be sent, determined according to the index information of the wireless aps Target wireless access points control corresponding with the wireless aps and configuration protocol CAPWAP tunnel, and the business datum is encapsulated After the preset field during the target CAPWAP tunnel controls message, by the target CAPWAP tunnel to the wireless aps Send;Wherein, the local Socket interfaces of the wireless AC obtain the index information of the wireless aps for the wireless AC, are The wireless aps distribute available port number, and the available port number and the index information corresponding record of the wireless aps are being preset In corresponding table, established according to the available port number;
    Unit is unsealed, for unsealing the control message, obtains the business for being encapsulated in preset field in the control message Data, and the business datum is forwarded to by upper-layer service program by the local Socket interfaces.
  11. 11. WAP according to claim 10, it is characterised in that also include:
    Acquiring unit, for the business datum to be forwarded into upper-layer service program by the local Socket interfaces described Afterwards, the response data of upper-layer service program transmission to be feedback is obtained by the local Socket interfaces;
    Encapsulation unit, for the preset field being encapsulated in the response data in the target CAPWAP tunnel control message;
    Transmitting element, for sending the control message after encapsulation to the wireless AC by the target CAPWAP tunnel, so as to Deblocking obtains the response data after the wireless AC receives the control message.
  12. 12. WAP according to claim 11, it is characterised in that the encapsulation unit is used for:
    Before the preset field being encapsulated in the response data in the target CAPWAP tunnel control message, in institute Stating in preset field sets preset data to identify, and the preset data is identified for indicating to carry needs in the control message The data of transmission.
  13. A kind of 13. message forwarding system, it is characterised in that including:
    Network address translation device, a Radio Access Controller as described in claim 7 to 9 any one claim AC, at least one wireless access point AP as described in claim 10 to 12 any one claim;
    The wireless AC is located at the both ends of the NAT device with each wireless aps respectively, the wireless AC and each wireless aps it Between by WAP control and configuration protocol CAPWAP tunnel communicated.
CN201410787317.4A 2014-12-17 2014-12-17 A kind of message forwarding method, device and system Active CN104519061B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410787317.4A CN104519061B (en) 2014-12-17 2014-12-17 A kind of message forwarding method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410787317.4A CN104519061B (en) 2014-12-17 2014-12-17 A kind of message forwarding method, device and system

Publications (2)

Publication Number Publication Date
CN104519061A CN104519061A (en) 2015-04-15
CN104519061B true CN104519061B (en) 2018-03-06

Family

ID=52793783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410787317.4A Active CN104519061B (en) 2014-12-17 2014-12-17 A kind of message forwarding method, device and system

Country Status (1)

Country Link
CN (1) CN104519061B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105007260B (en) * 2015-05-28 2018-03-13 武汉虹信通信技术有限责任公司 A kind of Wi Fi signal extension system and methods based on ICP/IP protocol transformation
CN105611529B (en) * 2015-12-31 2019-05-03 盛科网络(苏州)有限公司 The chip implementing method of CAPWAP DTLS message encryption and decryption
CN105791003A (en) * 2016-02-18 2016-07-20 杭州敦崇科技股份有限公司 Distributed AP remote troubleshooting method
US10645059B2 (en) * 2016-04-11 2020-05-05 Western Digital Technologies, Inc. Establishing connections between data storage devices
CN109413695A (en) * 2018-11-30 2019-03-01 锐捷网络股份有限公司 The network quality support method and device of wireless network

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547850A (en) * 2012-02-22 2012-07-04 深圳市共进电子股份有限公司 Method for realizing CAPWAP (Control and Provisioning of Wireless Access Points) tunnel
CN102868647A (en) * 2012-09-26 2013-01-09 大唐移动通信设备有限公司 Data processing method and device based on Linux network core

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547850A (en) * 2012-02-22 2012-07-04 深圳市共进电子股份有限公司 Method for realizing CAPWAP (Control and Provisioning of Wireless Access Points) tunnel
CN102868647A (en) * 2012-09-26 2013-01-09 大唐移动通信设备有限公司 Data processing method and device based on Linux network core

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
socket通讯原理以及tcp、ip三次握手机制分析;zhshujun;《Chinaunix》;20111201;全文 *

Also Published As

Publication number Publication date
CN104519061A (en) 2015-04-15

Similar Documents

Publication Publication Date Title
CN104519061B (en) A kind of message forwarding method, device and system
CN106453678B (en) IP address configuration method and system
US20170295503A1 (en) Network connectivity for constrained wireless sensor nodes
CN102447748B (en) Method, equipment and system for allocating outer Internet protocol IP addresses during network address translation (NAT)
CN102761440B (en) Method for establishing channel for managing IPv4 terminal and network gateway
US7502866B2 (en) Method for configuring a base station in a telecommunication network
CN104320502B (en) Terminating gateway IP address distribution method, the method for data transfer, MME and system
CN111918237B (en) Communication method and device
CN104144096A (en) Virtual network layer construction method, device and system
CN104243427A (en) Virtual machine online migration method and data package transmission method and device
CN104993979A (en) Network connection monitoring method, terminal equipment and communication system
CN112333019A (en) Router configuration and test method and system and readable storage medium
JP2008035075A (en) Communicating system, connection device for communication equipment and network router
CN1333559C (en) Method for building special operational maintaining channel in WCDMA system
CN100518126C (en) Method for configuring GRE tunnel and router
CN103281295B (en) Realize the system and method for multiple terminal parallel upgrades in same IP LAN
CN103401954B (en) The implementation method of virtual DHCP
JP2013543307A (en) Control method, apparatus, and system
CN111464666B (en) Communication method, communication device, storage medium and processor
CN105827496A (en) Method and apparatus for managing PE device
CN106302845A (en) The Domain Name System addresses collocation method of data channel product and device
CN110784391B (en) Method, device, storage medium and terminal for communication between small base station and gateway
CN107810647A (en) Interactive sessions are established between service client and RAN
CN110430478B (en) Networking communication method, device, terminal equipment and storage medium
US20150249616A1 (en) Apparatus and method for supporting multi-host access

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant