Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into
It is described in detail to one step, it is clear that the described embodiments are only some of the embodiments of the present invention, rather than whole implementation
Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts
All other embodiment, shall fall within the protection scope of the present invention.
VLAN (Virtual Local Area Network, virtual LAN) is a kind of equipment by LAN from patrolling
It collects upper rather than is physically divided into multiple network segments, to realize the emerging data switching technology of virtual workgroup.Due to it
It is logically to divide, rather than physically divide, so each work station in the same VLAN is not limited to together
In one physical extent, i.e., these work stations can be in different physics LAN (Local Area Network, LAN) nets
Section.Broadcast and unicast traffic inside one VLAN will not be all forwarded in other VLAN, to help to control flow, reduce
Equipment investment, the safety for simplifying network management, improving network.
Currently, the standard for dividing VLAN has very much, such as:It divides VLAN according to port, divided according to MAC Address
VLAN, VLAN is divided according to network layer and is divided according to IP (Internet Protocol, the agreement interconnected between network) multicast
VLAN etc..A kind of division sides VLAN based on VAP (Virtual Access Point, virtual access point) of traditional bridge connected
Method is:VLAN is divided according to port, this method is by binding the same ports VLAN agreements ID, when there is user data
When packet is by port, port is that user data package adds a VLAN agreement ID, and material is thus formed what is identified with VLAN ID
Multiple virtual ports.
It is actively to use in port when there is another side ports of the data packet Jing Guo wireless access point based on same reason
User data packet adds the mark of a SSID (Service Set Identifier, service set), so that it may with by the port
It is divided into the multiple virtual ports identified with SSID.
After the operation of port virtualization more than access point apparatus completion, the embodiment of the present invention is by providing a kind of report
Literary retransmission method completes effective forwarding to message, and shown in Figure 1, specifically implementation method includes:
Step S101, after receiving the first message comprising first identifier, according to pair of first identifier and second identifier
It should be related to, determine the corresponding second identifier of first identifier in first message.
Step S102 determines the first virtual port and the second virtual terminal according to the first identifier and the second identifier
Mouthful.
Step S103, the second message that will be converted to by first message protocol pass through first virtual port
It is forwarded with second virtual port.
Before executing step S101, the one-to-one relationship of first identifier and second identifier is preset, such as set
SSID1 corresponds to VLAN ID1, and SSID2 corresponds to VLAN ID2, and so on.In this way, carrying the first of first identifier when receiving
After message, it can determine that the first identifier in the message is corresponding according to the first identifier information of the first message received
Second identifier.
Wherein it should be noted that if the first identifier is service set SSID, then the second identifier is virtual
LAN ID VLAN ID;If the first identifier is VLAN ID, the second identifier is SSID.
Can include multiple and different SSID names in the broadcast message sent out in view of wireless access point device, when
When client selects one of connection from the SSID name of acquisition, carrying selection will be sent out to wireless access point device
SSID name connection request message, after wireless access point device receives the message, can on uplink by the message into
Row data conversion, 802.11 frame data through the first message are converted to 802.3 frame data, and the second message after converting no longer is taken
Mark with SSID name.In order to identify the message in the wireless access point device of subsequent cascaded, need artificially
First message is specifically converted into the second message of 802.3 formats by addition mark after message conversion, and by institute
The corresponding second identifier of the first identifier for including is stated in the first message to be placed in second message;Or by described first
Message is converted into the second message of 802.3 formats, and the first identifier for including in first message is placed in described
In two messages.
For example, client selects connection SSID1, wireless access point device to receive connection request from the SSID name of acquisition
Message, and message conversion is carried out, transformed message no longer also has SSID1 marks, is needed at this time according to SSID name and VLAN
The correspondence addition mark of interface, the mark of addition can be different SSID name, such as SSID1, SSID2 etc., certainly
The mark of addition can also be corresponding with SSID name VLAN interface title, such as VLAN ID1, VLAN ID2 etc., also
It is to say that addition mark can be first identifier, can also be second identifier.
In addition, the first virtual port and the second virtual port that are related to for following content of the embodiment of the present invention are made in advance
Setting, that is, it is the side received after the SSID mark completions carried according to message are distributed that it is corresponding, which to set the first virtual port, the
Corresponding two virtual ports are another side ports being connect with optical interface or Ethernet protocol interface, are divided generally by VLAN
The multiple virtual ports obtained afterwards.
In step s 102, the first virtual port and the second virtual port are determined by first identifier and second identifier
Implementation method is as follows:
If the first identifier is SSID, first message and second message are uplink message;According to described
One mark and the second identifier, determine the first virtual port and the second virtual port, including:It is determined according to the first identifier
First virtual port, and the second virtual port is determined according to the second identifier;
If the first identifier is VLAN ID, first message and second message are uplink message;According to described
First identifier and the second identifier determine the first virtual port and the second virtual port, including:
The first virtual port is determined according to the second identifier, and the second virtual terminal is determined according to the first identifier
Mouthful.
If the first identifier is SSID, first message and second message are downlink message;According to described
One mark and the second identifier, determine the first virtual port and the second virtual port, including:It is determined according to the first identifier
First virtual port, and the second virtual port is determined according to the second identifier;
If the first identifier is VLAN ID, first message and second message are downlink message;According to described
First identifier and the second identifier determine the first virtual port and the second virtual port, including:
The first virtual port is determined according to the second identifier, and the second virtual terminal is determined according to the first identifier
Mouthful.
As it can be seen that the first virtual port is obtained by SSID mark determinations, the second virtual port is determining by VLAN ID mark
Go out.
In view of realizing that the forwarding unit of repeating process may be a wireless access point device, it is also possible to multiple cascades
Wireless access point device, and forward process there is also two kinds of situations of uplink message and downlink message, therefore there is with
Lower four kinds of scenes, it should be noted that following four kinds of scenes be only using SSID1 the and VLAN ID1 in Fig. 2 to Fig. 5 as example into
Row describes, and the repeating process in figure between rest channels such as SSID2 and VLAN ID2, which can analogize, to be obtained.
Scene one:
If realizing, the forwarding unit of repeating process is single wireless access point device, and it is the upper of user side initiation to receive message
Row message, as shown in Fig. 2, the repeating process so realized using retransmission method provided in an embodiment of the present invention is as follows:
Wireless access point device receives the first message for including SSID1 marks, then determines that corresponding second identifier is
VALN ID1, therefore corresponding first virtual ports of SSID1 are determined by SSID1, VALN is determined by VALN ID1
Corresponding second virtual ports of ID1, the first message pass through after the first virtual port, have completed 802.11 frame data extremely
The conversion of 802.3 frame data obtains the second message, is turned second message according to the second virtual port that VLAN ID1 are determined
It is sent to the second virtual port, and is actively the mark of the identification information either VLAN ID1 marks of message addition SSID1 marks
Know information.
Scene two:
If realizing, the forwarding unit of repeating process is single wireless access point device, the downlink message that network side is initiated, root
The second message is determined according to following manner:First message is converted into the second message of 802.11 formats, and by described first
The corresponding second identifier of the first identifier for including in message is placed in second message;Alternatively, by first message
It is converted into the second message of 802.11 formats, and the first identifier for including in first message is placed in second report
Wen Zhong.Specifically, as shown in figure 3, further explaining how the repeating process of determining second message and message.
Situation one:
Wireless access point device receives the first message for carrying SSID1 marks, according to preset first identifier and the
The one-to-one relationship of two marks determines that second identifier is VLAN ID1 by SSID1 marks, then determines VLAN ID1
Corresponding second virtual port and corresponding first virtual ports of SSID1, and the message is forwarded to from the second virtual port
One virtual port, and complete conversion of 802.3 frame data of downlink to 802.11 frame data.
Situation two:
Wireless access point device receives the first message for carrying VLAN ID1 marks, directly determines second by VLAN ID1
Virtual port is searched by VLAN ID1 and is corresponded to according to the one-to-one relationship of preset first identifier and second identifier
Second identifier SSID1, and then the first virtual port is determined by second identifier SSID1, and by the message from the second virtual terminal
Mouth is forwarded to the first virtual port, and completes conversion of 802.3 frame data of downlink to 802.11 frame data.
Scene three:
If realizing, the forwarding unit of repeating process is multiple cascade wireless access point devices, and it is user side hair to receive message
The uplink message risen, as shown in figure 4, the repeating process so realized using retransmission method provided in an embodiment of the present invention is as follows:
Wireless access point device receives the first message for including SSID1 marks, then determines that corresponding second identifier is
VALN ID1, therefore corresponding first virtual ports of SSID1 are determined by SSID1, VALN is determined by VALN ID1
Corresponding second virtual ports of ID1, the first message pass through after the first virtual port, have completed 802.11 frame data extremely
The conversion of 802.3 frame data obtains the second message, is turned second message according to the second virtual port that VLAN ID1 are determined
It is sent to the second virtual port, and is actively the mark of the identification information either VLAN ID1 marks of message addition SSID1 marks
Know information.After the message is forwarded to the wireless access point device of next stage, a point following two situations are handled respectively:
Situation one:
Next stage wireless access point device determines SSID1 corresponding the according to message of the reception comprising SSID1 marks
One virtual port then completes forwarding of first virtual port to the second virtual port, if also having wireless access point to set below
Standby, repeating process is similar, repeats no more.
Situation two:
Next stage wireless access point device determines that second identifier is according to the message comprising VLAN ID1 marks of reception
SSID1 then determines corresponding first virtual ports of SSID1, then completes the first virtual port to the second virtual port
Forwarding, if there is wireless access point device below, repeating process is similar, repeats no more.
Scene four:
If realizing, the forwarding unit of repeating process is multiple cascade wireless access point devices, and it is network side hair to receive message
The downlink message risen, as shown in figure 5, the repeating process so realized using retransmission method provided in an embodiment of the present invention is as follows:
Wireless access point device receives the first message for carrying SSID1 marks either VLAN ID1 marks, passes through SSID1
Mark determines that second identifier is VLAN ID1, then determines that corresponding second virtual ports of VLAN ID1 and SSID1 correspond to
The first virtual port, or the second virtual port is directly determined by VLAN ID1, passes through VLAN ID1 corresponding second
Mark SSID1 determines the first virtual port.And the message is forwarded to the first virtual port and complete from the second virtual port
At the conversion of 802.3 frame data of downlink to 802.11 frame data, while data conversion, artificially by transformed report
Text increases the identification information of the identification information either VLAN ID1 marks of SSID1 marks.When the message is forwarded to next stage
After wireless access point device, next stage wireless access point device receives the report for carrying SSID1 marks either VLAN ID1 marks
Text is completed subsequent forwarding still according to above-mentioned repeating process and is operated, therefore repeats no more.
As it can be seen that the Bridge configuration of the prior art is substituted in the repeating process of above-mentioned scene provided in an embodiment of the present invention, keep away
The process for the MAC Address list item study exempted from improves the treatment effeciency of wireless access point device to the time loss of reduction.
It is worth noting that the equally applicable wireless access point device of the embodiment of the present invention only broadcasts a SSID name outward
The case where, only need to establish the mapping between message inbound port and exit port at this time, message can complete both sides port it
Between repeating process, MAC Address list item learning process is omitted, saves time loss, provides the forward efficiency of equipment.
Based on the same technical idea, the embodiment of the present invention also provides a kind of message forwarding equipment, on the equipment is executable
State embodiment of the method.Equipment provided in an embodiment of the present invention is as shown in Figure 6.
The message forwarding equipment includes:First determination unit 401, the second determination unit 402, retransmission unit 403.
First determination unit 401, for after receiving the first message comprising first identifier, according to first identifier and the
The correspondence of two marks, determines the corresponding second identifier of first identifier in first message;
Second determination unit 402, for according to the first identifier and the second identifier, determine the first virtual port and
Second virtual port;
Retransmission unit 403, the second message for will be converted to by first message protocol are empty by described first
Quasi- port and second virtual port are forwarded;
Wherein, if the first identifier is service set SSID, the second identifier is VLAN ID number
VLAN ID;
If the first identifier is VLAN ID, the second identifier is SSID.
In forwarding unit, the first determination unit 401 initially sets up correspondence, that is, presets first identifier and second
The one-to-one relationship of mark, such as setting SSID1 correspond to VLAN ID1, and SSID2 corresponds to VLAN ID2, and so on.In this way,
After receiving the first message for carrying first identifier, it can be determined according to the first identifier information of the first message received
Go out the corresponding second identifier of first identifier in the message.
In the second determination unit 402, the first virtual port and the second void are determined by first identifier and second identifier
The implementation method of quasi- port is as follows:
If the first identifier is SSID, first message and second message are uplink message;According to described
One mark and the second identifier, determine the first virtual port and the second virtual port, including:It is determined according to the first identifier
First virtual port, and the second virtual port is determined according to the second identifier;
If the first identifier is VLAN ID, first message and second message are uplink message;According to described
First identifier and the second identifier determine the first virtual port and the second virtual port, including:
The first virtual port is determined according to the second identifier, and the second virtual terminal is determined according to the first identifier
Mouthful.
If the first identifier is SSID, first message and second message are downlink message;According to described
One mark and the second identifier, determine the first virtual port and the second virtual port, including:It is determined according to the first identifier
First virtual port, and the second virtual port is determined according to the second identifier;
If the first identifier is VLAN ID, first message and second message are downlink message;According to described
First identifier and the second identifier determine the first virtual port and the second virtual port, including:
The first virtual port is determined according to the second identifier, and the second virtual terminal is determined according to the first identifier
Mouthful.
As it can be seen that the first virtual port is obtained by SSID mark determinations, the second virtual port is determining by VLAN ID mark
Go out.
In view of realizing that the forwarding unit of repeating process may be a wireless access point device, it is also possible to multiple cascades
Wireless access point device, and the process forwarded is there is also two kinds of situations of uplink message and downlink message, therefore retransmission unit
403 specific implementation procedure describes respectively for following four scene.
Scene one:
If realizing, the forwarding unit of repeating process is single wireless access point device, and it is the first message to receive message, that is, is used
The uplink message that family side is initiated, retransmission unit are additionally operable to:First message is converted into the second message of 802.3 formats, and
The corresponding second identifier of the first identifier for including in first message is placed in second message;Alternatively, by institute
The second message that the first message is converted into 802.3 formats is stated, and the first identifier for including in first message is placed in
In second message.Specifically, as shown in Fig. 2, so utilizing repeating process of the embodiment of the present invention as follows:
Wireless access point device receives the first message for including SSID1 marks, and the first determination unit 401 first is determined pair
The second identifier answered is VALN ID1, therefore the second determination unit 402 determines SSID1 corresponding first virtually by SSID1
Corresponding second virtual ports of VALN ID1 are determined in port by VALN ID1, the first message by the first virtual port it
Afterwards, conversion of 802.11 frame data to 802.3 frame data has been completed, has obtained the second message, retransmission unit 403 is according to VLAN
Second message is forwarded to the second virtual port by the second virtual port that ID1 is determined, and is actively message addition SSID1
The identification information of the identification information of mark either VLAN ID1 marks.
Scene two:
If realizing, the forwarding unit of repeating process is single wireless access point device, and the downlink message that network side is initiated is the
One message, the retransmission unit are additionally operable to:First message is converted into the second message of 802.11 formats, and by described
The corresponding second identifier of the first identifier for including in one message is placed in second message;Alternatively, described first is reported
Text is converted into the second message of 802.11 formats, and the first identifier for including in first message is placed in described second
In message.Specifically, as shown in figure 3, so utilizing repeating process of the embodiment of the present invention as follows:
Situation one:
Wireless access point device receives the first message for carrying SSID1 marks, and the first determination unit 401 first passes through
SSID1 marks determine that second identifier is VLAN ID1, and then the second determination unit 402 determines VLAN ID1 corresponding second
The message is forwarded to first by virtual port and corresponding first virtual ports of SSID1, retransmission unit 403 from the second virtual port
Virtual port, and complete conversion of 802.3 frame data of downlink to 802.11 frame data.
Situation two:
Wireless access point device receives the first message for carrying VLAN ID1 marks, and the second determination unit 402 directly passes through
VLAN ID1 determine the second virtual port, and the first virtual port is determined by the corresponding second identifier SSID1 of VLAN ID1.Turn
The message is forwarded to the first virtual port by bill member 403 from the second virtual port, and completes 802.3 frame data of downlink
To the conversion of 802.11 frame data.
Scene three:
If realizing, the forwarding unit of repeating process is multiple cascade wireless access point devices, and it is user side hair to receive message
The uplink message risen, as shown in figure 4, so utilizing repeating process of the embodiment of the present invention as follows:
Wireless access point device receives the first message for including SSID1 marks, and the first determination unit 401 first is determined pair
The second identifier answered is VALN ID1, therefore the second determination unit 402 determines SSID1 corresponding first virtually by SSID1
Corresponding second virtual ports of VALN ID1 are determined in port by VALN ID1, the first message by the first virtual port it
Afterwards, conversion of 802.11 frame data to 802.3 frame data has been completed, has obtained the second message, retransmission unit 403 is according to VLAN
Second message is forwarded to the second virtual port by the second virtual port that ID1 is determined, and is actively message addition SSID1
The identification information of the identification information of mark either VLAN ID1 marks.When the wireless access point that the message is forwarded to next stage is set
After standby, a point following two situations are handled respectively:
Situation one:
The second determination unit 402 in next stage wireless access point device is according to the message for including SSID1 marks of reception
Determine corresponding first virtual ports of SSID1, then retransmission unit 403 completes the first virtual port to the second virtual port
Forwarding, if there is wireless access point device below, repeating process is similar, repeats no more.
Situation two:
The first determination unit 401 in next stage wireless access point device is according to the report for including VLAN ID1 marks of reception
Text determines that second identifier is SSID1, and then the second determination unit 402 determines corresponding first virtual ports of SSID1, then
Retransmission unit 403 completes the forwarding of the first virtual port to the second virtual port, if there is wireless access point device below, turns
Hair process is similar, repeats no more.
Scene four:
If realizing, the forwarding unit of repeating process is multiple cascade wireless access point devices, and it is network side hair to receive message
The downlink message risen, as shown in figure 5, so utilizing repeating process of the embodiment of the present invention as follows:
Wireless access point device receives the first message for carrying SSID1 marks either VLAN ID1 marks, and first determines
Unit 401 determines that second identifier is VLAN ID1 by SSID1 marks, and then the second determination unit 402 determines VLAN
Corresponding second virtual ports of ID1 and corresponding first virtual ports of SSID1, or directly second is determined by VLAN ID1
Virtual port determines the first virtual port by the corresponding second identifier SSID1 of VLAN ID1.Retransmission unit 403 is by the report
Text is forwarded to the first virtual port from the second virtual port, and completes 802.3 frame data of downlink to 802.11 frame data
Conversion, while data conversion, artificially by transformed message increase SSID1 mark identification information either VLAN
The identification information of ID1 marks.After the message is forwarded to the wireless access point device of next stage, next stage wireless access point device
The message for carrying SSID1 marks either VLAN ID1 marks is received, subsequent forwarding is completed still according to above-mentioned repeating process
Operation, therefore repeat no more.
As it can be seen that the Bridge configuration of the prior art is substituted in the repeating process of above-mentioned scene provided in an embodiment of the present invention, keep away
The process for the MAC Address list item study exempted from improves the treatment effeciency of wireless access point device to the time loss of reduction.
It is worth noting that the equally applicable wireless access point device of the embodiment of the present invention only broadcasts a SSID name outward
The case where, only need to establish the mapping between message inbound port and exit port at this time, message can complete both sides port it
Between repeating process, MAC Address list item learning process is omitted, saves time loss, provides the forward efficiency of equipment.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real
The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or
The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.