A kind of the data transmission exchange method and system of port network
Technical field
The present invention relates to network communication technology field more particularly to a kind of data of port network transmission exchange method and it is
System.
Background technique
Connection bridge of the WiFi as various intelligent wireless products, existing for nowadays more and more intellectual products life in
It is unable to do without the presence of WiFi already.Currently, each AP need and outer net data interaction when require interchanger by its
Data forwarding carries out NAT conversion to outlet device (each LAN mouthfuls just corresponds to an AP), then by outlet device, and works as Intranet
When AP quantity is excessive, it will cause the NAT transfer capability of outlet device insufficient, if desired WiFi covers entirely in the biggish occasion of area
Lid, and current outlet device is difficult to meet demand.
Therefore how under the limited NAT transfer capability of outlet device the enough WiFi equipments of carry, allow network to I
Life bring more good experience, be problem to be solved at this stage.
Summary of the invention
It is an object of the invention to overcome the deficiencies of the prior art and provide a kind of data of port network to transmit exchange method
And system, it solves at this stage as being continuously increased for WiFi equipment quantity causes the NAT transfer capability of outlet device to be not enough to
And influencing data transmission interaction is problem.
The purpose of the present invention is achieved through the following technical solutions: a kind of data transmission interaction side of port network
Method, the data transmission exchange method includes the following contents:
Main AP judges the data received to determine that data transmit interaction direction;
It transmits interaction direction according to the data data are carried out data transmission interacting after treatment.
The main AP data received are judged with determine data transmit interaction direction the following steps are included:
Main AP judges whether received data have the second label;
If so, then received data are secondary AP data, it is from secondary AP or terminal device to out that data, which transmit interaction direction,
The data of jaws equipment transmit interaction;
If no, received data are outlet device data, data transmit interaction direction be outlet device to secondary AP or
The data of person's terminal device transmit interaction.
The data transmission exchange method further includes carrying out VLAN to main AP and secondary AP before carrying out data transmission interaction
Divide setting;
Described couple of main AP carries out VLAN and divides setting to include dividing a virtual port on main AP to receive for forwarding
Outlet device data to secondary AP;
It is described that secondary AP is carried out VLAN to divide setting including dividing the VLAN ID of second label of band for will be from secondary AP
In the second label and only receive the data of the second label of band on the data band that sends.
The secondary AP also needs to carry out label addition step, content in secondary AP before transmitting data to the main AP
It is as follows:
Add in initial data when corresponding upper company port enters secondary AP in the software Br-lan that initial data passes through secondary AP
Enter the first label;
The second label is added when driving by secondary AP in data;
Data remove the first label when passing through switch, and data only have the second label at this time.
It is described that data are carried out data transmission after treatment according to the data transfer direction to include the received number of main AP
Data processing when data processing transmitting step and the received data of main AP when according to for secondary AP data are outlet device data passes
Defeated step.
Data processing transmitting step when the received data of main AP are secondary AP data is as follows:
Secondary AP by with the second label data pass through main AP software Br-lan in it is corresponding it is upper company port be sent to master
AP, and add first label;
Data remove the first label in data when driving by main AP, and hand to the virtual port in Br-lan
Main AP virtual port, which hand to data after NAT is converted, connects port and by the second tag modification into the on main AP
One label;
Main AP hardware switch removes the first label, and sends outlet device for the data of no label and re-send to outside
Net.
Data processing transmitting step when the received data of main AP are outlet device data is as follows:
Upper even port corresponding in software Br-lan that the data of no label pass through main AP is sent main AP by outlet device
And add first label;
Connect port progress NAT on main AP to convert and by the first tag modification into the second label;
Data remove first label by main AP hardware switch by main AP driving one the first label of addition
Afterwards, corresponding secondary AP or terminal device are sent to by the virtual port of main AP.
A kind of data based on port network transmit the data transmission interactive system of exchange method, including one is used for inside and outside
The outlet device that the data of portion's network interact, the interchanger being attached with the outlet device, and be connected to described
A main AP and at least one secondary AP on interchanger.
The company of being corresponding with port and front panel port in the software of the main AP and secondary AP;The main AP also passes through
VLAN division has a virtual port.
The upper even port of the secondary AP divides the VALN ID for having second label of band by VLAN.
The beneficial effects of the present invention are: a kind of data transmission exchange method and system of port network, by by main AP and
The mode that each secondary AP is combined makes the data on each secondary AP all be concentrated through master so that each secondary AP is isolated with outlet device
The a port of AP is sent to outlet device;There was only main AP mono- in outlet device and its Intranet equipment for carrying out data interaction
It is a, it is only necessary to carry out a NAT conversion between main AP and also can to alleviate the NAT translation burden of outlet device
Not the problem of WiFi equipment two of the more secondary AP of enough carries does not have to the NAT translation burden of worry outlet device.
Detailed description of the invention
Fig. 1 is the flow chart of method;
Fig. 2 is the flow chart that main AP forwards secondary AP data to outlet device;
Fig. 3 is the flow chart that main AP forwards outlet device data to secondary AP;
Fig. 4 be secondary AP forwarding wireless network in data to main AP flow chart;
Fig. 5 is the flow chart that secondary AP forwards the data at AP front panel end to main AP;
Fig. 6 is that secondary AP forwards main AP data to wireless side and the flow chart at front panel end;
Fig. 7 is the flow chart that main AP forwards front panel end and wireless end data to outlet device.
Specific embodiment
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 scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.The present invention being usually described and illustrated herein in the accompanying drawings is implemented
The component of example can be arranged and be designed with a variety of different configurations.
Therefore, the detailed description of the embodiment of the present invention provided in the accompanying drawings is not intended to limit below claimed
The scope of the present invention, but be merely representative of selected embodiment of the invention.Based on the embodiments of the present invention, this field is common
Technical staff's every other embodiment obtained without creative efforts belongs to the model that the present invention protects
It encloses.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
In the description of the present invention, it should be noted that the orientation of the instructions such as term " on ", "inner", "outside" or position are closed
System for be based on the orientation or positional relationship shown in the drawings or the invention product using when the orientation usually put or position close
System, is merely for convenience of description of the present invention and simplification of the description, rather than the device or element of indication or suggestion meaning must have
Specific orientation is constructed and operated in a specific orientation, therefore is not considered as limiting the invention.
In the description of the present invention, it is also necessary to which explanation is unless specifically defined or limited otherwise, term " setting ",
" installation ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or integrally connect
It connects;It can be mechanical connection, be also possible to be electrically connected;It can be directly connected, can also indirectly connected through an intermediary, it can
To be the connection inside two elements.For the ordinary skill in the art, above-mentioned term can be understood with concrete condition
Concrete meaning in the present invention.
Technical solution of the present invention is described in further detail with reference to the accompanying drawing, but protection scope of the present invention is not limited to
It is as described below.
As shown in Figure 1, a kind of data of port network transmit exchange method, the data transmission exchange method includes following
Content:
Main AP judges the data received to determine that data transmit interaction direction;
It transmits interaction direction according to the data data are carried out data transmission interacting after treatment.
Further, because outlet device data are without tag label, and secondary AP has tag label, so main AP mainly leads to
It crosses and judges whether with tag label in received data, and then judge the transmission direction of the data received.
Further, what label the first label and the second label are specifically, can with sets itself, only need the first label and
Second label is not same label.
Preferably, the first label is tag6 label, and the second label is tag9 label.
The main AP data received are judged with determine data transmit interaction direction the following steps are included:
Main AP judges whether received data have tag9 label;
If having tag9 label, received data are secondary AP data, illustrate that the data are the secondary AP numbers of interchanger forwarding
According to it is to transmit interaction from secondary AP or terminal device to the data of outlet device that data, which transmit interaction direction,;
If no band tag9 label, received data are outlet device data, illustrate that the data are going out for interchanger forwarding
Jaws equipment data, it is that outlet device is interacted to the transmission of the data of secondary AP or terminal device that data, which transmit interaction direction,.
The data transmission exchange method further includes carrying out VLAN to main AP and secondary AP before carrying out data transmission interaction
Divide setting;
Described couple of main AP carries out VLAN and divides setting to include dividing a virtual port on main AP to receive for forwarding
Outlet device data to secondary AP;
Further, virtual port is used for outlet device data forwarding after data processing to secondary AP, Yi Jiyong
Data processing is carried out into main AP in receiving secondary AP data;
Main AP further includes having to connect port on one, and data processing is carried out into main AP for receiving outlet device data, and
For the secondary AP data for passing through main AP data processing to be forwarded to outlet device by upper even port, it is subsequently sent to outer net.
It is described to secondary AP carry out VLAN divide setting include divide that VLAN ID with tag9 label is used for will be from secondary AP
In tag9 label and only receive the data with tag9 label on the data band that sends.
Further, secondary AP also includes connecting port on one, and port is connected on this to be had by VLAN division one with tag9 label
VALN ID, secondary AP data send the virtual port that main AP is then forwarded to by interchanger by upper even port.
The secondary AP also needs to carry out tag label addition step in secondary AP before transmitting data to the main AP,
Content is as follows:
Add in initial data when corresponding upper company port enters secondary AP in the software Br-lan that initial data passes through secondary AP
Enter tag6 label;
Tag9 label is added when data drive by secondary AP;
Data remove tag6 label when passing through switch, and data only have tag9 label at this time.
It is described that data are carried out data transmission after treatment according to the data transfer direction to include the received number of main AP
Data processing when data processing transmitting step and the received data of main AP when according to for secondary AP data are outlet device data passes
Defeated step.
Embodiment 1, main AP forward secondary AP data to outlet device.
Data processing transmitting step when the received data of main AP are secondary AP data is as follows:
Secondary AP by with the second label data pass through main AP software Br-lan in it is corresponding it is upper company port be sent to master
AP, and add first label;
Data remove the first label in data when driving by main AP, and hand to the virtual port in Br-lan
Main AP virtual port, which hand to data after NAT is converted, connects port and by the second tag modification into the on main AP
One label;
Main AP hardware switch removes the first label, and sends outlet device for the data of no label and re-send to outside
Net.
Further, it is also necessary to while checking the purpose IP address received in data;If purpose IP address is not current
Network segment, then to judge that data destination is outer net;
As shown in Fig. 2, the data sended over by secondary AP are with a tag9, therefore when the upper even port of main AP connects
Receiving the data with tag label can allow the data frame to be directly entered without abandoning.Main AP can add when receiving the data frame
A upper Tag6, the data frame can contain there are two tag (tag6 and tag9) at this time.It can be by when driving receives the data frame
One tag label (tag6) removes and hands to the Eth1.9 in Br-lan (the virtual port secondary AP).Eth1.9 is routed
Conversion gives data frame to Eth1.6 and tag9 is revised as tag6, and Eth1.6 gives data frame to driving again, and driving directly will
Data give switch, and hardware switch can first peel the tag6 of the data off before forwarding the data.Make the data frame without
Tag label.So that outlet device can receive data.
Embodiment 2, main AP forward outlet device to secondary AP.
Data processing transmitting step when the received data of main AP are outlet device data is as follows:
Upper even port corresponding in software Br-lan that the data of no label pass through main AP is sent main AP by outlet device
And add first label;
Connect port progress NAT on main AP to convert and by the first tag modification into the second label;
Data remove first label by main AP hardware switch by main AP driving one the first label of addition
Afterwards, corresponding secondary AP or terminal device are sent to by the virtual port of main AP.
As shown in figure 3, because outlet device be without tag, therefore main AP hardware switch directly in the data frame plus
Enter a tag6 and enters driving.Driving finds only one tag, can directly give the eth1.6 in br-lan.Eth1.6 into
Tag6 is revised as tag9 and transfers to the eth1.9 in br-lan by row NAT conversion.A tag6 can be added when through overdriving,
By peeling a tag6 when hardware switch off.Outlet device data forwarding is so contained one to secondary AP is former to realize
tag9。
As shown in figure 4, data transmission exchange method further include in secondary AP forwarding wireless network data to main AP.
Data in wireless network reach the radio port in br-lan.The data frame received is forwarded to by radio port
The port eth1.6.The data frame will increase a tag6 behind the port eth1.6, be further added by one when being overdrived layer
tag9.Data frame tag label containing there are two at secondary AP at this time.But the meeting when the data frame finally passes through the upper even mouth of secondary AP
One tag6 is peeled off by hardware switch.To can still contain tag (this when main AP hardware switch receives the data
Tag can be used for the source of mark data: band tag then secondary AP, without tag then outlet device).
As shown in figure 5, data transmission exchange method further includes that secondary AP forwards the data at AP front panel end to main AP.
Secondary AP, which will increase a tag7 when receiving front panel data and be overdrived, gives br-lan, in br-lan
It forwards the data to eth1.6 and tag7 is revised as tag6, a tag9 is further added by driving, removes one in switch
A tag6 realizes one tag9 of data band that secondary AP is sent.
As shown in fig. 6, data transmission exchange method further includes that secondary AP forwards main AP data to wireless side and front panel
End.
Data frame is containing a tag9 when main AP is sent to secondary AP data.Therefore secondary AP can be added in switch
One tag6.Judge that there are two tag for data frame tool when the data frame is through overdriving.The data can be peeled off at this time
tag9.Data are given to the eth1.6 in br-lan again.If data destination is front panel port at this time, eth1.6 can be incited somebody to action
Tag6 is converted to tag7, and gives eth1.7, only one tag is found when through overdriving, driving is without any processing, and is passing through
Remove tag7 when crossing switch.Data frame is forwarded to front panel.Data frame can be forwarded if being wirelessly if data destination
To wireless side.
As shown in fig. 7, data transmission exchange method further includes the main forwarding front panel end AP and wireless end data to out
Jaws equipment.
Tag7 is directly collected from hardware and added to data by main AP, hands in eth1.6 in br-lan, and will
Tag7 is revised as tag6.Eth1.6 directly gives data frame to driving again, and driving is given switch again, removed in switch
tag6.To transmit data to outlet device.If data are received from wireless side, then data can add in br-lan
A upper tag6 simultaneously gives driving.Driving finds only one tag, directly can give data to switch.Switch peels one off
A tag.Realization is sent to outlet device data without tag.
A kind of data based on port network transmit the data transmission interactive system of exchange method, including one is used for inside and outside
The outlet device that the data of portion's network interact, the interchanger being attached with the outlet device, and be connected to described
A main AP and at least one secondary AP on interchanger.
Further, outlet device only sends and receives the data of no tag label, and outlet device includes that all are right for light cat etc.
The communication equipment that the data of intranet and extranet interact.
Further, interchanger is for forwarding outlet device data or secondary AP data into main AP.
The company of being corresponding with port (Eth1.6) and front panel port in the software of the main AP and secondary AP
(Eth1.7);The main AP also has a virtual port (Eth1.9) by VLAN division.
The upper even port of the secondary AP divides the VALN ID for having second label of band by VLAN.
Further, the upper even port of secondary AP can only receive the data with identical tag9 label, if receiving others
Data will be abandoned directly.
Further, secondary AP also needs to handle data before data are forwarded to main AP by interchanger, tool
Holding in vivo are as follows: a tag6 label can be added in secondary AP initial data software when by the Br-lan of secondary AP in initial data,
A tag9 label can be added when driving by secondary AP in data, and at this moment secondary AP can have two tag before by hardware switch
Label, also there is also a tag label (tag9 labels) after hardware switch.This tag label is for mark data
The data of secondary AP.
Main AP is received can add a tag6 after the data with tag9 label again, can will be secondary when data drive by main AP
Tag9 label removes in AP data, and gives the Eth1.6 for connecting mouth on corresponding in Br-lan, finally removes a tag6 mark again
It signs and carries out NAT conversion and send data, outlet device can directly receive the data of no tag label at this time.
The above description is only an embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.