CN105471768B - CAPWAP message transmission method and the network switch - Google Patents
CAPWAP message transmission method and the network switch Download PDFInfo
- Publication number
- CN105471768B CN105471768B CN201410425959.XA CN201410425959A CN105471768B CN 105471768 B CN105471768 B CN 105471768B CN 201410425959 A CN201410425959 A CN 201410425959A CN 105471768 B CN105471768 B CN 105471768B
- Authority
- CN
- China
- Prior art keywords
- message
- cable card
- card board
- capwap
- network switch
- 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
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention relates to fields of communication technology, disclose a kind of CAPWAP message transmission method and the network switch, in this scenario, after there is no the cable card board of CAPWAP tunnel processing capacity to receive CAPWAP message, CAPWAP message can be sent to the cable card board with CAPWAP tunnel processing capacity, therefore, it solves the problems, such as that the cable card board of no CAPWAP tunnel processing capacity can not be handled CAPWAP message, improves the flexibility of transmission CAPWAP message.
Description
Technical field
The present invention relates to fields of communication technology, more particularly to wireless access point control and offer (English:Control And
Provisioning of Wireless Access Points, abbreviation:CAPWAP) message transmitting method and the network switch.
Background technology
WLAN (English:Wireless local area network, abbreviation:WLAN) include wireless terminal
Point (English:Wireless Termination Point, abbreviation:WTP) and access controller is (English:Access
Controller, abbreviation:AC), wherein AC is for being controlled and being managed to the WTP in WLAN.
The pass-through mode of the message of WTP is divided into tunnel forwarding (also known as " concentrating forwarding ") and directly forwarding (also known as " this
Ground forwards ").Wherein, it when tunnel forwarding refers to that WTP E-Packets, first to be forwarded the packet to AC by CAPWAP tunnel, then by
AC forwards the message.When the pass-through mode of the message of WTP is that tunnel forwards, as shown in Figure 1, website (English:Station, contracting
It writes:STA after message) reaches WTP, WTP is encapsulated after the message obtains CAPWAP message, is sent to AC.Then AC is decapsulated
CAPWAP message forwards the original message again after obtaining the original message of STA.STA is that have to wireless medium (English:
Wireless medium, abbreviation:WM the equipment of interface).STA can be wireless terminal, e.g. kneetop computer (English:
Laptop computer), tablet computer (English:Tablet computer), mobile phone etc..
One AC may manage multiple WTP, and have a CAPWAP tunnel between each WTP and AC, and AC is received
After the message that STA is sent by CAPWAP tunnel, the address of the STA and the CAPWAP tunnel list item in the tunnel can be stored
Mapping relations, CAPWAP tunnel list item include:The IP address of WTP, WTP are used for for the port numbers of CAPWAP tunnel, AC
The port numbers of CAPWAP tunnel.AC is received from internet (English:The message is sent to this by message Internet)
When STA, CAPWAP tunnel list item is found according to the mapping of the address of the STA and CAPWAP tunnel list item, then with finding
CAPWAP tunnel list item encapsulates the message from Internet, then sends.
Currently, the carrying AC function usually on the network switch.There are multiple cable card boards on the network switch, this multiple line
Some cable card boards of snap-gauge are the cable card boards for having CAPWAP tunnel processing capacity, some cable card boards are a lack of at CAPWAP tunnel
The cable card board of reason ability.After the message received is encapsulated as CAPWAP message by WTP, CAPWAP message, which is sent to, to be had
The cable card board of CAPWAP tunnel processing capacity, after the cable card board with CAPWAP tunnel processing capacity handles the CAPWAP message,
Message after forwarding decapsulation.CAPWAP message can not be handled by lacking the cable card board of CAPWAP tunnel processing capacity, because
This, there are the lower defects of flexibility for current CAPWAP message transmission method.
In conclusion at present due to do not have the cable card board of CAPWAP tunnel processing capacity can not be to CAPWAP message at
Reason, accordingly, there exist the lower defects of flexibility.
Invention content
A kind of CAPWAP message transmission method of offer of the embodiment of the present invention and the network switch, to solve transmitting at present
The existing lower defect of flexibility during CAPWAP message.
Specific technical solution provided in an embodiment of the present invention is as follows:
In a first aspect, a kind of control of wireless access point is provided and CAPWAP message transmission method is provided, including:
First cable card board of the network switch receives the first message from wireless terminal point WTP, wherein the First Line
Snap-gauge is first kind cable card board, and the first kind cable card board is the cable card board for lacking CAPWAP tunnel processing capacity;
First cable card board determines that first message from WTP is CAPWAP message;
First message is sent to the second cable card board of the network switch by first cable card board, wherein institute
It is Second Type cable card board to state the second cable card board, and the Second Type cable card board is the line card with CAPWAP tunnel processing capacity
Plate.
With reference to first aspect, in the first possible realization method of first aspect, first cable card board will be described
First message is sent to second cable card board, including:
First cable card board is according to first cable card board to the mapping of second cable card board, by first message
It is sent to second cable card board;Or
First cable card board is according to the address of WTP described in first message and the address of the WTP described in
First message is sent to second cable card board by the mapping of the second cable card board.
With reference to first aspect or the first possible realization method of first aspect, second in first aspect can
In the realization method of energy, after first message is sent to second cable card board by first cable card board, further include:
Second cable card board obtains the corresponding CAPWAP tunnel list item of first message, the CAPWAP tunnel list item
The address of the WTP in CAPWAP message head including first message, the CAPWAP message head of first message
Source port number and destination slogan;
Second cable card board decapsulates first message, obtains the source address of the first message after decapsulation;
Second cable card board records the source address of the CAPWAP tunnel list item and the first message after the decapsulation
Mapping.
Second of possible realization method with reference to first aspect, in the third possible realization method of first aspect
In, second cable card board records the mapping of the CAPWAP tunnel list item and the source address of the first message after the decapsulation
Later, further include:
The network switch by second cable card board mark with the decapsulation after the first message source address
Mapping, be recorded in all first kind cable card boards of the network switch.
Second with reference to first aspect or the third possible realization method, in the 4th kind of possible reality of first aspect
In existing mode, second cable card board records the source address of the CAPWAP tunnel list item and the first message after the decapsulation
Mapping after, further include:
The network switch is by the source address of the first message after the CAPWAP tunnel list item and the decapsulation
Mapping, all Second Type cable card boards being synchronized to outside second cable card board of the network switch.
Third with reference to first aspect or the 4th kind of possible realization method, in the 5th kind of possible reality of first aspect
In existing mode, the method further includes:
The third cable card board of the network switch receives the second message, and the third cable card board is first kind line card
The destination address of plate, second message is identical with the source address of the first message after the decapsulation;
The third cable card board is according to the destination address of second message and mark and the institute of second cable card board
The mapping for stating the source address of the first message after decapsulation, second cable card board is sent to by second message;
Second cable card board according to the destination address of second message and the CAPWAP tunnel list item with it is described
The mapping of the source address of the first message after decapsulation obtains the CAPWAP tunnel list item, and according to the CAPWAP tunnel
List item encapsulates second message.
Any one possible realization method in third with reference to first aspect to the 5th kind of possible realization method,
In 6th kind of possible realization method of first aspect, the method further includes:
Second cable card board receives third message, the destination address of the third message and first after the decapsulation
The source address of message is identical;
Second cable card board according to the destination address of the third message and the CAPWAP tunnel list item with it is described
The mapping of the source address of the first message after decapsulation obtains the CAPWAP tunnel list item, and according to the CAPWAP tunnel
List item encapsulates the third message.
Second aspect, provides a kind of network switch, including backboard, the first cable card board and the second cable card board, and described first
Cable card board is connected with second cable card board by the backboard, and first cable card board is first kind cable card board, and described the
One type line snap-gauge is the cable card board for lacking wireless access point control and providing CAPWAP tunnel processing capacity, second line card
Plate is Second Type cable card board, and the Second Type cable card board is the cable card board with CAPWAP tunnel processing capacity, wherein:
First cable card board determines described from WTP's for receiving the first message from wireless terminal point WTP
First message is CAPWAP message, and first message is sent to the second cable card board of the network switch;
Second cable card board, first message sent for receiving first cable card board.
In conjunction with second aspect, in the first possible realization method of second aspect, first cable card board is specifically used
In:
According to first cable card board to the mapping of second cable card board, first message is sent to described second
Cable card board;Or
According to the address of WTP described in first message and address the reflecting to second cable card board of the WTP
It penetrates, first message is sent to second cable card board.
In conjunction with the possible realization method of the first of second aspect or second aspect, second in second aspect can
In the realization method of energy, second cable card board is additionally operable to:
The corresponding CAPWAP tunnel list item of first message is obtained, the CAPWAP tunnel list item includes first report
The address of the WTP in the CAPWAP message head of text, the source port number and purpose of the CAPWAP message head of first message
Port numbers;
First message is decapsulated, the source address of the first message after decapsulation is obtained;
Record the mapping of the CAPWAP tunnel list item and the source address of the first message after the decapsulation.
In conjunction with second of possible realization method of second aspect, in the third possible realization method of second aspect
In, the network switch further includes master control borad, and the master control borad passes through the backboard and first cable card board, described second
Cable card board is connected, wherein:
The master control borad is used to receive the source address of the first message after the decapsulation that second cable card board is sent,
And by the map record of the source address of the first message after the mark of second cable card board and the decapsulation in the network
In all first kind cable card boards of interchanger.
In conjunction with the third possible realization method of second aspect, in the 4th kind of possible realization method of second aspect
In, the network switch includes multiple Second Type cable card boards, and the master control borad is additionally operable to:
Receive the CAPWAP tunnel list item and the first message after the decapsulation that second cable card board is sent
The mapping of source address, and the CAPWAP tunnel list item is synchronous with the mapping of source address of the first message after the decapsulation
All Second Type cable card boards to outside second cable card board of the network switch.
In conjunction with second of possible realization method of second aspect, in the 5th kind of possible realization method of second aspect
In, second cable card board is additionally operable to send second cable card board to all first kind cable card boards of the network switch
Mark with the decapsulation after the first message source address mapping;
All first kind cable card boards of the network switch record the mark of second cable card board and the deblocking
The mapping of the source address of the first message after dress.
In conjunction with the 5th kind of possible realization method of second aspect, in the 6th kind of possible realization method of second aspect
In, the network switch includes multiple Second Type cable card boards, and second cable card board is additionally operable to the CAPWAP tunnel
The mapping of list item and the source address of the first message after the decapsulation is synchronized to second line card of the network switch
All Second Type cable card boards outside plate.
In conjunction with second aspect third to the 6th kind of possible realization method in any one possible realization method,
In 7th kind of possible realization method of second aspect, the network switch further includes third cable card board, the third line card
Plate is connected by the backboard with the master control borad, first cable card board, second cable card board, and the third cable card board is
The destination address of first kind cable card board, second message is identical with the source address of the first message after the decapsulation,
In:
The third cable card board is for receiving the second message, according to the destination address of second message and described second
Second message is sent to described the by the mapping of the mark and the source address of the first message after the decapsulation of cable card board
Two cable card boards;
Second cable card board is additionally operable to:
According to the destination address of second message and the CAPWAP tunnel list item and first after the decapsulation
The mapping of the source address of message, obtains the CAPWAP tunnel list item, and according to CAPWAP tunnel list item encapsulation described the
Two messages.
In conjunction with second aspect third to the 7th kind of possible realization method in any one possible realization method,
In 8th kind of possible realization method of second aspect, second cable card board is additionally operable to:
Receive third message, the source address phase of the destination address and the first message after the decapsulation of the third message
Together;
According to the destination address of the third message and the CAPWAP tunnel list item and the first report after the decapsulation
The mapping of the source address of text obtains the CAPWAP tunnel list item, and encapsulates the third according to the CAPWAP tunnel list item
Message.
The present invention has the beneficial effect that:
Common, CAPWAP message can not be handled by lacking the cable card board of CAPWAP tunnel processing capacity, and accordingly, there exist spirits
The relatively low problem of activity, in the embodiment of the present invention, the first cable card board of the network switch receives the first message from WTP,
In, the first cable card board is first kind cable card board, and first kind cable card board is the cable card board for lacking CAPWAP tunnel processing capacity;
First cable card board determines that the first message from WTP is CAPWAP message;First message is sent to network and handed over by the first cable card board
The second cable card board changed planes, wherein the second cable card board is Second Type cable card board, and Second Type cable card board is with CAPWAP tunnels
The cable card board of road processing capacity determines that the first cable card board of CAPWAP tunnel processing capacity receives CAPWAP in this scenario
After message, CAPWAP message can be sent to the second cable card board, and the second cable card board has CAPWAP tunnel processing capacity, because
This, solves the problems, such as that the cable card board with CAPWAP tunnel processing capacity can not handled CAPWAP message, improve spirit
Activity.
Description of the drawings
Fig. 1 is that tunnel forwards schematic diagram;
Fig. 2A is the structural schematic diagram of the network switch;
Fig. 2 B are the detail flowchart that CAPWAP message is transmitted in the embodiment of the present invention;
Fig. 3 is the embodiment that CAPWAP message is transmitted in the embodiment of the present invention;
Fig. 4 is the entity structure schematic diagram of the network switch in the embodiment of the present invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical solution in the embodiment of the present invention is explicitly described.Based on the embodiments of the present invention, this field
The every other embodiment that those of ordinary skill is obtained without creative efforts, belongs to protection of the present invention
Range.
The preferred embodiment of the present invention is described in detail with reference to the accompanying drawings of the specification, it should be understood that this place
The preferred embodiment of description only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention, and the case where not conflicting
Under, the feature in the embodiment of the present invention and embodiment can be combined with each other.
The structure of the network switch is as shown in Figure 2 A, includes mainly:Master control borad, backboard (English:Backplane), power supply,
Cable card board (English with CAPWAP tunnel processing capacity:Line card board), and lack CAPWAP tunnel processing capacity
Cable card board, wherein:
Master control borad:For the processing of network switch control plane, for example, Routing Protocol the operations such as calculating.Master control borad is general
Including central processing unit (English:Central processing unit, abbreviation:CPU).
Cable card board:For operations such as the processing of network switch data surface, such as message forwarding.Cable card board includes line card core
Piece (English:line card circuit).Line card chip can be network processing unit (English:Network processor, contracting
It writes:NP), application-specific integrated circuit (English:Application-specific integrated circuit, abbreviation:ASIC),
Programmable logic device (English:Programmable logic device, abbreviation:PLD) or combinations thereof.Above-mentioned PLD can be
Complex Programmable Logic Devices (English:Complex programmable logic device, abbreviation:CPLD), scene can compile
Journey logic gate array (English:Field-programmable gate array, abbreviation:FPGA), Universal Array Logic (English:
Generic array logic, abbreviation:GAL) or combinations thereof.
Backboard:For providing the connection between multiple cable card boards, between cable card board and master control borad.
Power supply:For providing electric energy for the network switch.
The preferred embodiment of the present invention is described in detail below in conjunction with the accompanying drawings.
Shown in Fig. 2 B, in the embodiment of the present invention, a kind of detailed process of CAPWAP message transmission is as follows:
Step 200:First cable card board of the network switch receives the first message from WTP, wherein the first cable card board is
First kind cable card board, first kind cable card board are the cable card board for lacking CAPWAP tunnel processing capacity.
Step 210:First cable card board determines that the first message from WTP is CAPWAP message.
Step 220:First message is sent to the second cable card board of the network switch by the first cable card board, wherein the second line
Snap-gauge is Second Type cable card board, and Second Type cable card board is the cable card board with CAPWAP tunnel processing capacity.
Message is sent to WTP by STA, after the message received is carried out CAPWAP encapsulation process by WTP, obtains CAPWAP reports
Text, i.e. the first message.WTP sends first message to the network switch, includes the message that STA is sent in the first message.
In the embodiment of the present invention, when the first cable card board determines that the first message from WTP is CAPWAP message, it may be used
Such as under type:
First cable card board is (English according to the purpose User Datagram Protocol of the first message:User Datagram
Protocol, abbreviation:UDP) port numbers determine that the first message from WTP is CAPWAP message.
Wherein, the purpose UDP port number of the first message is 5246 or 5247, then the first message is CAPWAP message.
If only there are one Second Type cable card board, i.e. the second cable card board in the network switch, then the first cable card board is by the
One message is sent to this unique Second Type cable card board.Specifically, all record has this unique in all first kind cable card boards
Second Type cable card board, i.e. the mark of the second cable card board.There is the first cable card board to the second line card in namely the first cable card board
The mapping of plate, the first cable card board are sent to the second line card according to the first cable card board to the mapping of the second cable card board, by the first message
Plate.
If the network switch includes multiple Second Type cable card boards, different first kind cable card board in the network switch
The CAPWAP message received can be respectively sent to different Second Type cable card boards.First cable card board sends out the first message
When sending to the second cable card board, the following two kinds mode may be used:
Mode one:First cable card board is sent to according to the first cable card board to the mapping of the second cable card board, by the first message
Two cable card boards.
Mode two:First cable card board reflecting to the second cable card board according to the address of WTP in the first message and the address of WTP
It penetrates, the first message is sent to the second cable card board.
If employing mode one, before the first message is sent to the second cable card board, the first cable card board first searches for first
First message is sent to the second line by the mapping of cable card board to the second cable card board if searching the mapping according to the mapping
Snap-gauge.If search, less than the mapping, the first cable card board is according to predetermined rule, such as according to Second Type cable card board
Load, one is selected in multiple Second Type cable card boards as the second cable card board, the first message is sent to second line
Snap-gauge.First cable card board records the mapping of the first cable card board to the second cable card board, the CAPWAP that the first cable card board receives later
Message is all sent to second cable card board.
If employing mode two, before the first message is sent to the second cable card board, the first cable card board first searches for first
The mapping of the address of WTP to the second cable card board sends the first message according to the mapping if searching the mapping in message
To the second cable card board.If search, less than the mapping, the first cable card board is according to predetermined rule, such as according to the second class
The load of molded line snap-gauge selects one as the second cable card board in multiple Second Type cable card boards, the first message is sent to
Second cable card board.First cable card board records the address of the WTP to the mapping of the second cable card board, and the first cable card board receives later
The CAPWAP message from the WTP be all sent to second cable card board.If receiving the CAPWAP message that new WTP is sent,
Then reselect a Second Type cable card board.
After each WTP sends CAPWAP message to Second Type cable card board, Second Type cable card board will generate one
CAPWAP tunnel list item, therefore, the CAPWAP tunnel list item stored in Second Type cable card board are more, remaining storage CAPWAP
The space of tunnel list item is smaller, illustrates that the WTP that second cable card board is managed is more.Therefore, have in the network switch multiple
In the scene of Second Type cable card board, for the load of balanced each Second Type cable card board, further, the first cable card board connects
Receive the remaining space that CAPWAP tunnel list item is stored in this cable card board of each Second Type cable card board transmission of the network switch.
Need Second Type cable card board select one as the second cable card board when, the first cable card board selection have store CAPWAP tunnels
The Second Type cable card board in the maximum residual space of road list item is as the second cable card board.
For example, being inserted into 10 cable card boards on the network switch altogether, wherein 1-5 cable card boards are first kind cable card board, 6-
No. 10 line snap-gauge is Second Type cable card board, and each cable card board in 6-10 cable card boards can store CAPWAP tunnel table
Gross space be 1K, if the remaining space that 6-10 cable card boards can store CAPWAP tunnel list item be respectively 0.5K, 0.4K,
0.3K, 0.3K, 0.2K, then, after Line 1 snap-gauge receives CAPWAP message, CAPWAP message is sent to No. 6 line cards
Plate.
In the embodiment of the present invention, CAPWAP tunnel list item can be stored on the forwarding chip of Second Type cable card board.
Further include grasping as follows after the first message is sent to the second cable card board by the first cable card board in the embodiment of the present invention
Make:
Second cable card board obtains the corresponding CAPWAP tunnel list item of the first message, and CAPWAP tunnel list item includes the first message
CAPWAP message head in WTP address, the source port number and destination slogan of the CAPWAP message head of the first message;
Second cable card board decapsulates the first message, obtains the source address of the first message after decapsulation;
Second cable card board records the mapping of CAPWAP tunnel list item and the source address of the first message after decapsulation.
Wherein, the source address of the first message can be the MAC Address of STA.
In the embodiment of the present invention, after so that the first cable card board is received and is sent to the message of WTP, which can be sent out
It send to corresponding second cable card board, the second cable card board records the source address of CAPWAP tunnel list item and the first message after decapsulation
Mapping after, the network switch is by the mapping of the source address of the first message after the mark of the second cable card board and decapsulation, note
Record is in all first kind cable card boards of the network switch.
Optionally, if the network switch includes multiple Second Type cable card boards, in order to make second outside the second cable card board
Type cable card board receives be sent to the message of WTP after, can directly encapsulate the message according to CAPWAP tunnel list item, without
It is forwarded to the second cable card board, the second cable card board records CAPWAP tunnel list item and the source address of the first message after decapsulation
After mapping, the mapping of CAPWAP tunnel list item and the source address of the first message after decapsulation is synchronized to by the network switch
All Second Type cable card boards outside second cable card board.
In the network switch by the mapping of the source address of the first message after the mark of the second cable card board and decapsulation, record
When in all first kind cable card boards of the network switch, it can be that the master control borad in the network switch is done, can also be
What the second cable card board in the network switch was done, that is to say, that can be there are two types of mode:
Mode one:Master control borad receives the source address of the first message after the decapsulation that the second cable card board is sent, and by second
All first kind of the map record of the mark of cable card board and the source address of the first message after decapsulation in the network switch
In cable card board;
Mode two:Second cable card board sends the mark of the second cable card board to all first kind cable card boards of the network switch
With the mapping of the source address of the first message after decapsulation;
All first kind cable card boards of the network switch record the mark of the second cable card board and the first report after decapsulation
The mapping of the source address of text.
Likewise, CAPWAP tunnel list item and the source address of first message after decapsulation are reflected in the network switch
It penetrates, can be that the master control borad in the network switch is done when all Second Type cable card boards being synchronized to outside the second cable card board,
Can be that the second cable card board in the network switch is done, that is to say, that can be there are two types of mode:
Mode one:Master control borad receives the CAPWAP tunnel list item and the first message after decapsulation that the second cable card board is sent
The mapping of source address, and the mapping of CAPWAP tunnel list item and the source address of the first message after decapsulation is synchronized to network and is handed over
All Second Type cable card boards outside the second cable card board changed planes;
Mode two:Second cable card board is same by CAPWAP tunnel list item and the mapping of the source address of the first message after decapsulation
It walks to all Second Type cable card boards outside the second cable card board of the network switch.
That the above process is told about is WTP is sent to the network switch by message, in the embodiment of the present invention, the network switch
Message may be sent to WTP, therefore, the above method further includes operating as follows:
The third cable card board of the network switch receives the second message, and third cable card board is first kind cable card board, the second report
The destination address of text is identical with the source address of the first message after decapsulation.Third cable card board is according to the destination address of the second message
And second cable card board mark and the first message after decapsulation source address mapping, the second message is sent to the second line
Snap-gauge.Other first kind cable card boards, such as the first cable card board, if receiving the first message after destination address and decapsulation
The identical message of source address, the operation performed equally by the message to be sent to the second cable card board.
Destination address and CAPWAP tunnel list item of second cable card board according to the second message and the first report after decapsulation
The mapping of the source address of text obtains CAPWAP tunnel list item, and encapsulates the second message according to CAPWAP tunnel list item.
Further include operating as follows in the embodiment of the present invention:
Second cable card board receives third message, the source address of the destination address of third message and the first message after decapsulation
It is identical;
Destination address and CAPWAP tunnel list item of second cable card board according to third message and the first report after decapsulation
The mapping of the source address of text obtains CAPWAP tunnel list item, and encapsulates third message according to CAPWAP tunnel list item.
Other Second Type cable card boards, such as the 4th cable card board, if first after receiving destination address and decapsulating
The identical message of source address of message, also executes similar operations.Due to having saved synchronous CAPWAP in the 4th cable card board
The mapping of tunnel list item and the source address of the first message after decapsulation, the 4th cable card board can be obtained according to the mapping
CAPWAP tunnel list item, and third message is encapsulated according to CAPWAP tunnel list item.
Optionally, special in the first message outer package when the first message is sent to the second cable card board by the first cable card board
Reorientation port (English:Redirect Special Port, abbreviation:RDSP), RSDP is for notifying the second cable card board first to report
Text is CAPWAP message, so that type of second cable card board without determining the first message again.
Alternatively, in another scene, the first cable card board can also be in the common direction of the first message outer package
The port of two cable card boards, the second cable card board determine that the first message is CAPWAP message after receiving the first message.
Still illustrated by taking that embodiment above as an example:The CAPWAP message determined is sent to 6 by Line 1 snap-gauge
When number cable card board, in the CAPWAP message outer package RSDP determined, for notifying No. 6 cable card boards, Line 1 snap-gauge is to No. 6 lines
Snap-gauge send message be CAPWAP message, No. 6 cable card boards need not determine again Line 1 snap-gauge transmission message type, 6
The RSDP for the message outer package that number cable card board is sent according to Line 1 snap-gauge determines that the message is CAPWAP message, directly to Line 1
The CAPWAP message that snap-gauge is sent carries out decapsulation processing, and sends the message after decapsulation, if Line 1 snap-gauge is not being determined
CAPWAP message outer package RSDP if, No. 6 cable card boards will first judge to receive the type of the message of Line 1 snap-gauge transmission,
When the type for judging outgoing packet is CAPWAP message, then the message sent to Line 1 snap-gauge carries out decapsulation processing, and sends
Message after decapsulation.
Concrete application scene is given below in embodiment for a better understanding of the present invention, for CAPWAP message transmission
Process is made and being described in further detail, as shown in Figure 3 (WTP sends message to the network switch):
Line 1 snap-gauge and No. 2 cable card boards do not have CAPWAP tunnel processing capacity, No. 5 cable card boards to be determined for Line 1 snap-gauge
The cable card board transmitted by CAPWAP message gone out.
Step 300:Line 1 snap-gauge receives the first message from WTP.
Step 310:Line 1 snap-gauge, according to purpose UDP port number, is determined from the first message from WTP received
For CAPWAP message, the first message is sent to No. 5 cable card boards.
In this step, first message outer package RSDP.
Step 320:No. 5 cable card boards receive the first message that Line 1 snap-gauge is sent, and determine 1 according to the RDSP of encapsulation
The message that number cable card board is sent is CAPWAP message.
Step 330:No. 5 cable card boards obtain the corresponding CAPWAP tunnel list item of the first message, decapsulate the first message, obtain
The source address of the first message after decapsulation;And record CAPWAP tunnel list item and the source address of the first message after decapsulation
Mapping, then sends.
In this embodiment, the CAPWAP message received is sent to No. 5 cable card boards, No. 5 cable card boards pair by Line 1 snap-gauge
It after the relevant treatments such as CAPWAP message execution decapsulation and sends, solves what Line 1 snap-gauge can not send CAPWAP message
Defect improves the flexibility of transmission CAPWAP message.
In the embodiment of the present invention, Line 1 snap-gauge may receive the second message for being sent to WTP, and therefore, the above process also wraps
Include following operation:
Step 340:Line 1 snap-gauge receives the second message, the destination address of the second message and the first message after decapsulation
Source address it is identical.
Step 350:After Line 1 snap-gauge is according to the mark and decapsulation of the destination address of the second message and No. 5 cable card boards
The first message source address mapping, the second message is sent to No. 5 cable card boards.
Step 360:After No. 5 cable card boards are according to the destination address and CAPWAP tunnel list item of the second message and decapsulation
The mapping of the source address of first message obtains CAPWAP tunnel list item, and encapsulates the second message according to CAPWAP tunnel list item, and
The second message after encapsulation is sent to WTP.
In this embodiment, the message received is sent to No. 5 cable card boards by Line 1 snap-gauge, and No. 5 cable card boards hold message
After the relevant treatment such as row encapsulation, it is sent to WTP, solves the defect that CAPWAP message can not be sent to WTP by Line 1 snap-gauge,
Improve the flexibility of transmission CAPWAP message.
Based on the above-mentioned technical proposal, as shown in fig.4, the embodiment of the present invention provides a kind of network switch, including including
Backboard 40, the first cable card board 41 and the second cable card board 42, the first cable card board 41 and the second cable card board 42 are connected by backboard 40, the
One cable card board 41 is first kind cable card board, and first kind cable card board is the cable card board for lacking CAPWAP tunnel processing capacity, the
Two cable card boards 42 are Second Type cable card board, and Second Type cable card board is the cable card board with CAPWAP tunnel processing capacity,
In:
First cable card board 41 determines that the first message from WTP is for receiving the first message from no WTP
CAPWAP message, and the first message is sent to the second cable card board 42 of the network switch;
Second cable card board 42, the first message for receiving the transmission of the first cable card board 41.
In the embodiment of the present invention, optionally, the first cable card board 41 is specifically used for:
According to the mapping of first the 41 to the second cable card board of cable card board 42, the first message is sent to the second cable card board 42;Or
Person
According to the address of WTP in the first message and the address of WTP to the mapping of the second cable card board 42, the first message is sent out
It send to the second cable card board 42.
In the embodiment of the present invention, further, the second cable card board 42 is additionally operable to:
The corresponding CAPWAP tunnel list item of the first message is obtained, CAPWAP tunnel list item includes the CAPWAP reports of the first message
The address of WTP in literary head, the source port number and destination slogan of the CAPWAP message head of the first message;
The first message is decapsulated, the source address of the first message after decapsulation is obtained;
Record the mapping of CAPWAP tunnel list item and the source address of the first message after decapsulation.
In the embodiment of the present invention, further, the network switch further includes master control borad 43, and master control borad passes through backboard 40 and
One cable card board 41, the second cable card board 42 are connected, wherein:
Master control borad 43 is used to receive the source address of the first message after the decapsulation that the second cable card board 42 is sent, and by second
All first kind of the map record of the mark of cable card board 42 and the source address of the first message after decapsulation in the network switch
In molded line snap-gauge.
In the embodiment of the present invention, further, the network switch includes multiple Second Type cable card boards, and master control borad 43 is also used
In:
Receive the CAPWAP tunnel list item of the second cable card board 42 transmission and reflecting for the source address of the first message after decapsulation
It penetrates, and CAPWAP tunnel list item and the mapping of the source address of the first message after decapsulation is synchronized to the second of the network switch
All Second Type cable card boards outside cable card board 42.
In the embodiment of the present invention, optionally, the second cable card board 42 is additionally operable to all first kind molded line to the network switch
Snap-gauge sends the mapping of the mark of the second cable card board 42 and the source address of the first message after decapsulation;
The mark of all first kind cable card boards the second cable card board 42 of record of the network switch and first after decapsulation
The mapping of the source address of message.
In the embodiment of the present invention, optionally, the network switch includes multiple Second Type cable card boards, and the second cable card board 42 is also
For CAPWAP tunnel list item and the mapping of the source address of the first message after decapsulation to be synchronized to the second of the network switch
All Second Type cable card boards outside cable card board 42.
In the embodiment of the present invention, further, the network switch further includes third cable card board 44, and third cable card board 44 passes through
Backboard 40 is connected with master control borad 43, the first cable card board 41, the second cable card board 42, and third cable card board 44 is first kind cable card board,
The destination address of second message is identical with the source address of the first message after decapsulation, wherein:
Third cable card board 44 is for receiving the second message, according to the destination address of the second message and the second cable card board 42
The mapping of mark and the source address of the first message after decapsulation, the second cable card board 42 is sent to by the second message;
Second cable card board 42 is additionally operable to:
According to the source address of the destination address of the second message and CAPWAP tunnel list item and the first message after decapsulation
Mapping, obtain CAPWAP tunnel list item, and the second message is encapsulated according to CAPWAP tunnel list item.
In the embodiment of the present invention, further, the second cable card board 42 is additionally operable to:
Third message is received, the destination address of third message is identical with the source address of the first message after decapsulation;
According to the destination address and CAPWAP tunnel list item and the source address of the first message after decapsulation of third message
Mapping obtains CAPWAP tunnel list item, and encapsulates third message according to CAPWAP tunnel list item.
In conclusion in the embodiment of the present invention, a kind of method of transmission CAPWAP message is proposed:The first of the network switch
Cable card board receives the first message from WTP, wherein the first cable card board is first kind cable card board, and first kind cable card board is
Lack the cable card board of CAPWAP tunnel processing capacity;First cable card board determines that the first message from WTP is CAPWAP message;The
First message is sent to the second cable card board of the network switch by one cable card board, wherein the second cable card board is Second Type line card
Plate, Second Type cable card board are the cable card board with CAPWAP tunnel processing capacity, in this scenario, do not have CAPWAP tunnel
After first cable card board of processing capacity receives CAPWAP message, CAPWAP message can be sent to the second cable card board, and
Two cable card boards have CAPWAP tunnel processing capacity, therefore, solve not with CAPWAP tunnel processing capacity cable card board without
The problem of method handles CAPWAP message improves the flexibility of transmission CAPWAP message.
Obviously, those skilled in the art can carry out the embodiment of the present invention various modification and variations without departing from this hair
The range of bright embodiment.In this way, if these modifications and variations of the embodiment of the present invention belong to the range of the claims in the present invention
Within, then the present invention is also intended to include these modifications and variations.
Claims (12)
1. a kind of wireless access point control and offer CAPWAP message transmission method, which is characterized in that including:
First cable card board of the network switch receives the first message from wireless terminal point WTP, wherein first cable card board
For first kind cable card board, the first kind cable card board is the cable card board for lacking CAPWAP tunnel processing capacity;
First cable card board determines that first message from WTP is CAPWAP message;
First message is sent to the second cable card board of the network switch by first cable card board, wherein described
Two cable card boards are Second Type cable card board, and the Second Type cable card board is the cable card board with CAPWAP tunnel processing capacity;
The network switch includes multiple Second Type cable card boards, and the method further includes:
Second cable card board obtains the corresponding CAPWAP tunnel list item of first message, and the CAPWAP tunnel list item includes
The address of the WTP in the CAPWAP message head of first message, the source of the CAPWAP message head of first message
Slogan and destination slogan;
Second cable card board decapsulates first message, obtains the source address of the first message after decapsulation;
Second cable card board records reflecting for the CAPWAP tunnel list item and the source address of the first message after the decapsulation
It penetrates;
The network switch by the mapping of the source address of the first message after the CAPWAP tunnel list item and the decapsulation,
All Second Type cable card boards being synchronized to outside second cable card board of the network switch.
2. the method as described in claim 1, which is characterized in that first message is sent to described by first cable card board
Second cable card board, including:
First cable card board sends first message according to first cable card board to the mapping of second cable card board
To second cable card board;Or
First cable card board is according to the address of WTP described in first message and the address of the WTP to described second
First message is sent to second cable card board by the mapping of cable card board.
3. the method as described in claim 1, which is characterized in that second cable card board record the CAPWAP tunnel list item with
After the mapping of the source address of the first message after the decapsulation, further include:
The network switch reflects the mark and the source address of the first message after the decapsulation of second cable card board
It penetrates, is recorded in all first kind cable card boards of the network switch.
4. the method as described in claim 1, which is characterized in that the method further includes:
The third cable card board of the network switch receives the second message, and the third cable card board is first kind cable card board, institute
The destination address for stating the second message is identical with the source address of the first message after the decapsulation;
The third cable card board is according to the destination address of second message and the mark of second cable card board and the solution
Second message is sent to second cable card board by the mapping of the source address of the first message after encapsulation;
Second cable card board is according to the destination address of second message and the CAPWAP tunnel list item and the deblocking
The mapping of the source address of the first message after dress obtains the CAPWAP tunnel list item, and according to the CAPWAP tunnel list item
Encapsulate second message.
5. method as described in claim 3 or 4, which is characterized in that the method further includes:
Second cable card board receives third message, the destination address and the first message after the decapsulation of the third message
Source address it is identical;
Second cable card board is according to the destination address of the third message and the CAPWAP tunnel list item and the deblocking
The mapping of the source address of the first message after dress obtains the CAPWAP tunnel list item, and according to the CAPWAP tunnel list item
Encapsulate the third message.
6. a kind of network switch, which is characterized in that including backboard, the first cable card board, the second cable card board and master control borad, the master
Control plate is connected by the backboard with first cable card board, second cable card board, first cable card board and described second
Cable card board is connected by the backboard, and first cable card board is first kind cable card board, and the first kind cable card board is scarce
Weary wireless access point control and the cable card board for providing CAPWAP tunnel processing capacity, second cable card board is Second Type line card
Plate, the Second Type cable card board are the cable card board with CAPWAP tunnel processing capacity, wherein:
First cable card board, for receiving the first message from wireless terminal point WTP, determine described in from WTP first
Message is CAPWAP message, and first message is sent to the second cable card board of the network switch;
Second cable card board, first message sent for receiving first cable card board;
Second cable card board is additionally operable to:Obtain the corresponding CAPWAP tunnel list item of first message, the CAPWAP tunnel
List item includes the address of the WTP in the CAPWAP message head of first message, the CAPWAP message of first message
The source port number and destination slogan of head;First message is decapsulated, the source address of the first message after decapsulation is obtained;Note
Record the mapping of the CAPWAP tunnel list item and the source address of the first message after the decapsulation;
The network switch includes multiple Second Type cable card boards, and the master control borad is used for:Receive the second cable card board hair
The mapping of the CAPWAP tunnel list item that send and the source address of the first message after the decapsulation, and by the CAPWAP tunnels
The mapping of road list item and the source address of the first message after the decapsulation is synchronized to second line of the network switch
All Second Type cable card boards outside snap-gauge.
7. the network switch as claimed in claim 6, which is characterized in that first cable card board is specifically used for:
According to first cable card board to the mapping of second cable card board, first message is sent to second line card
Plate;Or
It, will according to the address of WTP described in first message and the address of the WTP to the mapping of second cable card board
First message is sent to second cable card board.
8. the network switch as claimed in claim 6, which is characterized in that the master control borad is additionally operable to receive second line card
The source address of the first message after the decapsulation that plate is sent, and will be after the mark of second cable card board and the decapsulation
The first message source address map record in all first kind cable card boards of the network switch.
9. the network switch as claimed in claim 6, which is characterized in that second cable card board is additionally operable to hand over to the network
All first kind cable card boards changed planes send the source of the mark and the first message after the decapsulation of second cable card board
The mapping of address;
After all first kind cable card boards of the network switch record mark and the decapsulation of second cable card board
The first message source address mapping.
10. the network switch as claimed in claim 9, which is characterized in that the network switch includes multiple Second Types
Cable card board, second cable card board are additionally operable to by the source of the first message after the CAPWAP tunnel list item and the decapsulation
The mapping of location is synchronized to all Second Type cable card boards outside second cable card board of the network switch.
11. the network switch as described in any one of claim 8 to 10, which is characterized in that the network switch is also
Including third cable card board, the third cable card board passes through the backboard and the master control borad, first cable card board, described second
Cable card board is connected, and the third cable card board is first kind cable card board, after the destination address of the second message and the decapsulation
The source address of first message is identical, wherein:
The third cable card board is for receiving second message, according to the destination address of second message and described second
Second message is sent to described the by the mapping of the mark and the source address of the first message after the decapsulation of cable card board
Two cable card boards;
Second cable card board is additionally operable to:
According to the destination address of second message and the CAPWAP tunnel list item and the first message after the decapsulation
Source address mapping, obtain the CAPWAP tunnel list item, and according to CAPWAP tunnel list item encapsulation second report
Text.
12. the network switch as described in any one of claim 8 to 10, which is characterized in that second cable card board is also
For:
Third message is received, the destination address of the third message is identical with the source address of the first message after the decapsulation;
According to the destination address of the third message and the CAPWAP tunnel list item and the first message after the decapsulation
The mapping of source address obtains the CAPWAP tunnel list item, and encapsulates the third message according to the CAPWAP tunnel list item.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410425959.XA CN105471768B (en) | 2014-08-26 | 2014-08-26 | CAPWAP message transmission method and the network switch |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410425959.XA CN105471768B (en) | 2014-08-26 | 2014-08-26 | CAPWAP message transmission method and the network switch |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105471768A CN105471768A (en) | 2016-04-06 |
CN105471768B true CN105471768B (en) | 2018-11-06 |
Family
ID=55609057
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410425959.XA Active CN105471768B (en) | 2014-08-26 | 2014-08-26 | CAPWAP message transmission method and the network switch |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105471768B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107547479A (en) * | 2016-06-29 | 2018-01-05 | 迈普通信技术股份有限公司 | IPsec implementation method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102547583A (en) * | 2010-12-17 | 2012-07-04 | 上海贝尔股份有限公司 | Method, device and system for multicast service transmission control in wireless local area network system |
CN102868647A (en) * | 2012-09-26 | 2013-01-09 | 大唐移动通信设备有限公司 | Data processing method and device based on Linux network core |
CN102946619A (en) * | 2012-11-30 | 2013-02-27 | 武汉虹信通信技术有限责任公司 | Load balancing method for bypass data of WLAN (wireless local area network) |
CN103517446A (en) * | 2012-06-20 | 2014-01-15 | 中兴通讯股份有限公司 | Access controller (AC), wireless local area network system and wireless access method based on system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7873710B2 (en) * | 2007-02-06 | 2011-01-18 | 5O9, Inc. | Contextual data communication platform |
-
2014
- 2014-08-26 CN CN201410425959.XA patent/CN105471768B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102547583A (en) * | 2010-12-17 | 2012-07-04 | 上海贝尔股份有限公司 | Method, device and system for multicast service transmission control in wireless local area network system |
CN103517446A (en) * | 2012-06-20 | 2014-01-15 | 中兴通讯股份有限公司 | Access controller (AC), wireless local area network system and wireless access method based on system |
CN102868647A (en) * | 2012-09-26 | 2013-01-09 | 大唐移动通信设备有限公司 | Data processing method and device based on Linux network core |
CN102946619A (en) * | 2012-11-30 | 2013-02-27 | 武汉虹信通信技术有限责任公司 | Load balancing method for bypass data of WLAN (wireless local area network) |
Non-Patent Citations (1)
Title |
---|
网络控制***实验平台的开发;张印熙;《中国优秀硕士学位论文全文数据库 信息科技辑》;20041215(第4期);第I140-439页 * |
Also Published As
Publication number | Publication date |
---|---|
CN105471768A (en) | 2016-04-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105827495B (en) | The message forwarding method and equipment of VXLAN gateway | |
TW201212603A (en) | Enabling IPV6 mobility with NAT64 | |
CN105722055A (en) | User roaming method, device and system in wireless local area network (WLAN) | |
CN111901132B (en) | Group management method, device and system | |
CN103797888A (en) | Trusted WLAN connectivity to 3GPP evolved packet core | |
CN108810876A (en) | Communication means and relevant device | |
CN104837179B (en) | A kind of method and device showing hotspot equipment manufacturer information | |
CN114124618B (en) | Message transmission method and electronic equipment | |
CN107645433B (en) | Message forwarding method and device | |
CN110912836B (en) | Method for forwarding data by forwarding device, control device, storage medium and system | |
US10021512B2 (en) | Switching to advertising locator after connection establishment | |
WO2014110228A1 (en) | Techniques for establishing communications with a local wireless network | |
CN104995902A (en) | Methods and systems for seamless network communication between IPV4 and IPV6 devices | |
CN111901387B (en) | Connection method and device of cloud special line | |
JP6928076B2 (en) | Packet monitoring | |
CN110972226B (en) | Local area network communication method, device and system | |
CN111431787B (en) | Tunnel establishment method and device and computer readable storage medium | |
CN107666694A (en) | The method and its relevant device switched between distributed AP | |
CN105634901A (en) | MAC address information synchronization method and device based on CAS VXLAN | |
CN107820246B (en) | User authentication method, device and system | |
CN107846715A (en) | Access point switching method and device of the Internet of Things based on transmission rate | |
US20150146726A1 (en) | Hybrid data plane forwarding | |
CN104717640B (en) | A kind of implementation method of the wireless communication based on positioning | |
CN104579973A (en) | Message forwarding method and device of virtual cluster | |
CN105471768B (en) | CAPWAP message transmission method and the network switch |
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 |