CN101150481B - Method and device for WLAN and LAN intercommunication - Google Patents

Method and device for WLAN and LAN intercommunication Download PDF

Info

Publication number
CN101150481B
CN101150481B CN200710166384.4A CN200710166384A CN101150481B CN 101150481 B CN101150481 B CN 101150481B CN 200710166384 A CN200710166384 A CN 200710166384A CN 101150481 B CN101150481 B CN 101150481B
Authority
CN
China
Prior art keywords
message
wlan
lan
territory
bssid
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN200710166384.4A
Other languages
Chinese (zh)
Other versions
CN101150481A (en
Inventor
刘亭海
赵恒卓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN200710166384.4A priority Critical patent/CN101150481B/en
Publication of CN101150481A publication Critical patent/CN101150481A/en
Application granted granted Critical
Publication of CN101150481B publication Critical patent/CN101150481B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method of intercommunication between WLAN and LAN, which includes the following steps: messages of WLAN format which are required to be sent to a target address outside WLAN are transformed into messages of LAN format and then are sent to the target address outside WLAN; and messages of LAN format which are required to be sent to a target address inside WLAN are transformed into messages of WLAN format and then are sent to the target address inside WLAN. The invention also discloses a router device for realizing the intercommunication between WLAN and LAN. By applying the invention, messages of WLAN format and messages of LAN format are mutually transformed, and converged communications of the accessed local area network of WLAN/LAN is reached. Besides, the difference among various protocols like IEEE802.11/802.3 is shielded on the link layer, and the partitioning range of a VLAN domain is expanded. Therefore, a local area network that manages and divides theWLAN/LAN with respect to the VLAN is achieved, thus causing L2-based communications to be highly efficient but with simple configuration.

Description

The method and apparatus of WLAN and LAN intercommunication
Technical field
The present invention relates to networking technology area, relate in particular to the method and apparatus of a kind of WLAN and LAN intercommunication.
Background technology
Along with the development of data communication technology, WLAN (Wireless Local Area Network, WLAN (wireless local area network)) has more and more been accepted by the user and universal coming as a kind of wireless local broadband access method based on IEEE 802.11 agreements.In general, the classical group net mode of WLAN local area network (LAN) as shown in Figure 1.
This network mainly comprises Station (accessing terminal), AP (Access Point, access point), LANSwitch (switch), AC (Access Controller, access controller) and equipment such as RADIUS (RemoteAuthentication Dial In User Service, remote customer dialing authentication system) server.According to the difference of AP access way, be divided into direct access, L2 (2,2 layers of Layer) inserts and L3 (Layer3,3 layers) inserts three kinds.
The release of multiservice router, not only realized the fusion of route and exchange, provide the networking demand of the integrated access function of WLAN/LAN more and more, how to realize on multiservice router that like this WLAN/LAN inserts and both efficient intercommunications, simplify network layer, reducing networking complexity and maintenance cost is the problem of wanting emphasis to consider.
At present WLAN/LAN networking intercommunication scheme is divided into two kinds of situations according to FIT AP and FAT AP: FIT AP function ratio a little less than, double layer intercommunication must come control and management by AC between intercommunication between the Station, Station and the PC.Along with FAT AP equipment has appearred in the progress of wireless technology, FAT AP function is strong, can independent networking, do not need AC equipment.As shown in Figure 2, though FAT AP can realize two layers of forwarding between the Station, but because the wireless local terminal that is based on IEEE 802.11 that FAT AP realizes inserts, general ether WAN mouth (the Wide Area Network that only provides based on IEEE 802.3u, wide area network) (three layers of mouth) do not provide ether switched lan mouth.Station belongs to different LANs (Station belongs to 802.11 protocol domains, and PC belongs to 802.3 protocol domains) with PC, can not be directly two layers of forwarding, and needing could intercommunication in IP layer route, after carrying out the encapsulation of LAN link layer protocol through FAT AP.
The shortcoming of this scheme is: realize that the required network equipment of WLAN and LAN intercommunication is many, integration is poor: for FITAP equipment, communication must be finished on AP, FITAP also needs AC by special agreement such as LWAPP (Light Weight Access Point Protocol, Lightweight Access Point Protocol) manages, this centralized architecture way to manage requires high for AC, be not suitable for low-cost networking requirement on a small scale.For FATAP equipment, though can independent networking, the double layer intercommunication of WLAN/LAN can not be provided, can only realize that it is very complicated to cause the low and numerous independent F ATAP administration configuration of forwarding performance to get up like this by three layers of route, increased the difficulty of networking.
Summary of the invention
The invention provides the method and apparatus of a kind of WLAN and LAN intercommunication, be used to realize the interior terminal mutual of local area network (LAN) of WLAN/LAN.
For achieving the above object, the invention provides a kind of sending method of WLAN form message, it is characterized in that, may further comprise the steps:
The message of the WLAN form that reception need send to the destination address outside the WLAN (wireless local area network) WLAN;
The message of described WLAN form is converted to the message of LAN form; Wherein, the message of described WLAN form is the message based on 802.11 forms; The message of described LAN form is the message based on 802.3 forms; Concrete, with in described WLAN form message and the LAN form message with transmit relevant territory and change mapping mutually; Described conversion mapping comprises: obtain the mapping relations of pre-configured WLAN territory BSSID and LAN territory VLANID, obtain VLANID according to the BSSID in the WLAN form message, the content in the VLANID territory of generation LAN form message;
Transmit the message of described LAN form to described destination address.
Wherein, before the message of the WLAN form that the destination address that described reception need be outside WLAN (wireless local area network) sends, also comprise step:
Judge the type of the message of described WLAN form, when described message is interior control frame of WLAN or protocol frame, handles the described message of termination, otherwise continue.
Wherein, described with in described WLAN form message and the LAN form message with transmit relevant territory and change mapping steps mutually and be specially:
Obtain Address1, Address2, Address3 and Frame Body territory in the message of WLAN form;
According to the content in the DA territory of the generation of the target MAC (Media Access Control) address in described Address1 territory LAN form message;
According to the content in the SA territory of the generation of the source MAC in described Address2 territory LAN form message;
Obtain VLANID according to the BSSID in the described Address3 territory and generate content in the VLANID territory of LAN form message;
According to the content in the Data territory of the generation of the data in described Frame Body territory LAN form message;
Calculate the CRC of message and generate content in the CRC territory of LAN form message according to the LAN form message territory after the conversion.
Wherein, describedly obtain the step that VLANID generates the content in the VLANID territory of LAN form message according to the BSSID in the Address3 territory and be specially:
Obtain the mapping relations of pre-configured WLAN territory BSSID and LAN territory VLANID;
According to described mapping relations, obtain the VLANID of the BSSID correspondence in the described Address3 territory;
Generate the content in the VLANID territory of described LAN form message according to the described VLANID that gets access to.
Wherein, described step from the message of described LAN form to described destination address that transmit is specially:
When the destination address of the message of described LAN form and source address are positioned at same VLAN, the message of described LAN form is directly transmitted in VLAN;
When the destination address of the message of described LAN form was positioned at different VLAN with source address, the message up sending of the LAN form that described travelling across VLAN is transmitted was handled to the IP layer;
When the message of described LAN form is 2 layers/3 layer protocol messages, handle delivering to the IP layer on described 2 layers/3 layer protocol messages.
The present invention also provides a kind of sending method of LAN form message, may further comprise the steps:
Reception need be in WLAN the message of the LAN form transmitted of destination address;
The message of described LAN form is converted to the message of WLAN form; Wherein, the message of described WLAN form is the message based on 802.11 forms; The message of described LAN form is the message based on 802.3 forms; Concrete, with in described WLAN form message and the LAN form message with transmit relevant territory and change mapping mutually; Described conversion mapping comprises: according to the WLAN territory BSSID that has set up and the mapping relations of terminal address, obtain the content in the BSSID territory of address generation WLAN form message of the purpose terminal in the LAN form message;
Transmit the message of described WLAN form to described destination address.
Wherein, the step of the message of the LAN form transmitted of the destination address that described reception need be in WLAN is specially:
When the purpose terminal address that obtains according to the DA territory in the described LAN form message is arranged in WLAN, is judged as and the terminal of described LAN form message in WLAN need be transmitted.
Wherein, described with in described WLAN form message and the LAN form message with transmit relevant territory and change mapping steps mutually and be specially:
Obtain DA, SA, VLANID and DATA territory in the message of LAN form;
According to the content in the Address1 territory of the generation of the target MAC (Media Access Control) address in described DA territory WLAN form message;
According to the content in the Address2 territory of the generation of the source MAC in described SA territory WLAN form message;
The address that obtains the purpose terminal generates the content in the BSSID territory of WLAN form message;
According to the content in the Frame Body territory of the generation of the content in described DATA territory WLAN form message;
Calculate the FCS of message and generate content in the FCS territory of WLAN form message according to the WLAN form message territory after the conversion.
Wherein, the described address that obtains the purpose terminal step that generates the content in the BSSID territory of WLAN form message is specially:
Obtain the WLAN territory BSSID that set up and the mapping relations of terminal address;
According to the target MAC (Media Access Control) address in described mapping relations and the described DA territory, obtain the BSSID of described purpose terminal;
Generate the content in the BSSID territory of described WLAN form message according to the described BSSID that gets access to.
The present invention also provides the method for a kind of WLAN and LAN intercommunication, comprising:
The message of the WLAN form that destination address that need be outside WLAN sends is converted to the message and the forwarding of the destination address to described WLAN outside of LAN form; And
The message of the LAN form that destination address that need be in WLAN is transmitted is converted to the message of WLAN form, and the destination address in described WLAN is transmitted;
Wherein, the message of described WLAN form is the message based on 802.11 forms; The message of described LAN form is the message based on 802.3 forms; Concrete, with in described WLAN form message and the LAN form message with transmit relevant territory and change mapping mutually; Described conversion comprises: according to the WLAN territory BSSID that has set up and the mapping relations of terminal address, the address that obtains the purpose terminal in the LAN form message generates the content in the BSSID territory of WLAN form message; Obtain the mapping relations of pre-configured WLAN territory BSSID and LAN territory VLANID, obtain VLANID, the content in the VLANID territory of generation LAN form message according to the BSSID in the WLAN form message.
Wherein, the described message that will need the WLAN form that the destination address outside WLAN sends also comprises before being converted to the message of LAN form and the forwarding of the destination address to described WLAN outside:
The mapping relations of the BSSID of the address of terminal and WLAN in the storage WLAN, and the mapping relations of configuration WLAN territory BSSID and LAN territory VLANID.
Wherein, the described message that will need the WLAN form that the destination address outside WLAN sends is converted to the message of LAN form and the step of the forwarding of the destination address to described WLAN outside is specially:
Generate the content in message territory in the message of LAN form according to the content in the message territory in the message of WLAN form;
The destination address of described LAN form message outside described WLAN transmitted;
Wherein the VLANID that BSSID generates in the LAN form in the WLAN form is specially:
According to the mapping relations of described WLAN territory BSSID and LAN territory VLANID, and the BSSID that sends the interior terminal of WLAN of described WLAN form message, obtain the VLAN under the terminal in the described WLAN, and generate LAN form message.
Wherein, the described message that will need the LAN form that the destination address in WLAN transmits is converted to the message of WLAN form, and the step that the destination address in described WLAN is transmitted is specially:
Generate the content in message territory in the message of WLAN form according to the content in the message territory in the message of LAN form;
The destination address of described WLAN form message in described WLAN transmitted;
Wherein the BSSID in the generation of the VLANID in the LAN form WLAN form is specially:
According to the mapping relations of the BSSID of the address of terminal in the described WLAN and WLAN, and the purpose terminal address of described LAN form message, obtain the BSSID of described purpose terminal, and generate WLAN form message.
The present invention also provides a kind of router device, is used to realize WLAN and LAN intercommunication, comprising:
The WLAN interface unit is used for carrying out with the terminal that is connected by the WLAN mode message interaction of WLAN form;
Converting unit is after being used for the message that described WLAN interface unit receives the WLAN form that the destination address outside WLAN sends is converted to the message of LAN form, to LAN interface unit or high-level interface unit forwards; Or after the message of the LAN form that the terminal in WLAN that LAN interface unit or high-level interface unit receive is sent is converted to the message of WLAN form, transmit to the WLAN interface unit; Wherein, the message of described WLAN form is the message based on 802.11 forms; The message of described LAN form is the message based on 802.3 forms; Concrete, with in described WLAN form message and the LAN form message with transmit relevant territory and change mapping mutually; Described conversion comprises: according to the WLAN territory BSSID that has set up and the mapping relations of terminal address, the address that obtains the purpose terminal in the LAN form message generates the content in the BSSID territory of WLAN form message; Obtain the mapping relations of pre-configured WLAN territory BSSID and LAN territory VLANID, obtain VLANID, the content in the VLANID territory of generation LAN form message according to the BSSID in the WLAN form message;
The LAN interface unit is used for carrying out with the terminal that is connected by the LAN mode message interaction of LAN form;
The high-level interface unit is used for carrying out with upper layer network the message interaction of LAN form.
Wherein, described converting unit further comprises:
WLAN form message judgment sub-unit is used to judge whether the WLAN form message that receives needs the destination address outside WLAN to send, and when needing described WLAN form message is sent to WLAN form message and changes subelement;
WLAN form message is changed subelement, is used for the WLAN form message that described WLAN form message judgment sub-unit sends is converted to the message of LAN form;
LAN form message judgment sub-unit is used to judge whether the LAN form message that receives needs the destination address in WLAN to send, and when needing described LAN form message is sent to LAN form message and changes subelement;
LAN form message conversion subelement, the message that is used for LAN form that described LAN form message judgment sub-unit is sent is converted to the message of WLAN form;
Wherein, described converting unit also comprises:
The VLAN mapping relations are set subelement, are used to set the mapping relations of WLAN territory BSSID and LAN territory VLANID and offer described WLAN form message conversion subelement be used for the message conversion;
The BSS mapping relations are set subelement, are used to store the mapping relations of the WLAN territory BSSID that set up and terminal address and offer described LAN form message conversion subelement be used for message conversion.
Compared with prior art, the present invention has the following advantages:
By the conversion of WLAN form and LAN form message, realized the converged communication of the local area network (LAN) that WLAN/LAN inserts, shielded difference between different agreements such as IEEE 802.11/802.3 at link layer, enlarged the division scope of vlan domain.Realized dividing from the unified management of VLAN aspect the local area network (LAN) of WLAN/LAN, feasible communication based on L2 is efficient and configuration is simple.
Description of drawings
Fig. 1 is the classical group net mode schematic diagram of WLAN local area network (LAN) in the prior art;
Fig. 2 is the network topology schematic diagram of FATAP in the prior art;
Fig. 3 is the principle schematic of WLAN and LAN interoperability methods among the present invention;
Fig. 4 is the flow chart of among the present invention the message of terminal transmission among the WLAN being transmitted;
Fig. 5 is the WLAN message structure schematic diagram of 802.11 forms that use among the present invention;
Fig. 6 is the LAN message structure schematic diagram of 802.3 forms that use among the present invention;
Fig. 7 is the flow chart that the terminal in WLAN E-Packets among the present invention;
Fig. 8 is the structural representation of a kind of router among the present invention;
Fig. 9 is the application scenarios schematic diagram of a kind of router among the present invention.
Embodiment
The core concept of a kind of WLAN of the present invention and LAN interoperability methods is: the WLAN form message that the destination address outside WLAN that will receive from WLAN sends is converted to LAN form message, will be in WLAN the message of the LAN form that sends of destination address be converted to the message of WLAN form, the mutual conversion of WLAN form and LAN form by this message has realized intercommunication and converged communication between WLAN and LAN.
The principle of WLAN and LAN interoperability methods as shown in Figure 3 among the present invention, in the WLAN/LAN networking, the message of the WLAN form that will send from the destination address outside WLAN that the WLAN physical layer receives carries out format conversion, send on being converted to behind the message of LAN form, the form of WLAN/LAN message is unified, thus the intercommunication of realization WLAN and LAN.Simultaneously, use the local area network (LAN) of VLAN unified management WLAN/LAN after reunification, can realize the direct intercommunication of L2 at the message format of WLAN/LAN.
Below with the message of WLAN form for based on the message of the message of 802.11 forms, LAN form for the message based on 802.3 forms is an example, the method for a kind of WLAN of the present invention and LAN intercommunication is described.
The flow process that the message of terminal transmission among the WLAN is transmitted at first is described, as shown in Figure 4, specifically may further comprise the steps:
The 802.11 form messages that terminal sends among step s401, the reception WLAN.
Step s402, judge the type of this message, carry out step s406 during for control frame in the WLAN or protocol frame, carry out step s403 during for other frames.
In this step, after the WLAN physical layer receives 802.11 form messages,, can judge type of message according to the Type/Subtype position in the message FrameControl territory.During for control frame in the WLAN or protocol frame, can directly handle termination, otherwise send processing on needing by WLAN MAC.
Step s403, judge whether the destination address of this message is positioned at WLAN, is not then to carry out step s404, otherwise carry out step s407.
Step s404, this message is carried out encapsulating again and changing between message.
In this step, the message for needs are handled is converted to the message of 802.3 forms with the WLAN message of 802.11 forms, and encapsulates again.
Step s405, transmit the message after this conversion and finish.
For the message of transmitting in same VLAN, the destination address of 802.3 form messages after directly will changing in same VLAN transmitted and got final product.For the L2/3 protocol massages with need message that travelling across VLAN transmits to deliver to the IP layer network on then to handle.
Step s406, control frame or the protocol frame directly handled in this WLAN of termination also finish.
Step s407, this message of processing and end in WLAN.
According to the related protocol in the WLAN, directly this message of processing forward gets final product in WLAN.
Again encapsulate between the message that relates among the step s404 and conversion specifies as follows: at present the WLAN message structure of 802.11 forms that use as shown in Figure 5, the message structure of 802.3 forms is as shown in Figure 6.
With reference to figure 5 and Fig. 6, the form of WLAN/LAN data message is different, wherein can change mapping mutually with LAN in each territory of WLAN form message with transmit relevant territory and comprise:
WLAN message territory LAN message territory Explanation
Address1 DA Target MAC (Media Access Control) address
Address2 SA Source MAC
Address3 VLANID Address3 represents BSSID, can be mapped to certain VLANID in logic
Address4 / WLAN strides BSS and transmits used address, does not handle
Frame Body Data If the WLAN data length surpasses the LAN maximum, need carry out message fragment
FCS CRC Check value need recomputate
According to above rule, WLAN 802.11 format conversion can be become LAN 802.3 forms.Concrete conversion comprises:
Target MAC (Media Access Control) address in the 802.11 form message Address1 territories is filled up to the DA territory of 802.3 form messages;
Source MAC in the 802.11 form message Address2 territories is filled up to the SA territory of 802.3 form messages;
Obtain the VLANID territory that VLANID is filled up to 802.3 form messages according to BSS (Basic Service Set, the basic service set) ID in the 802.11 form message Address3 territories;
Data in the 802.11 form message Frame Body territories are filled up to the Data territory of 802.3 form messages;
The CRC (Cyclic RedundancyCheck, cyclic redundancy check (CRC) code) that recomputates message according to 802.3 form message territories after the conversion is worth and is filled up to the CRC territory of 802.3 form messages.
Wherein, obtaining according to BSSID in the realization of VLANID, needing in advance the BSSID in the WLAN virtual link layer to be mapped on the VLAN in the LAN link layer.Wherein, may be mapped with a plurality of BSSID on the VLAN, promptly VLANID can corresponding one or more BSSID, but a BSSID can only corresponding VLANID.Like this, just can get access to the VLANID of 802.3 form messages according to the BSSID in 802.11 format messages.After the message conversion, just in the VLAN aspect WLAN/LAN link layer is merged, realized the expansion of vlan domain, follow-up forwarding is also only used 802.3 form messages is after reunification handled, the difference of shielding WLAN/LAN physical link layer.
For the message of 802.11 forms that terminal sends in WLAN of terminal in upper strata IP network and the LAN, forwarding process specifically may further comprise the steps as shown in Figure 7:
Step s701, reception need 802.3 form messages of forwarding.
Step s702, according to the destination address of message, judge the position of purpose terminal, carry out step s703 when being positioned at LAN, carry out step s704 when being positioned at WLAN.
In this step,, judge that corresponding purpose terminal is interior terminal of WLAN or the terminal among the LAN according to the destination address (as MAC Address) of message.
Step s703, the corresponding destination address of message in LAN transmitted and finished.
Step s704, this message is carried out encapsulating again and changing between message.
In this step, the Frame for needs are handled is converted to the WLAN message of 802.11 forms with the message of 802.3 forms, and encapsulates again.The description among the rapid s404 of previous step is seen in the message territory of 802.3 forms that need change, needs the content of conversion to comprise:
Target MAC (Media Access Control) address in the DA territory of 802.3 form messages is filled up to the Address1 territory of 802.11 form messages;
Source MAC in the SA territory of 802.3 form messages is filled up to the Address2 territory of 802.11 form messages;
Obtain the BSSID of purpose terminal according to the address of purpose terminal, be filled up to the BSSID territory of 802.11 form messages;
Data in the Data territory of 802.3 form messages are filled up to the FrameBody territory of 802.11 form messages;
The FCS (Frame CheckSequence, frame check sequence) that recomputates message according to 802.11 form message territories after the conversion is worth and is filled up to the FCS territory of 802.11 form messages.
Wherein, in the realization of obtaining of BSSID, need obtain by the mapping relations of BSSID and terminal in the WLAN territory, these mapping relations have been set up when wireless terminal inserts among the WLAN, i.e. terminal its MAC Address and definite mapping relations of BSSID existence after inserting WLAN.According to the MAC Address of this terminal and the mapping relations of BSSID, and the target MAC (Media Access Control) address in the DA territory (being the MAC Address of terminal), can get access to the BSSID of purpose terminal; Thereby with this BSSID that gets access to be filled up to the BSSID territory of 802.11 form messages.
Step s705, the terminal in WLAN are transmitted the message after this conversion.
By the method for using the foregoing description to provide, WLAN form and LAN form message are changed, realized the converged communication of the local area network (LAN) that WLAN/LAN inserts, shielded difference between different agreements such as IEEE802.11/802.3, enlarged the division scope of vlan domain at link layer.Realized dividing from the unified management of VLAN aspect the local area network (LAN) of WLAN/LAN, feasible communication based on L2 is efficient and configuration is simple.
The present invention also provides a kind of router device, is used to realize WLAN and LAN intercommunication, and its structure comprises as shown in Figure 8:
WLAN interface unit 10 is used for carrying out with the terminal that is connected by the WLAN mode message interaction of WLAN form.
Converting unit 20 after being used for the WLAN form message that the destination address outside WLAN that WLAN interface unit 10 receives sends is converted to LAN form message, is transmitted to LAN interface unit 30 or high-level interface unit 40; Or after the LAN form message that sends of the terminal in WLAN that LAN interface unit 30 or high-level interface unit 40 received is converted to WLAN form message, transmit to WLAN interface unit 10.
LAN interface unit 30 is used for carrying out with the terminal that is connected by the LAN mode message interaction of LAN form;
High-level interface unit 40 is used for and the message interaction that carries out the LAN form by upper layer network.
Concrete, converting unit 20 further comprises:
WLAN form message judgment sub-unit 21 is used to judge whether the WLAN form message that receives needs the destination address outside WLAN to send, and when needing this WLAN form message is sent to WLAN form message and changes subelement 22, otherwise directly handle in WLAN.
WLAN form message is changed subelement 22, is used for the message of WLAN form is converted to the message of LAN form, and transmits by LAN interface unit 30 or high-level interface unit 40.
LAN form message judgment sub-unit 23 is used to judge whether the LAN form message that receives needs the destination address in WLAN to send, and when needing described LAN form message is sent to LAN form message and changes subelement, otherwise directly handle outside WLAN.
LAN form message is changed subelement 24, is used for the message of LAN form is converted to the message of WLAN form, and transmits by WLAN interface unit 10.
The VLAN mapping relations are set subelement 25, are used to set the mapping relations of WLAN territory BSSID and LAN territory VLANID and offer WLAN form message conversion subelement 22 be used for the message conversion.
The BSS mapping relations are set subelement 26, are used for the WLAN territory BSSID and the mapping relations of terminal address that have set up when storage terminal inserts WLAN, and these mapping relations are offered LAN form message conversion subelement 24 are used for message conversion.
One application scenarios of this router as shown in Figure 9, router both provided local switched lan mouth; Also can serve as FAT AP, provide WLAN to insert.Realize according to this method, though WLAN has different physical layers with the LAN port, but can be divided in logic in the same VLAN (can be divided into VLAN1 simultaneously) as SSID1, PortA1, PortB1, then directly on router according to 802.3 unified message informations carry out mac address table search with VLAN in two layers of forwarding, the message that L2/3 protocol massages and travelling across VLAN are transmitted is delivered to the IP layer of router on then and is handled.
By the equipment that uses the foregoing description to provide, WLAN form and LAN form message are changed, realized the converged communication of the local area network (LAN) that WLAN/LAN inserts, shielded difference between different agreements such as IEEE802.11/802.3, enlarged the division scope of vlan domain at link layer.Realized dividing from the unified management of VLAN aspect the local area network (LAN) of WLAN/LAN, feasible communication based on L2 is efficient and configuration is simple.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprises that some instructions are used so that an equipment is carried out the described method of each embodiment of the present invention.
More than disclosed only be several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.

Claims (16)

1. the sending method of a WLAN form message is characterized in that, may further comprise the steps:
The message of the WLAN form that reception need send to the destination address outside the WLAN (wireless local area network) WLAN;
The message of described WLAN form is converted to the message of LAN form; Wherein, the message of described WLAN form is the message based on 802.11 forms; The message of described LAN form is the message based on 802.3 forms; Concrete, with in described WLAN form message and the LAN form message with transmit relevant territory and change mapping mutually; Described conversion mapping comprises: obtain the mapping relations of pre-configured WLAN territory BSSID and LAN territory VLANID, obtain VLANID according to the BSSID in the WLAN form message, the content in the VLANID territory of generation LAN form message;
Transmit the message of described LAN form to described destination address.
2. the sending method of WLAN form message according to claim 1 is characterized in that, before the message of the WLAN form that described reception need the destination address outside WLAN (wireless local area network) sends, also comprises step:
Judge the type of the message of described WLAN form, when described message is interior control frame of WLAN or protocol frame, handles the described message of termination, otherwise continue.
3. the sending method of WLAN form message according to claim 1 is characterized in that,
Described with in described WLAN form message and the LAN form message with transmit relevant territory and change mapping steps mutually and be specially:
Obtain Address1, Address2, Address3 and Frame Body territory in the message of WLAN form;
According to the content in the DA territory of the generation of the target MAC (Media Access Control) address in described Address1 territory LAN form message;
According to the content in the SA territory of the generation of the source MAC in described Address2 territory LAN form message;
Obtain VLANID according to the BSSID in the described Address3 territory, the content in the VLANID territory of generation LAN form message;
According to the content in the Data territory of the generation of the data in described Frame Body territory LAN form message;
Calculate the CRC of message and generate content in the CRC territory of LAN form message according to the LAN form message territory after the conversion.
4. as the sending method of WLAN form message as described in the claim 3, it is characterized in that, describedly obtain the step that VLANID generates the content in the VLANID territory of LAN form message according to the BSSID in the Address3 territory and be specially:
Obtain the mapping relations of pre-configured WLAN territory BSSID and LAN territory VLANID;
According to described mapping relations, obtain the VLANID of the BSSID correspondence in the described Address3 territory;
Generate the content in the VLANID territory of described LAN form message according to the described VLANID that gets access to.
5. the sending method of WLAN form message according to claim 1 is characterized in that, described step from the message of described LAN form to described destination address that transmit is specially:
When the destination address of the message of described LAN form and source address are positioned at same VLAN, the message of described LAN form is directly transmitted in VLAN;
When the destination address of the message of described LAN form was positioned at different VLAN with source address, the message up sending of the LAN form that described travelling across VLAN is transmitted was handled to the IP layer;
When the message of described LAN form is 2 layers/3 layer protocol messages, handle delivering to the IP layer on described 2 layers/3 layer protocol messages.
6. the sending method of a LAN form message is characterized in that, may further comprise the steps:
Reception need be in WLAN the message of the LAN form transmitted of destination address;
The message of described LAN form is converted to the message of WLAN form; Wherein, the message of described WLAN form is the message based on 802.11 forms; The message of described LAN form is the message based on 802.3 forms; Concrete, with in described WLAN form message and the LAN form message with transmit relevant territory and change mapping mutually; Described conversion mapping comprises: according to the WLAN territory BSSID that has set up and the mapping relations of terminal address, obtain the content in the BSSID territory of address generation WLAN form message of the purpose terminal in the LAN form message;
Transmit the message of described WLAN form to described destination address.
7. as the sending method of LAN form message as described in the claim 6, it is characterized in that the step of the message of the LAN form that described reception need the destination address in WLAN be transmitted is specially:
When the purpose terminal address that obtains according to the DA territory in the described LAN form message is arranged in WLAN, is judged as and the terminal of described LAN form message in WLAN need be transmitted.
8. as the sending method of LAN form message as described in the claim 6, it is characterized in that,
Described with in described WLAN form message and the LAN form message with transmit relevant territory and change mapping steps mutually and be specially:
Obtain DA, SA, VLANID and DATA territory in the message of LAN form;
According to the content in the Address1 territory of the generation of the target MAC (Media Access Control) address in described DA territory WLAN form message;
According to the content in the Address2 territory of the generation of the source MAC in described SA territory WLAN form message;
The address that obtains the purpose terminal generates the content in the BSSID territory of WLAN form message;
According to the content in the Frame Body territory of the generation of the content in described DATA territory WLAN form message;
Calculate the FCS of message and generate content in the FCS territory of WLAN form message according to the WLAN form message territory after the conversion.
9. as the sending method of LAN form message as described in the claim 8, it is characterized in that the step that the described address that obtains the purpose terminal generates the content in the BSSID territory of WLAN form message is specially:
Obtain the WLAN territory BSSID that set up and the mapping relations of terminal address;
According to the target MAC (Media Access Control) address in described mapping relations and the described DA territory, obtain the BSSID of described purpose terminal;
Generate the content in the BSSID territory of described WLAN form message according to the described BSSID that gets access to.
10. the method for WLAN and LAN intercommunication is characterized in that, comprising:
The message of the WLAN form that destination address that need be outside WLAN sends is converted to the message and the forwarding of the destination address to described WLAN outside of LAN form; And
The message of the LAN form that destination address that need be in WLAN is transmitted is converted to the message of WLAN form, and the destination address in described WLAN is transmitted;
Wherein, the message of described WLAN form is the message based on 802.11 forms; The message of described LAN form is the message based on 802.3 forms; Described conversion is specially, with in described WLAN form message and the LAN form message with transmit relevant territory and change mapping mutually; Described conversion comprises: according to the WLAN territory BSSID that has set up and the mapping relations of terminal address, the address that obtains the purpose terminal in the LAN form message generates the content in the BSSID territory of WLAN form message; Obtain the mapping relations of pre-configured WLAN territory BSSID and LAN territory VLANID, obtain VLANID, the content in the VLANID territory of generation LAN form message according to the BSSID in the WLAN form message.
11. the method as WLAN as described in the claim 10 and LAN intercommunication is characterized in that, the described message that will need the WLAN form that the destination address outside WLAN sends also comprises before being converted to the message of LAN form and the forwarding of the destination address to described WLAN outside:
The mapping relations of the BSSID of the address of terminal and WLAN in the storage WLAN, and the mapping relations of configuration WLAN territory BSSID and LAN territory VLANID.
12. the method as WLAN as described in the claim 11 and LAN intercommunication is characterized in that,
The described message that will need the WLAN form that the destination address outside WLAN sends is converted to the message of LAN form and the step of the forwarding of the destination address to described WLAN outside is specially:
Generate the content in message territory in the message of LAN form according to the content in the message territory in the message of WLAN form;
The destination address of described LAN form message outside described WLAN transmitted;
Wherein the VLANID that BSSID generates in the LAN form in the WLAN form is specially:
According to the mapping relations of described WLAN territory BSSID and LAN territory VLANID, and the BSSID that sends the interior terminal of WLAN of described WLAN form message, obtain the VLAN under the terminal in the described WLAN, and generate LAN form message.
13. the method as WLAN as described in the claim 11 and LAN intercommunication is characterized in that,
The described message that will need the LAN form that the destination address in WLAN transmits is converted to the message of WLAN form, and the step that the destination address in described WLAN is transmitted is specially:
Generate the content in message territory in the message of WLAN form according to the content in the message territory in the message of LAN form;
The destination address of described WLAN form message in described WLAN transmitted;
Wherein the BSSID in the generation of the VLANID in the LAN form WLAN form is specially:
According to the mapping relations of the BSSID of the address of terminal in the described WLAN and WLAN, and the purpose terminal address of described LAN form message, obtain the BSSID of described purpose terminal, and generate WLAN form message.
14. a router device is used to realize WLAN and LAN intercommunication, it is characterized in that, comprising:
The WLAN interface unit is used for carrying out with the terminal that is connected by the WLAN mode message interaction of WLAN form;
Converting unit is after being used for the message that described WLAN interface unit receives the WLAN form that the destination address outside WLAN sends is converted to the message of LAN form, to LAN interface unit or high-level interface unit forwards; Or after the message of the LAN form that the terminal in WLAN that LAN interface unit or high-level interface unit receive is sent is converted to the message of WLAN form, transmit to the WLAN interface unit; Wherein, the message of described WLAN form is the message based on 802.11 forms; The message of described LAN form is the message based on 802.3 forms; Concrete, with in described WLAN form message and the LAN form message with transmit relevant territory and change mapping mutually; Described conversion comprises: according to the WLAN territory BSSID that has set up and the mapping relations of terminal address, the address that obtains the purpose terminal in the LAN form message generates the content in the BSSID territory of WLAN form message; Obtain the mapping relations of pre-configured WLAN territory BSSID and LAN territory VLANID, obtain VLANID, the content in the VLANID territory of generation LAN form message according to the BSSID in the WLAN form message;
The LAN interface unit is used for carrying out with the terminal that is connected by the LAN mode message interaction of LAN form;
The high-level interface unit is used for carrying out with upper layer network the message interaction of LAN form.
15., it is characterized in that described converting unit further comprises as router device as described in the claim 14:
WLAN form message judgment sub-unit is used to judge whether the WLAN form message that receives needs the destination address outside WLAN to send, and when needing described WLAN form message is sent to WLAN form message and changes subelement;
WLAN form message is changed subelement, is used for the WLAN form message that described WLAN form message judgment sub-unit sends is converted to the message of LAN form;
LAN form message judgment sub-unit is used to judge whether the LAN form message that receives needs the destination address in WLAN to send, and when needing described LAN form message is sent to LAN form message and changes subelement;
LAN form message conversion subelement, the message that is used for LAN form that described LAN form message judgment sub-unit is sent is converted to the message of WLAN form;
16., it is characterized in that described converting unit also comprises as router device as described in the claim 15:
The VLAN mapping relations are set subelement, are used to set the mapping relations of WLAN territory BSSID and LAN territory VLANID and offer described WLAN form message conversion subelement be used for the message conversion;
The BSS mapping relations are set subelement, are used to store the mapping relations of the WLAN territory BSSID that set up and terminal address and offer described LAN form message conversion subelement be used for message conversion.
CN200710166384.4A 2007-11-08 2007-11-08 Method and device for WLAN and LAN intercommunication Active CN101150481B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710166384.4A CN101150481B (en) 2007-11-08 2007-11-08 Method and device for WLAN and LAN intercommunication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710166384.4A CN101150481B (en) 2007-11-08 2007-11-08 Method and device for WLAN and LAN intercommunication

Publications (2)

Publication Number Publication Date
CN101150481A CN101150481A (en) 2008-03-26
CN101150481B true CN101150481B (en) 2010-11-10

Family

ID=39250832

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710166384.4A Active CN101150481B (en) 2007-11-08 2007-11-08 Method and device for WLAN and LAN intercommunication

Country Status (1)

Country Link
CN (1) CN101150481B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699798A (en) * 2009-10-17 2010-04-28 中兴通讯股份有限公司 Data forwarding method and service single board
CN101980485B (en) * 2010-10-18 2015-09-16 中兴通讯股份有限公司 The method of router and transmission data
CN102045359B (en) * 2010-12-29 2013-08-14 刘显福 Converged communication device and method for realizing converged communication by converged communication device
CN103685592B (en) * 2012-09-20 2018-11-30 新华三技术有限公司 A kind of wireless bridge and the method for realizing dhcp address application
CN102868781B (en) * 2012-09-21 2015-12-02 杭州华三通信技术有限公司 A kind of wireless bridge and realize the method for DHCP safety
CN105356966B (en) * 2014-08-22 2019-07-23 华为技术有限公司 Cyclic redundancy check implementation method, device and the network equipment
CN104320864B (en) * 2014-10-15 2018-05-08 新华三技术有限公司 A kind of data transmission method and wireless access point AP
CN106302256B (en) * 2016-08-23 2019-06-14 锐捷网络股份有限公司 A kind of ethernet switching device and data processing method
CN110351772B (en) 2018-04-08 2022-10-25 慧与发展有限责任合伙企业 Mapping between wireless links and virtual local area networks

Also Published As

Publication number Publication date
CN101150481A (en) 2008-03-26

Similar Documents

Publication Publication Date Title
CN101150481B (en) Method and device for WLAN and LAN intercommunication
JP4558454B2 (en) Communications system
CN114124618B (en) Message transmission method and electronic equipment
WO2019183919A1 (en) Method and apparatus for converged networking
CN103313232B (en) Communication means, communication equipment and user equipment
CN108712520B (en) Terminal IP address transparent transmission system and method based on LTE wireless private network
CN102958197B (en) Method for establishing X2 service signaling connection, base station and CSG (cell site gateway)
US20220209996A1 (en) Interface Extension Method, Apparatus, and System
CN102612033B (en) Mobile phone with thin wireless access point and communication method for mobile phone
CN106793013A (en) Wireless access system and its exchange method based on L2TP
CN106559348A (en) A kind of intelligent 6LoWPAN border routings implementation method and border router
CN106302166A (en) A kind of data transmission method and device
CN102984070A (en) Method for realizing data forwarding through unnumbered interface of Ethernet
EP3758307A1 (en) Method for implementing gre tunnel, access point and gateway
CN107623752A (en) Network management and device based on link layer
CN105933235B (en) Data communications method and device
CN101888618B (en) Method and equipment for processing message in wireless local area network
CN107277861A (en) A kind of distributed cut-in method of mobile whole network
CN106533934A (en) Border gateway applicable to all interconnected manufacturing networks
WO2014067450A1 (en) Three-layer local forwarding method and device
CN106789534B (en) A kind of data transmission method and device based on wireless network
CN1192565C (en) Internet access method based on radio block network gateway
JP7298606B2 (en) Communication system and communication method
CN114697999A (en) Redundant path creating method, device and system
CN106487677B (en) Provider edge equipment and data forwarding method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

CP03 Change of name, title or address