CN104158731A - Method and system of implementing WIFI (Wireless Fidelity) network bridge - Google Patents
Method and system of implementing WIFI (Wireless Fidelity) network bridge Download PDFInfo
- Publication number
- CN104158731A CN104158731A CN201410423329.9A CN201410423329A CN104158731A CN 104158731 A CN104158731 A CN 104158731A CN 201410423329 A CN201410423329 A CN 201410423329A CN 104158731 A CN104158731 A CN 104158731A
- Authority
- CN
- China
- Prior art keywords
- wifi
- packet
- bridge
- cpu
- uplink packet
- 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.)
- Pending
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a method and a system of implementing a WIFI (Wireless Fidelity) network bridge. The method comprises the following steps that: S1, after a CPU (Central Processing Unit) processes a WIFI uplink packet, the WIFI uplink packet is transmitted to the WIFI network bridge; and S2, the WIFI network bridges processes the WIFI uplink packet. The step S1 comprises the following steps that: S1.1, the CPU analyzes a port number of the WIFI network bridge; S1.2, the CPU judges whether the WIFI uplink packet is a local MAC (Media Access Control), if so, the WIFI uplink packet is transmitted to a protocol stack of the CPU, if not, the step S1.3 is performed; S1.3, the CPU judges whether the WIFI uplink packet is a broadcast packet, if so, the WIFI uplink packet is marked as the broadcast packet and the WIFI uplink packet is transmitted to the protocol stack of the CPU, if not, the step S1.4 is performed; S1.4, the CPU judges whether the WIFI uplink packet is a multicast packet, if so, the step S1.5 is preformed, if not, the WIFI uplink packet is transmitted to the WIFI network bridge; and S1.5, the CPU judges whether the WIFI uplink packet is a special message, if so, the WIFI uplink packet is transmitted to the protocol stack of the CPU, if not, the WIFI uplink packet is transmitted to the WIFI network bridge. According to the method and the system, characteristics of a home gateway are combined, a channel of forwarding the WIFI data packet is created, and a function processing flow is simplified.
Description
Technical field
The bridge that the present invention relates to communication field is set up, particularly a kind of method and system that realize WIFI bridge.
Background technology
Home gateway (HGU) is exactly the hinge that connects carrier network and subscriber household network.From physical aspect by, home gateway is descending must provide many interfaces, connects different service terminals.And due to the variation of operator's access network interface, home gateway needs to support different upstream Interfaces, with the variation of the broadband network that follows up.
Home gateway is the core of home network, and it be the more important thing is for different all kinds of service terminals provide corresponding interface, from wired to wireless, except providing broadband upstream mouth from low speed to high speed.Wireless data technologies particularly, the data bandwidth of rapid growth becomes more and more higher to the requirement of wireless transmission rate.
Also not relevant WIFI bridge equipment is applied to home gateway at present.
Summary of the invention
The method and system that the object of this invention is to provide a kind of WIFI of realization bridge, the characteristic of its combined family gateway, the passage of a WiFi package forward of establishment, has simplified function treatment flow process, meanwhile, also for a large amount of time has been saved in whole system maintenance work.
In order to realize above object, the present invention is achieved by the following technical solutions:
A method that realizes WIFI bridge, is characterized in, the method includes the steps of:
S1, CPU delivers to WIFI bridge after WIFI uplink packet is processed;
S2, WIFI bridge is processed WIFI uplink packet.
Described step S1 comprises following steps:
S1.1, CPU resolves the port numbers of WIFI bridge;
S1.2, CPU judges whether WIFI uplink packet is local mac, if so, WIFI uplink packet is delivered to the protocol stack of CPU, performs step if not S1.3;
S1.3, CPU judgement surveys whether WIFI uplink packet is broadcast packet, if so, mark its be broadcast packet, WIFI uplink packet is delivered to the protocol stack of CPU, perform step if not S1.4;
S1.4, CPU judges whether WIFI uplink packet is multicast packets, if so, performs step S1.5, if not, WIFI uplink packet is delivered to WIFI bridge;
S1.5, CPU judges whether WIFI uplink packet is specific message, if so, WIFI uplink packet is delivered to the protocol stack of CPU, if not, WIFI uplink packet is delivered to WIFI bridge.
Described specific message is join/leave message or RS/dhcp message or upnp message or ns message.
Described step S2 comprises following steps:
S2.1, packet handing module is resolved WIFI uplink packet information;
S2.2, packet handing module carries out VLAN processing to WIFI uplink packet;
S2.3, packet handing module is processed broadcast packet;
S2.4, packet handing module is processed multicast packets;
S2.5, packet handing module is processed unicast packet.
Described step S2.3 further comprises following steps:
Packet handing module judges whether broadcast packet is unknown broadcast packet, and if so, MAC shows module to unknown broadcast packet MAC address learning; If not, be flooded to corresponding ports.
Described step S2.4 further comprises following steps:
Packet handing module judges whether multicast packets is unknown multicast bag, and if so, unknown multicast bag is flooded to corresponding ports, forwards if not according to multicast mac address table.
Described step S2.5 further comprises following steps:
Packet handing module judges that whether unicast packet is unknown source MAC, if so, upgrades mac address table;
If not, packet handing module judges whether source port changes, if source port changes, again upgrades mac address table, if source port does not change, according to mac address table, forwards.
For setting up a system for WIFI bridge, be characterized in, this system comprises:
CPU;
The WIFI bridge, passive optical-fiber network and the switch that are connected with CPU;
Physical-layer network coding module, it is connected with CPU, passive optical-fiber network and switch respectively.
Described WIFI bridge comprises:
Bridge port module, described switch upper united mouth and wireless routing port are registered in bridge port module;
MAC shows module, and it is connected with bridge port module, for MAC table, forwards and multicast;
The packet handing module being connected with MAC table module;
The statistical module being connected with packet handing module, it is added up for WIFI bridge port.
The present invention compared with prior art, has the following advantages:
The characteristic of combined family gateway of the present invention, the passage of a WiFi package forward of establishment, has simplified function treatment flow process, meanwhile, also for a large amount of time has been saved in whole system maintenance work.
Accompanying drawing explanation
Fig. 1 is that the present invention is a kind of for setting up the system block diagram of the system of WIFI bridge;
Fig. 2 is the system block diagram of WIFI bridge.
Embodiment
Below in conjunction with accompanying drawing, by describing a preferably specific embodiment in detail, the present invention is further elaborated.
A method that realizes WIFI bridge, the method includes the steps of:
S1, CPU delivers to WIFI bridge after WIFI uplink packet is processed;
S1.1, CPU resolves the port numbers of WIFI bridge;
S1.2, CPU judges whether WIFI uplink packet is local mac, if so, WIFI uplink packet is delivered to the protocol stack of CPU, performs step if not S1.3;
S1.3, CPU judgement surveys whether WIFI uplink packet is broadcast packet, if so, mark its be broadcast packet, tag content can be arbitrary mark of presetting, WIFI uplink packet is delivered to the protocol stack of CPU, performs step if not S1.4;
S1.4, CPU judges whether WIFI uplink packet is multicast packets, if so, performs step S1.5, if not, WIFI uplink packet is delivered to WIFI bridge;
S1.5, CPU judges whether WIFI uplink packet is specific message, if, WIFI uplink packet is delivered to the protocol stack of CPU, if not, WIFI uplink packet is delivered to WIFI bridge, above-mentioned specific message is join/leave message or RS/dhcp message or upnp message or ns message.
S2, WIFI bridge is processed WIFI uplink packet.
S2.1, packet handing module is resolved WIFI uplink packet information;
S2.2, packet handing module carries out VLAN processing to WIFI uplink packet;
S2.3, packet handing module is processed broadcast packet;
S2.4, packet handing module is processed multicast packets;
S2.5, packet handing module is processed unicast packet.
Wherein above-mentioned step S2.3 further comprises following steps:
Packet handing module judges whether broadcast packet is unknown broadcast packet, and if so, MAC shows module to unknown broadcast packet MAC address learning; If not, be flooded to corresponding ports.
Above-mentioned step S2.4 further comprises following steps:
Packet handing module judges whether multicast packets is unknown multicast bag, and if so, unknown multicast bag is flooded to corresponding ports, forwards if not according to multicast mac address table.
Above-mentioned step S2.5 further comprises following steps:
Packet handing module judges that whether unicast packet is unknown source MAC, if so, upgrades mac address table;
If not, packet handing module judges whether source port changes, if source port changes, again upgrades mac address table, if source port does not change, according to mac address table, forwards.
As shown in Figure 1, a kind of for setting up the system of WIFI bridge, this system comprises:
CPU;
The WIFI bridge 2 being connected with CPU, passive optical-fiber network 3 and switch 4;
Physical-layer network coding module 5, it is connected with CPU, passive optical-fiber network 3 and switch 4 respectively.
As shown in Figure 2, WIFI bridge comprises:
Bridge port module 21, described switch upper united mouth and wireless routing port are registered in bridge port module, during the registration of bridge port module, by switch upper united mouth and wireless routing port, by its device name, obtain respectively equipment handle separately, deposit in bridge, utilize the transmitting-receiving bag function interface that linux network-driven realizes to be registered on bridge transmitting-receiving packet interface, realize bridge and peripheral hardware interconnecting before;
MAC shows module 22, and it is connected with bridge port module 21, for MAC table, forwards and multicast, mainly realize static mac address and add interface, dynamic MAC address study, the maintenance of MAC table, and bridge can be correct according to MAC table, carries out the forwarding between port;
The packet handing module 23 being connected with MAC table module;
The statistical module 24 being connected with packet handing module 23, it is added up the data item in bridge, and the object of this module is to be convenient to convenient debugging, can check easily at client layer the real time information of bridge.
In sum, a kind of method and system that realize WIFI bridge of the present invention, the characteristic of its combined family gateway, the passage of a WiFi package forward of establishment, has simplified function treatment flow process, meanwhile, also for a large amount of time has been saved in whole system maintenance work.
Although content of the present invention has been done detailed introduction by above preferred embodiment, will be appreciated that above-mentioned description should not be considered to limitation of the present invention.Those skilled in the art, read after foregoing, for multiple modification of the present invention with to substitute will be all apparent.Therefore, protection scope of the present invention should be limited to the appended claims.
Claims (9)
1. a method that realizes WIFI bridge, is characterized in that, the method includes the steps of:
S1, CPU delivers to WIFI bridge after WIFI uplink packet is processed;
S2, WIFI bridge is processed WIFI uplink packet.
2. the method that realizes WIFI bridge as claimed in claim 1, is characterized in that, described step S1 comprises following steps:
S1.1, CPU resolves the port numbers of WIFI bridge;
S1.2, CPU judges whether WIFI uplink packet is local mac, if so, WIFI uplink packet is delivered to the protocol stack of CPU, performs step if not S1.3;
S1.3, CPU judgement surveys whether WIFI uplink packet is broadcast packet, if so, mark its be broadcast packet, WIFI uplink packet is delivered to the protocol stack of CPU, perform step if not S1.4;
S1.4, CPU judges whether WIFI uplink packet is multicast packets, if so, performs step S1.5, if not, WIFI uplink packet is delivered to WIFI bridge;
S1.5, CPU judges whether WIFI uplink packet is specific message, if so, WIFI uplink packet is delivered to the protocol stack of CPU, if not, WIFI uplink packet is delivered to WIFI bridge.
3. the method that realizes WIFI bridge as claimed in claim 2, is characterized in that, described specific message is join/leave message or RS/dhcp message or upnp message or ns message.
4. the method that realizes WIFI bridge as claimed in claim 1, is characterized in that, described step S2 comprises following steps:
S2.1, packet handing module is resolved WIFI uplink packet information;
S2.2, packet handing module carries out VLAN processing to WIFI uplink packet;
S2.3, packet handing module is processed broadcast packet;
S2.4, packet handing module is processed multicast packets;
S2.5, packet handing module is processed unicast packet.
5. the method that realizes WIFI bridge as claimed in claim 4, is characterized in that, described step S2.3 further comprises following steps:
Packet handing module judges whether broadcast packet is unknown broadcast packet, and if so, MAC shows module to unknown broadcast packet MAC address learning; If not, be flooded to corresponding ports.
6. the method that realizes WIFI bridge as claimed in claim 4, is characterized in that, described step S2.4 further comprises following steps:
Packet handing module judges whether multicast packets is unknown multicast bag, and if so, unknown multicast bag is flooded to corresponding ports, forwards if not according to multicast mac address table.
7. the method that realizes WIFI bridge as claimed in claim 4, is characterized in that, described step S2.5 further comprises following steps:
Packet handing module judges that whether unicast packet is unknown source MAC, if so, upgrades mac address table;
If not, packet handing module judges whether source port changes, if source port changes, again upgrades mac address table, if source port does not change, according to mac address table, forwards.
8. for setting up a system for WIFI bridge, it is characterized in that, this system comprises:
CPU;
The WIFI bridge, passive optical-fiber network and the switch that are connected with CPU;
Physical-layer network coding module, it is connected with CPU, passive optical-fiber network and switch respectively.
9. as claimed in claim 8ly for setting up the system of WIFI bridge, it is characterized in that, described WIFI bridge comprises:
Bridge port module, described switch upper united mouth and wireless routing port are registered in bridge port module;
MAC shows module, and it is connected with bridge port module, for MAC table, forwards and multicast;
The packet handing module being connected with MAC table module;
The statistical module being connected with packet handing module, it is added up for WIFI bridge port.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410423329.9A CN104158731A (en) | 2014-08-26 | 2014-08-26 | Method and system of implementing WIFI (Wireless Fidelity) network bridge |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410423329.9A CN104158731A (en) | 2014-08-26 | 2014-08-26 | Method and system of implementing WIFI (Wireless Fidelity) network bridge |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104158731A true CN104158731A (en) | 2014-11-19 |
Family
ID=51884140
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410423329.9A Pending CN104158731A (en) | 2014-08-26 | 2014-08-26 | Method and system of implementing WIFI (Wireless Fidelity) network bridge |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104158731A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040081171A1 (en) * | 2002-10-24 | 2004-04-29 | Finn Norman W. | Large-scale layer 2 metropolitan area network |
CN101656636A (en) * | 2009-03-04 | 2010-02-24 | 北京邮电大学 | Test method of multi-layer protocol stack network equipment based on OPNET |
CN102868614A (en) * | 2012-09-13 | 2013-01-09 | 杭州华三通信技术有限公司 | Packet forwarding method in TRILL (transparent interconnection of lots of links) network and routing bridge |
CN103823668A (en) * | 2012-11-16 | 2014-05-28 | 芯迪半导体科技(上海)有限公司 | Method for building network bridge among multiple network interfaces |
-
2014
- 2014-08-26 CN CN201410423329.9A patent/CN104158731A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040081171A1 (en) * | 2002-10-24 | 2004-04-29 | Finn Norman W. | Large-scale layer 2 metropolitan area network |
CN101656636A (en) * | 2009-03-04 | 2010-02-24 | 北京邮电大学 | Test method of multi-layer protocol stack network equipment based on OPNET |
CN102868614A (en) * | 2012-09-13 | 2013-01-09 | 杭州华三通信技术有限公司 | Packet forwarding method in TRILL (transparent interconnection of lots of links) network and routing bridge |
CN103823668A (en) * | 2012-11-16 | 2014-05-28 | 芯迪半导体科技(上海)有限公司 | Method for building network bridge among multiple network interfaces |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102143035B (en) | Data traffic processing method, network device and network system | |
CN102970227B (en) | The method and apparatus of VXLAN message repeating is realized in ASIC | |
CN104469660B (en) | Network-building method based on bluetooth | |
CN105099898B (en) | A kind of PPPOE message forwarding methods and BRAS servers | |
WO2008085375A2 (en) | Method and apparatus for multicast routing | |
CN104022936B (en) | A kind of tunnel establishing method and device | |
CN104767696B (en) | The method and device of user's access is controlled in the access net of SDNization | |
CN101335637A (en) | Method and device for multicast control | |
EP3022876B1 (en) | Bridging based upon media access control address | |
CN103442358A (en) | Method for local forwarding concentrated authentication and control device | |
CN104660527A (en) | Service switch, virtual local area network (VLAN)-spanning point-to-point protocol over Ethernet (PPPoE) network system and VLAN-spanning PPPoE network method | |
EP2897328B1 (en) | Method, system and apparatus for establishing communication link | |
CN104539539B (en) | A kind of AC equipment multi-service plate data forwarding method | |
JP6137848B2 (en) | Network communication system | |
CN103795633B (en) | A kind of layer 2 forwarding method and forwarding unit | |
CN102571615B (en) | Quality of service (QOS) strategy realizing method based on Ethernet over coax (EOC) terminal | |
CN104579973A (en) | Message forwarding method and device of virtual cluster | |
CN104168302B (en) | Equipment manipulation implementation method, system and proxy gateway | |
CN101309154B (en) | Datagram sending method, sending apparatus and transmission system | |
CN102868642A (en) | Method and device for achieving NVGRE message transmission in application specific integrated circuit (ASIC) | |
TWI575909B (en) | Network grouping system and the network grouping method thereof | |
CN103391251A (en) | Method and device for reducing redundant flow in PBB (provider backbone bridge) network | |
WO2016074354A1 (en) | Wifi sharing method and system, home gateway and wireless local area network gateway | |
CN104038930B (en) | A kind of method of Duan Dao centers IP packets encryption | |
CN104158731A (en) | Method and system of implementing WIFI (Wireless Fidelity) network bridge |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20141119 |
|
RJ01 | Rejection of invention patent application after publication |