CN112235617B - Set-top box WiFi-based networking method for realizing easy mesh and set-top box - Google Patents
Set-top box WiFi-based networking method for realizing easy mesh and set-top box Download PDFInfo
- Publication number
- CN112235617B CN112235617B CN202011022121.8A CN202011022121A CN112235617B CN 112235617 B CN112235617 B CN 112235617B CN 202011022121 A CN202011022121 A CN 202011022121A CN 112235617 B CN112235617 B CN 112235617B
- Authority
- CN
- China
- Prior art keywords
- interface
- message
- top box
- data stream
- sta
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000006855 networking Effects 0.000 title claims abstract description 126
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000012545 processing Methods 0.000 claims abstract description 79
- 230000008569 process Effects 0.000 claims abstract description 25
- 238000012423 maintenance Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 12
- 230000002159 abnormal effect Effects 0.000 description 3
- 239000003795 chemical substances by application Substances 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000003672 processing method Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/4104—Peripherals receiving signals from specially adapted client devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/18—Self-organising networks, e.g. ad-hoc networks or sensor networks
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Mobile Radio Communication Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a networking method for realizing easy mesh based on a set-top box WiFi (wireless fidelity). the set-top box is additionally provided with a special interface for processing an easy mesh protocol message and an STA (station) data stream on the basis of reserving a traditional interface for processing own service, the special interface is bound with a bridge interface and a wireless interface, the set-top box distinguishes the easy mesh protocol message according to the Ethernet protocol type, distinguishes the Internet network data stream and the STA data stream of the set-top box according to the MAC (media access control) of the message purpose, processes the IPTV service data stream by the traditional interface, and the special interface can be automatically configured or manually configured. The invention provides a scheme for realizing easy mesh networking by the WiFi of the set top box, provides a solution for the contradiction of data forwarding, saves the user cost and also provides convenience for the operation and maintenance of operators. The invention also provides a corresponding set top box.
Description
Technical Field
The invention belongs to the technical field of set top boxes, and particularly relates to a networking method for realizing Mesh based on WiFi of a set top box and the set top box.
Background
With the continuous development of intelligent terminals, the demand of users on WiFi is higher and higher, and the whole-house WiFi coverage becomes the basic requirement of more and more family users. As shown in fig. 1, most of current home networking systems use fiber to the home (a weak box at the door of the device), a user completes Internet networking by adopting a Local Area Network (LAN) uplink router, and if the user needs to use an IPTV (Interactive television), a set-top box needs to be installed. The cost is increased by requiring the user to purchase a WiFi router, which is a networking mode, and the WiFi function of the set-top box is wasted.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a networking scheme for realizing easy mesh based on a set top box WiFi (wireless fidelity), the set top box WiFi is used for completing whole-house network coverage, an uplink device of the set top box is used as an AP Controller, the set top box is used as an Agent, the easy mesh networking is realized under the current networking environment of the set top box, the networking scheme is provided, and data forwarding conflict in the networking is solved.
In order to achieve the above object, according to one aspect of the present invention, a set top box WiFi-based networking method for implementing EasyMesh is provided, the set top box adds a dedicated interface for processing an EasyMesh protocol message and an STA (Station) data stream on the basis of reserving a conventional interface for processing a self-service, binds the dedicated interface with a bridge interface and a wireless interface, the set top box distinguishes the EasyMesh protocol message according to an ethernet protocol type, distinguishes an Internet network data stream and an STA data stream according to a message destination MAC (Media Access Control), and processes an IPTV service data stream by the conventional interface, and the dedicated interface can be automatically configured or manually configured.
In one embodiment of the present invention, the networking mode is manual, wherein:
in a first networking mode, the traditional interface is a third interface and a fourth interface, and the special interface is a first interface; or,
in a second networking mode, the traditional interface is a fourth interface, and the special interface is a first interface;
the first interface is used for processing an Untag STA data stream and an EasyMesh protocol message in a first networking mode, and processing the EasyMesh message and the STA data stream with a VLAN in a second networking mode; the third interface is used for processing Internet network data flow of the set top box, and the fourth interface is used for processing IPTV service.
In an embodiment of the present invention, the processing method of the uplink data is as follows:
the self-owned service of the set top box, STA data stream and EasyMesh protocol message are controlled and processed by a native Linux protocol stack, the self-owned service of the set top box comprises set top box Internet network data stream and IPTV service data stream, and the processing logic is as follows: a socket binding port is established by the set-top box, a forwarding interface is finally determined by the set-top box routing, the Internet network data stream of the set-top box is processed by a third interface under the first networking, and the IPTV service data stream is processed by a fourth interface; the STA data stream is processed by the first interface, and the data is transmitted to the wireless interface for forwarding according to the forwarding principle of the Linux network bridge protocol stack; the EasyMesh protocol message is processed by the first interface after the set top box creates a socket.
In an embodiment of the present invention, a processing manner of the downlink data is:
reading the message protocol type, judging whether an EasyMesh protocol message exists or not, if yes, sending the message to a first interface for receiving, and if not, entering the next step;
analyzing the message VLAN, judging whether the VLAN ID is equal to the VLAN configured for the STA data stream, if equal, sending the message to a first interface for receiving, and if not, entering the next step;
judging whether the Untag message exists or not, if not, processing the Untag message by a Linux VLAN protocol stack according to default rules, and if so, entering the next step;
and analyzing the message destination MAC, judging whether the destination MAC is equal to the address of the third interface or the fourth interface, if so, indicating that the message is a data message of the self-service of the set top box, and if not, judging whether the message is broadcast and processed.
In an embodiment of the present invention, the networking mode is automatic, and includes:
establishing a first interface, acquiring VLAN ID of STA data stream, and judging whether VLAN value is Untag;
the first interface is used for processing an easy mesh protocol message and processing an Untag STA data stream, the second interface is used for processing an STA data stream with a VLAN, the third interface is used for processing a set top box Internet network data stream in a first networking mode, and the fourth interface is used for processing an IPTV service.
In an embodiment of the present invention, the processing method of the uplink data is as follows:
the self-owned service of the set top box, the STA data stream and the EasyMesh protocol message are controlled and processed by a native Linux protocol stack, the self-owned service of the set top box comprises the Internet network data stream and the IPTV service data stream of the set top box, and the processing logic is as follows: a socket binding port is established by the set-top box, a forwarding interface is finally determined by the set-top box routing, the Internet network data stream of the set-top box is processed by a third interface under the first networking, and the IPTV service data stream is processed by a fourth interface; the STA data stream without the VLAN is processed by the first interface, the STA data stream with the VLAN is processed by the second interface, and the data is sent to the wireless interface for forwarding according to the Linux bridge protocol stack forwarding principle; the EasyMesh protocol message is processed by the first interface after the set top box creates a socket.
In an embodiment of the present invention, a processing manner of the downlink data is:
reading the message protocol type, judging whether an EasyMesh protocol message exists or not, if the EasyMesh protocol message exists, sending the message to a first interface for receiving, and if not, entering the next step;
analyzing the message VLAN, judging whether the VLAN ID is equal to the configured Internet or not, if so, sending the message to a second interface for receiving, and if not, entering the next step;
judging whether the Untag message exists or not, if not, processing the Untag message by a Linux VLAN protocol stack according to a default rule, and if so, entering the next step;
and analyzing the message destination MAC, judging whether the destination MAC is equal to the address of the third interface or the fourth interface, if so, indicating that the message is a data message of the self-service of the set top box, receiving the message by the third interface or the fourth interface, and if not, judging whether the message is broadcast and processing.
In an embodiment of the present invention, if the broadcast messages are not equal, determining whether to broadcast the messages and processing the messages, specifically including:
judging whether the message is broadcast or not, if so, copying the message and then respectively sending the message to a first interface and a third interface or a fourth interface for receiving, and if not, entering the next step;
judging whether to multicast the message, if so, forwarding the message according to the first interface and the third interface or the fourth interface multicast group, and if not, entering the next step;
if not, the STA unicasts the packet, the packet is received by the first interface, and the data is forwarded to the STA through the network bridge.
In an embodiment of the present invention, during the automatic configuration, the VLAN ID of the STA data stream is obtained from the Message M2 returned by the AP Controller.
According to another aspect of the present invention, there is also provided a set top box, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the set-top box WiFi enabled easy mesh networking method described above.
Generally, compared with the prior art, the technical scheme of the invention has the following beneficial effects:
the invention provides a scheme for realizing easy mesh networking by the WiFi of the set top box, provides a solution for the contradiction of data forwarding, saves the user cost and also provides convenience for the operation and maintenance of operators.
Drawings
Fig. 1 is a schematic diagram of a current home networking mode;
FIG. 2 is a schematic diagram of a first networking method in the prior art;
fig. 3 is a schematic diagram of a networking mode of a set top box WiFi implementing Mesh in a first networking mode;
fig. 4 is a schematic diagram of a networking mode of the set top box in which the Mesh is implemented by WiFi in a second networking mode;
FIG. 5 is a schematic diagram of a set top box internal networking and message processing flow in the embodiment of the present invention;
fig. 6 is a schematic diagram of a general message format of an EasyMesh protocol message;
FIG. 7 is a diagram illustrating specific data contents of M2;
FIG. 8 is a schematic diagram of a networking mode when the set-top box Internet data is Untag in the embodiment of the present invention;
FIG. 9 is a schematic diagram of a networking mode when the set-top box Internet data is provided with a VLAN in the embodiment of the present invention;
fig. 10 is a schematic diagram of a networking method for implementing easy mesh based on WiFi of a set top box in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
Firstly, the self-defined nouns in the embodiment of the invention are explained and explained:
the first interface is used for processing the STA data stream of Untag and an EasyMesh protocol message in a first networking mode, and processing the EasyMesh message and the STA data stream with VLAN in a second networking mode, wherein the first interface is represented by eth0.mesh in the embodiment of the invention;
the second interface is used for processing the STA data stream with the VLAN, and is represented by eth0.sta in the embodiment of the invention;
the third interface is used for processing the set-top box Internet network data stream, and is represented by eth0 in the embodiment of the invention, namely the A plane in the first networking mode exists only in the first networking;
a fourth interface, configured to process an IPTV service, which is a B plane in the first networking mode, and is denoted as eth0.iptv in the first networking mode, and is denoted as eth0 in the second networking mode;
a wireless interface, denoted ap0 in the present embodiment;
the bridge interface, in the present embodiment, is denoted br 0.
The fourth interface is a traditional interface; the first interface and the second interface are special interfaces for processing the EasyMesh protocol message and the STA data stream.
The current networking mode of the Chinese telecommunication set top box comprises two modes:
the first networking mode is as follows: an A/B plane, wherein the A plane is an Internet service, data is carried by an Untag message, an eth0 interface (namely an uplink network port of the set-top box) is represented on the set-top box to acquire a local area network IP (for convenience of description, the default uplink equipment local area network segment is 192.168.1.x), and the local area network IP is distributed by uplink equipment and accesses a network through a route of the uplink equipment; the B plane is IPTV service, carried by appointed VLAN data, presented as eth0.iptv interface on the set-top box to obtain private network IP distributed by IPTV network, and accessed to IPTV network through Bridge of the uplink device. The uplink device of the set-top box is bound by a Virtual Local Area Network (VLAN), so that one port (a port where the set-top box is connected to the uplink device) provides two services.
The second networking mode only supports IPTV service, is carried by Untag data, is represented as an eth0 interface on the set-top box to acquire a private network IP distributed by the IPTV network, and accesses the IPTV network through the Bridge of the uplink equipment. The existing set-top box has no data LAN < - - > WAN forwarding concept.
Mesh is a solution given by several major WiFi chip manufacturers at present, for example, in an EasyMesh network, a protocol stack binds to a bridge br0 (for convenience of description, a default set-top box bridge is br0), a WAN side bridge interface in the bridge is used as an interface interacting with an uplink AP Controller message, carries an EasyMesh protocol message, and carries a sub-routing STA data stream.
As shown in fig. 2, for the first networking mode of the set-top box, in order to obtain an Internet network and satisfy the easy mesh networking, a bridge br0 needs to be created, and eth0 and AP0 (interfaces where set-top box devices provide AP functions downwards) are added to the bridge br0, under this networking, the set-top box data stream, the STA data stream, and the easy mesh protocol packet are all unoag, and according to the Linux kernel protocol forwarding principle, the set-top box data stream that should be terminated at eth0 is finally sent to the bridge br0, which causes the set-top box service to be abnormal. For example, some set top box services are strongly bound to an eth0 interface, so that the set top box services cannot normally receive and transmit data from the eth0, and the set top box services are abnormal because the data all go to br 0.
Based on the above problem, the present invention proposes a networking method, as shown in fig. 3. The set-top box adds a special interface for processing an easy mesh protocol message and STA data stream on the basis of reserving a traditional interface for processing own service, the special interface is bound with a bridge interface and a wireless interface, the set-top box distinguishes the easy mesh protocol message according to the type of an Ethernet protocol, distinguishes the Internet network data stream and the STA data stream of the set-top box according to the message purpose MAC, and processes the IPTV service data stream by the traditional interface, and the special interface can be automatically configured or manually configured.
Internet network data, easy mesh protocol messages and STA data streams are Untag, and are processed by a set top box eth0 interface in a default Linux protocol stack. Whereas eth0 needs to be added to bridge br0 according to the EasyMesh networking requirements. In this case, the Internet network data of the downstream set-top box is forwarded to br0, which causes the own service exception of the set-top box. The socket creating mode of the set top box own service is to bind an interface eth0, all services monitor messages received by eth0, if the condition that the EasyMesh networking is satisfied is that eth0 is bound in br0, the final receiving interface of the message is br0, and the set top box own service is abnormal. After adding the virtual interface eth0.mesh binding br0, it can be ensured that if the set top box self service and the STA service, and the EasyMesh protocol message (e.g. IEEE1905 protocol message) can be distinguished and sent to different interfaces, the service does not conflict. And subsequently, the method of judging a protocol, a VLAN, a destination MAC and the like is used for distinguishing the three types of messages.
As shown in fig. 4, for the second networking mode of the set top box, the port of the uplink device connected to the set top box temporarily does not provide Internet service (the port is bound with Bridge service), and a networking scheme between the uplink device and the set top box needs to be provided.
In order to achieve the above purpose, the invention provides a networking system for implementing easy mesh based on a set-top box WiFi, comprising a set-top box uplink device AP Controller and a set-top box, wherein:
the set-top box uplink device (AP Controller): (1) as shown in fig. 3, under the first set-top box, the AP Controller has provided Internet service to the set-top box without change; (2) as shown in fig. 4, in the second networking of the set-top box, the AP Controller only provides IPTV Bridge service to the set-top box, and needs to configure VLAN binding service at a port connected to the set-top box, and agree to bind VLAN ID { Internet } (optionally), to the Internet route of the device, and in this networking, the data packet whose set-top box VLAN ID is Internet will be forwarded through the route of the AP Controller. According to the limitation of China telecommunication on the data forwarding of the Other Bridge binding port, the EasyMesh protocol message is also forwarded by the VLAN data.
The set top box (Agent) to which it belongs: when the set-top box is started, judging the current networking mode, (1) when the set-top box is a first networking mode, establishing an eth0.mesh interface, and processing an STA data stream of Untag and an EasyMesh protocol message; (2) and when the network is the second networking, establishing an eth0.mesh interface, and configuring the interface to process STA data stream and EasyMesh protocol message of which the VLAN is the Internet.
Further, the invention provides a networking method for realizing easy mesh based on a set top box WiFi, wherein the networking mode is manual, and the method comprises the following steps: in a first networking mode, the traditional interface is a third interface and a fourth interface, and the special interface is a first interface; or, in the second networking mode, the conventional interface is a fourth interface, and the dedicated interface is the first interface; the first interface is used for processing a Untag STA data stream and an EasyMesh protocol message in a first networking mode, and processing the EasyMesh message and the STA data stream with a VLAN in a second networking mode; the third interface is used for processing Internet network data stream of the set top box, and the fourth interface is used for processing IPTV service.
The processing mode of the uplink data is as follows: the native Linux protocol stack is used for controlling and processing the self-service of the set top box, the STA data stream and the EasyMesh protocol message, the self-service of the set top box comprises the Internet network data stream and the IPTV service data stream of the set top box, and the processing logic is as follows: a socket binding port is established by the set-top box, a forwarding interface is finally determined by the set-top box routing, the Internet network data stream of the set-top box is processed by a third interface under the first networking, and the IPTV service data stream is processed by a fourth interface; the STA data stream is processed by the first interface, and the data is transmitted to the wireless interface for forwarding according to the forwarding principle of the Linux network bridge protocol stack; the EasyMesh protocol message is processed by the first interface after the set top box creates a socket.
The processing mode of the downlink data is as follows: reading the message protocol type, judging whether an EasyMesh protocol message exists or not, if yes, sending the message to a first interface for receiving, and if not, entering the next step; analyzing the message VLAN, judging whether the VLAN ID is equal to the VLAN configured for the STA data stream, if equal, sending the message to a first interface for receiving, and if not, entering the next step; judging whether the Untag message exists or not, if not, processing the Untag message by a Linux VLAN protocol stack according to default rules, and if so, entering the next step; and analyzing the message destination MAC, judging whether the destination MAC is equal to the address of the third interface or the fourth interface, if so, indicating that the message is a data message of the self-service of the set top box, and if not, judging whether the message is broadcast and processed.
Specifically, the networking method for implementing easy mesh based on the set top box WiFi in the embodiment of the present invention includes:
s1, in the starting process of the set-top box, the system module reads the current networking mode;
s2, if the first networking mode is adopted, a virtual bridge br0 is created, an eth0.mesh interface is created, and the interface is configured to process the Untag message at the WAN side; and the eth0.mesh interface processes the EasyMesh protocol message and processes the STA data stream.
S3, if the mode is the second networking mode, creating a virtual Bridge br0, creating an eth0.mesh interface, reading the VLAN processed by the eth0.mesh interface and configured by the Bridge connection of the set-top box according to the connected VLAN ID; and the eth0.mesh interface processes the easy mesh protocol message and processes the STA data stream with the VLAN.
S4, in the process of starting the set-top box, initializing the WiFi module, initializing the WiFi interface (the default of the invention is ap0), and adding ap0 into the bridge br 0;
and S5 and eth0 judge the target MAC, judge the protocol type, judge the VLAN ID and process the messages by different interfaces according to the set rule to finish the service classification after receiving the messages.
As shown in fig. 5, the present invention provides a method for implementing easy mesh networking by a set top box WiFi and a set top box processing a data packet. The method comprises the following specific steps:
step S101: starting the set top box;
step S102: initializing a network interface eth0/eth0.iptv for bearing the self service of the set top box;
step S103: reading the networking mode of the current set top box;
step S104: if the set top box is in the second networking mode, initializing an eth0.mesh interface, reading VLAN configuration (assuming that VLAN ID is Internet) connected with Bridge of the set top box, and setting eth0.mesh to process the VLAN;
step S105: if the first networking mode is adopted, initializing an eth0.mesh interface, and setting eth0.mesh to process the Untag message;
step S106: the initialization of the WiFi module of the set top box is completed, and an ap0 interface is created; creating a bridge br0, adding eth0.mesh and ap0 into br0 to form a set top box bridge, forwarding STA data stream, forwarding an easy mesh networking message (an easy mesh protocol message, namely IEEE1905.1 or IEEE1905.1a), completing networking of the set top box, and waiting for message forwarding;
step S107: in the uplink data, the set top box has a service (eth0/eth0.iptv), and the STA data stream and the EasyMesh protocol message are controlled and processed (eth0.mesh) by a native Linux protocol stack. The processing logic is as follows: the set top box has a service message, a socket binding port is established by the set top box, and finally the set top box is determined by the set top box routing and is forwarded by eth0 or eth 0.iptv; the STA data stream is received by an ap0 interface, and the data is transmitted to eth0.mesh for forwarding according to the forwarding principle of the Linux bridge protocol stack; and the EasyMesh protocol message is controlled by a set top box creating socket. The downlink data forwarding logic is as follows;
step S108: reading the message protocol type, judging whether an EasyMesh protocol message (the Ethernet protocol type is 0X893A) exists, if yes, turning to the step S109, and if not, turning to the step S110;
step S109: sending the message to eth0.mesh for receiving;
step S110: analyzing the message VLAN, judging whether the VLAN ID is equal to the Internet (configured in step S104), if so, determining the message VLAN ID is equal to the Internet, if so, determining the message VLAN ID is an STA data stream (in the case, the STA data stream is in a second networking mode and is provided with the VLAN), turning to step S111, and if not, turning to step S112;
step S111: sending the message to eth0.mesh for receiving;
step S112: judging whether the Untag message exists, if so, turning to the step S114, otherwise, turning to the step S113;
step S113: the Linux VLAN protocol stack is processed by default rules and is served by a fourth interface eth0.iptv; wherein, S112 and S113 are used for eth0.iptv of the first networking;
step S114: analyzing the message destination MAC, judging whether the destination MAC is equal to the eth0 interface address, if so, indicating that the message is a data message of the self service of the set top box, and turning to the step S115, and if not, turning to the step S116;
step S115: the message is received by eth 0;
step S116: judging whether to broadcast the message, if so, turning to the step S117, otherwise, turning to the step S118;
step S117: after the message is copied, the message is respectively sent to eth0 and eth0.mesh for receiving;
step S118: judging whether to multicast the message, if so, turning to the step S119, and if not, turning to the step S120;
step S119: multicast group forwarding is carried out according to an eth0 and an eth0.mesh interface; wherein, S115, S117 and S119 are all used for eth0 (the first networking can be set top box plane A Internet, the second networking can also be traditional plane B IPTV, namely a third interface and used in the first networking, and can also be a fourth interface and used in the second networking);
step S120: if the two are not the same, the STA unicast message is considered to be received by eth0.mesh, and data is forwarded to the STA through the bridge, in which case, the first networking is performed, and the STA data stream is unoag.
Based on the Chinese telecommunication specification, the Other Bridge cannot forward br0 data, so that the EasyMesh protocol message VLAN values are different and established in two networking modes. With further application of easy mesh and set-top box WiFi networking, the set-top box and set-top box uplink equipment can further restrain forwarding of an easy mesh protocol message and achieve consistency, if the easy mesh protocol message is a Untag message, in this case, a VLAN of set-top box Internet data can be carried by the easy mesh protocol message, and the set-top box dynamically configures a data processing interface of an STA by analyzing the VLAN.
Under the scheme, the set top box does not need to pay attention to the current networking mode, and only needs to pay attention to the VLAN value carrying the data of the Internet. According to the EasyMesh protocol, in the configuration synchronization phase, the Controller replies Message M2 Message with optional field < other >, which can specify VLAN value. Later, if the standard is formed, other fields may be used, such as some reserved fields of the discovery phase.
The general message format of the EasyMesh protocol message is shown in fig. 6. The data content of M2 is shown in fig. 7, where the data content of the protocols is different in different interaction stages 1905.1.
FIG. 8 is a schematic diagram of a networking mode when the set-top box Internet data is Untag;
fig. 9 is a schematic diagram of a networking mode when the set-top box has a VLAN for Internet data.
The networking method for realizing easy mesh based on the set top box WiFi provided by the embodiment of the invention is that the networking mode is automatic and comprises the following steps: establishing a first interface, acquiring VLAN ID of STA data stream, and judging whether VLAN value is Untag; if the internet link does not have a VLAN, the first networking mode is adopted, the traditional interfaces are created to be a third interface and a fourth interface, and the special interface is a first interface; if the network link is provided with VLAN, the second networking mode is adopted, the traditional interface is created to be a fourth interface, and the special interfaces are a first interface and a second interface; the first interface is used for processing an easy mesh protocol message and processing an Untag STA data stream, the second interface is used for processing an STA data stream with a VLAN, the third interface is used for processing a set top box Internet network data stream in a first networking mode, and the fourth interface is used for processing an IPTV service.
It should be noted that, in the embodiment of the present invention, the above-mentioned legacy interface may be created by a third-party program in the set-top box.
The processing mode of the uplink data is as follows: the self-owned service of the set top box, the STA data stream and the EasyMesh protocol message are controlled and processed by a native Linux protocol stack, the self-owned service of the set top box comprises the Internet network data stream and the IPTV service data stream of the set top box, and the processing logic is as follows: a socket binding port is established by the set-top box, a forwarding interface is finally determined by the set-top box routing, the Internet network data stream of the set-top box is processed by a third interface under the first networking, and the IPTV service data stream is processed by a fourth interface; the STA data stream without the VLAN is processed by the first interface, the STA data stream with the VLAN is processed by the second interface, and the data is sent to the wireless interface for forwarding according to the Linux bridge protocol stack forwarding principle; the EasyMesh protocol message is processed by the first interface after the set top box creates a socket.
The processing mode of the downlink data is as follows: reading the message protocol type, judging whether an EasyMesh protocol message exists or not, if the EasyMesh protocol message exists, sending the message to a first interface for receiving, and if not, entering the next step; analyzing the message VLAN, judging whether the VLAN ID is equal to the configured Internet or not, if so, sending the message to a second interface for receiving, and if not, entering the next step; judging whether the Untag message exists or not, if not, processing the Untag message by a Linux VLAN protocol stack according to default rules, and if so, entering the next step; and analyzing the message destination MAC, judging whether the destination MAC is equal to the address of the third interface or the fourth interface, if so, indicating that the message is a data message of the self-service of the set top box, receiving the message by the third interface or the fourth interface, and if not, judging whether the message is broadcast and processing.
Under the scheme, the specific steps are shown in fig. 10:
step S201: starting the set top box;
step S202: initializing a network interface eth0/eth0.iptv (eth0+ eth0.iptv (first networking) or eth0 (second networking)) for carrying the self-service of the set top box;
step S203: initializing a network interface eth0.mesh for processing an EasyMesh protocol message, completing initialization of a WiFi module of the set-top box, and creating an ap0 interface; creating a bridge br0, and adding eth0.mesh and ap0 to br 0;
step S204: the set top box acquires VLAN of internet network data through the EasyMesh protocol message;
step S205: judging whether the VLAN value is Untag, if not, the STA data stream is also forwarded by eth0.mesh, turning to step S206, and entering a data packet processing state; if yes, go to step S207;
step S206: according to the VLAN value, a network interface eth0.sta for processing the STA data stream is created, the eth0.sta is added into the bridge br0, and the step S207 is carried out;
step S207: in the uplink data, the set-top box has a service (eth0+ eth0.iptv (first networking) or eth0 (second networking)), and the STA data stream and the EasyMesh protocol message are controlled and processed by a native Linux protocol stack (eth 0.mesh). The processing logic is as follows: the set top box has a service message, a socket binding port is established by the set top box, and finally the set top box is determined by the set top box routing and is forwarded by eth0 or eth 0.iptv; the STA data stream is received by an ap0 interface, and the data is sent to eth0.mesh or eth0.sta for forwarding according to the Linux bridge protocol stack forwarding principle; and the EasyMesh protocol message is controlled by a set top box creating socket. The downlink data forwarding logic is as follows;
step S208: reading a message protocol type, judging whether an EasyMesh protocol message (the Ethernet protocol type is 0X893A) exists or not, if yes, turning to a step S209, and if not, turning to a step S210;
step S209: sending the message to eth0.mesh for receiving;
step S210: analyzing the message VLAN, judging whether the VLAN ID is equal to the Internet (configured in step S206), if so, turning to step S211 for the STA data stream with the VLAN (namely, the second networking mode), and if not, turning to step S212;
step S211: sending the message to eth0.sta for receiving;
step S212: judging whether the Untag message exists, if so, turning to the step S214, otherwise, turning to the step S213;
step S213: the Linux VLAN protocol stack is processed by default rules and is served by a fourth interface eth0.iptv; wherein, S212, S213 are used for eth0.iptv of the first networking;
step S214: analyzing the message destination MAC, judging whether the destination MAC is equal to the eth0 interface address, if so, indicating that the message is a data message of the self service of the set top box, and turning to the step S215, and if not, turning to the step S216;
step S215: the message is received by eth 0;
step S216: judging whether to broadcast the message, if so, turning to the step S217, otherwise, turning to the step S218;
step S217: after the message is copied, the message is respectively sent to eth0 and eth0.mesh for receiving;
step S218: judging whether to multicast the message, if so, turning to the step S219, otherwise, turning to the step S220;
step S219: multicast group forwarding is carried out according to an eth0 and an eth0.mesh interface; wherein, S215, S217 and S219 are all used for eth0 (the first networking can be set-top box plane A Internet, the second networking can also be traditional plane B IPTV, namely a third interface and used in the first networking, and can also be a fourth interface and used in the second networking);
step S220: if the two are not the same, the STA unicast message (multicast and broadcast are processed on other interfaces, here, the STA unicast message) is considered to be received by eth0.mesh, and the data is forwarded to the STA through the network bridge. In the auto-configuration case, only eth0.mesh in the first subnet mode is possible here; since the STA is VLAN-attached in the auto-configuration second networking case, it has been handled in eth0.sta described above.
It should be noted that, in the scenario of fig. 10, an eth0.sta processes an STA packet with a VLAN, and if the STA packet does not have the VLAN, the eth0.mesh processes the STA packet.
For the above embodiment, whether the manual or automatic networking mode is adopted, if the two modes are not equal, whether the broadcast message is broadcasted or not is determined, and the processing includes:
judging whether the message is broadcast or not, if so, copying the message and then respectively sending the message to a first interface and a third interface or a fourth interface for receiving, and if not, entering the next step;
judging whether the message is multicast, if so, forwarding the message according to the first interface and the third interface or the fourth interface multicast group, and if not, entering the next step;
if not, the STA unicasts the packet, the packet is received by the first interface, and the data is forwarded to the STA through the network bridge.
Further, the present invention also provides a set top box, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the set-top box WiFi-based easy mesh networking method described above.
It will be understood by those skilled in the art that the foregoing is only a preferred embodiment of the present invention, and is not intended to limit the invention, and that any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (6)
1. A networking method for realizing easy mesh based on a set-top box WiFi (wireless fidelity), is characterized in that a set-top box is additionally provided with a special interface for processing an easy mesh protocol message and an STA (station) data stream on the basis of reserving a traditional interface for processing own service, the special interface, a bridge interface and a wireless interface are bound together, the set-top box distinguishes the easy mesh protocol message according to the Ethernet protocol type, distinguishes the Internet network data stream and the STA data stream of the set-top box according to the MAC (media access control) of the message purpose, processes the IPTV service data stream through the traditional interface, can be automatically configured or manually configured, judges the current networking mode when the set-top box is started, and (1) creates an eth0.mesh interface when the set-top box is a first networking mode, and processes the STA data stream of Untag and the easy mesh protocol message; (2) when the VLAN is the second network, an eth0.mesh interface is created, and the interface is configured to process STA data stream and EasyMesh protocol message of which the VLAN is the Internet; the networking mode is manual, wherein:
in a first networking mode, the traditional interface is a third interface and a fourth interface, and the special interface is a first interface; or,
in a second networking mode, the traditional interface is a fourth interface, and the special interface is a first interface;
the first interface is used for processing an Untag STA data stream and an EasyMesh protocol message in a first networking mode, and processing the EasyMesh message and the STA data stream with a VLAN in a second networking mode; the third interface is used for processing Internet network data stream of the set top box, and the fourth interface is used for processing IPTV service;
the processing mode of the uplink data is as follows: the self-owned service of the set top box, STA data stream and EasyMesh protocol message are controlled and processed by a native Linux protocol stack, the self-owned service of the set top box comprises set top box Internet network data stream and IPTV service data stream, and the processing logic is as follows: a socket binding port is established by the set-top box, a forwarding interface is finally determined by the set-top box routing, the Internet network data stream of the set-top box is processed by a third interface under the first networking, and the IPTV service data stream is processed by a fourth interface; the STA data stream is processed by the first interface, and the data is transmitted to the wireless interface for forwarding according to the forwarding principle of the Linux network bridge protocol stack; the EasyMesh protocol message is processed by a first interface after a socket is created by the set top box;
the processing mode of the downlink data is as follows: reading the message protocol type, judging whether an EasyMesh protocol message exists or not, if yes, sending the message to a first interface for receiving, and if not, entering the next step; analyzing the message VLAN, judging whether the VLAN ID is equal to the VLAN configured for the STA data stream, if equal, sending the message to a first interface for receiving, and if not, entering the next step; judging whether the Untag message exists or not, if not, processing the Untag message by a Linux VLAN protocol stack according to default rules, and if so, entering the next step; and analyzing the message destination MAC, judging whether the destination MAC is equal to the address of the third interface or the fourth interface, if so, indicating that the message is a data message of the self-service of the set top box, and if not, judging whether the message is broadcast and processed.
2. The networking method for implementing easy mesh based on set-top box WiFi as claimed in claim 1, wherein if unequal, determining whether to broadcast the message and process it specifically includes:
judging whether the message is broadcast or not, if so, copying the message and then respectively sending the message to a first interface and a third interface or a fourth interface for receiving, and if not, entering the next step;
judging whether the message is multicast, if so, forwarding the message according to the first interface and the third interface or the fourth interface multicast group, and if not, entering the next step;
if not, the STA unicasts the packet, the packet is received by the first interface, and the data is forwarded to the STA through the network bridge.
3. A networking method for realizing easy mesh based on a set-top box WiFi (wireless fidelity), is characterized in that a set-top box is additionally provided with a special interface for processing an easy mesh protocol message and an STA (station) data stream on the basis of reserving a traditional interface for processing own service, the special interface, a bridge interface and a wireless interface are bound together, the set-top box distinguishes the easy mesh protocol message according to the Ethernet protocol type, distinguishes the Internet network data stream and the STA data stream of the set-top box according to the MAC (media access control) of the message purpose, processes the IPTV service data stream through the traditional interface, can be automatically configured or manually configured, judges the current networking mode when the set-top box is started, and (1) creates an eth0.mesh interface when the set-top box is a first networking mode, and processes the STA data stream of Untag and the easy mesh protocol message; (2) when the network is a second network, establishing an eth0.mesh interface, and configuring the interface to process STA data stream and EasyMesh protocol message of which the VLAN is the Internet;
the networking mode is automatic, including: establishing a first interface, acquiring the VLANID of the STA data stream, and judging whether the VLAN value is Untag; the first interface is used for processing an easy mesh protocol message and processing STA data stream of Untag, the second interface is used for processing STA data stream with VLAN, the third interface is used for processing Internet network data stream of the set-top box in a first networking mode, and the fourth interface is used for processing IPTV service;
the processing mode of the uplink data is as follows: the self-owned service of the set top box, the STA data stream and the EasyMesh protocol message are controlled and processed by a native Linux protocol stack, the self-owned service of the set top box comprises the Internet network data stream and the IPTV service data stream of the set top box, and the processing logic is as follows: a socket binding port is established by the set-top box, a forwarding interface is finally determined by the set-top box routing, the Internet network data stream of the set-top box is processed by a third interface under the first networking, and the IPTV service data stream is processed by a fourth interface; the STA data stream without the VLAN is processed by the first interface, the STA data stream with the VLAN is processed by the second interface, and the data is sent to the wireless interface for forwarding according to the Linux bridge protocol stack forwarding principle; the EasyMesh protocol message is processed by a first interface after a socket is established by the set top box;
the processing mode of the downlink data is as follows: reading the message protocol type, judging whether an EasyMesh protocol message exists or not, if the EasyMesh protocol message exists, sending the message to a first interface for receiving, and if not, entering the next step; analyzing the message VLAN, judging whether the VLAN ID is equal to the configured Internet or not, if so, sending the message to a second interface for receiving, and if not, entering the next step; judging whether the Untag message exists or not, if not, processing the Untag message by a Linux VLAN protocol stack according to default rules, and if so, entering the next step; and analyzing the message destination MAC, judging whether the destination MAC is equal to the address of the third interface or the fourth interface, if so, indicating that the message is a data message of the self-service of the set top box, receiving the message by the third interface or the fourth interface, and if not, judging whether the message is broadcast and processing.
4. The networking method for implementing easy mesh based on set-top box WiFi as claimed in claim 3, wherein if unequal, determining whether to broadcast the message and process it specifically includes:
judging whether the message is broadcast or not, if so, copying the message and then respectively sending the message to a first interface and a third interface or a fourth interface for receiving, and if not, entering the next step;
judging whether to multicast the message, if so, forwarding the message according to the first interface and the third interface or the fourth interface multicast group, and if not, entering the next step;
if not, the STA unicasts the packet, the packet is received by the first interface, and the data is forwarded to the STA through the network bridge.
5. The networking method for implementing EasyMesh based on set-top box WiFi as claimed in claim 3, wherein during auto configuration, vlan id of STA data stream is obtained from Message M2 Message replied by AP Controller.
6. A set top box, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the set-top box WiFi enabled easy mesh based networking method of any of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011022121.8A CN112235617B (en) | 2020-09-25 | 2020-09-25 | Set-top box WiFi-based networking method for realizing easy mesh and set-top box |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011022121.8A CN112235617B (en) | 2020-09-25 | 2020-09-25 | Set-top box WiFi-based networking method for realizing easy mesh and set-top box |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112235617A CN112235617A (en) | 2021-01-15 |
CN112235617B true CN112235617B (en) | 2022-07-08 |
Family
ID=74107181
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011022121.8A Active CN112235617B (en) | 2020-09-25 | 2020-09-25 | Set-top box WiFi-based networking method for realizing easy mesh and set-top box |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112235617B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113260072B (en) * | 2021-05-10 | 2022-06-14 | 中国电信股份有限公司 | Mesh networking traffic scheduling method, gateway equipment and storage medium |
CN114040463B (en) * | 2021-11-05 | 2024-09-13 | 深圳市联洲国际技术有限公司 | Networking method and device, computer readable storage medium and processor |
CN118102035B (en) * | 2024-04-23 | 2024-07-16 | 四川天邑康和通信股份有限公司 | Set top box network connection method and system based on detection network environment |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101990122A (en) * | 2010-11-15 | 2011-03-23 | 四川九州电子科技股份有限公司 | Set top box surfing the net through coaxial cable and supporting wireless network |
CN102227137A (en) * | 2011-05-06 | 2011-10-26 | 中兴通讯股份有限公司 | Network digital set top box and method for realizing multiple network access |
CN202285423U (en) * | 2011-09-15 | 2012-06-27 | 广州视源电子科技有限公司 | Intelligent set top box |
CN204350030U (en) * | 2015-01-08 | 2015-05-20 | 三明学院 | Based on the multi-functional household things-internet gateway device of Set Top Box |
CN205657807U (en) * | 2016-05-30 | 2016-10-19 | 军嫂(北京)科技有限公司 | Four nuclear route network STB all -in -ones |
CN206061023U (en) * | 2016-09-26 | 2017-03-29 | 深圳市智汇迅科技有限公司 | A kind of of the OTT set-top box with 4G networks and router feature |
WO2017097093A1 (en) * | 2015-12-08 | 2017-06-15 | 中兴通讯股份有限公司 | Implementation method for home internet of things, set top box, and internet-of-things server |
CN210042065U (en) * | 2019-05-29 | 2020-02-07 | 深圳感臻科技有限公司 | Network terminal and Wifi-Mesh networking device |
CN110831063A (en) * | 2019-11-13 | 2020-02-21 | 深圳市共进电子股份有限公司 | Method, system, computer terminal and storage medium for optimizing network relay link |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8724639B2 (en) * | 2010-02-26 | 2014-05-13 | Mohamed K. Mahmoud | Smart home hub |
-
2020
- 2020-09-25 CN CN202011022121.8A patent/CN112235617B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101990122A (en) * | 2010-11-15 | 2011-03-23 | 四川九州电子科技股份有限公司 | Set top box surfing the net through coaxial cable and supporting wireless network |
CN102227137A (en) * | 2011-05-06 | 2011-10-26 | 中兴通讯股份有限公司 | Network digital set top box and method for realizing multiple network access |
CN202285423U (en) * | 2011-09-15 | 2012-06-27 | 广州视源电子科技有限公司 | Intelligent set top box |
CN204350030U (en) * | 2015-01-08 | 2015-05-20 | 三明学院 | Based on the multi-functional household things-internet gateway device of Set Top Box |
WO2017097093A1 (en) * | 2015-12-08 | 2017-06-15 | 中兴通讯股份有限公司 | Implementation method for home internet of things, set top box, and internet-of-things server |
CN205657807U (en) * | 2016-05-30 | 2016-10-19 | 军嫂(北京)科技有限公司 | Four nuclear route network STB all -in -ones |
CN206061023U (en) * | 2016-09-26 | 2017-03-29 | 深圳市智汇迅科技有限公司 | A kind of of the OTT set-top box with 4G networks and router feature |
CN210042065U (en) * | 2019-05-29 | 2020-02-07 | 深圳感臻科技有限公司 | Network terminal and Wifi-Mesh networking device |
CN110831063A (en) * | 2019-11-13 | 2020-02-21 | 深圳市共进电子股份有限公司 | Method, system, computer terminal and storage medium for optimizing network relay link |
Non-Patent Citations (1)
Title |
---|
无线Mesh网络技术;张建吉等;《科技创新导报》;20071221(第36期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN112235617A (en) | 2021-01-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112235617B (en) | Set-top box WiFi-based networking method for realizing easy mesh and set-top box | |
US11201814B2 (en) | Configuration of networks using switch device access of remote server | |
US9148299B2 (en) | Bridging wireless and wired media in a computer network | |
US7724688B2 (en) | Communication equipment | |
US10142342B2 (en) | Authentication of client devices in networks | |
US9813291B2 (en) | Shortest path bridging (SPB) configuration of networks using client device access of remote | |
JP2003032287A (en) | Method and apparatus for connecting networks, and system using the apparatus | |
US20150271016A1 (en) | Configuration of networks with server cluster device | |
EP3032782B1 (en) | Packet transmission method and apparatus | |
JP7528940B2 (en) | Relay device, vehicle communication system, communication method, and communication program | |
JP2007150633A (en) | Wireless lan access point, ip address management method using the same, and management program | |
CN105323159A (en) | Data message processing method and device | |
CN110708230A (en) | Designated forwarder election method and device | |
CN110798409A (en) | Traffic processing method, device and storage medium | |
CN113260072B (en) | Mesh networking traffic scheduling method, gateway equipment and storage medium | |
WO2021190075A1 (en) | Method and apparatus for transmitting policy, and network transmission system | |
JP3599476B2 (en) | Network connection method | |
US7886078B2 (en) | Connection support server and communication apparatus | |
CN109068338A (en) | A kind of system and method for detection and three address wireless distribution system compatibility of processing | |
US20230179444A1 (en) | Network configuration method, terminal, system, and storage medium | |
WO2011026406A1 (en) | Method and communication device for transmitting data packets, and method for distributing user identifications | |
CN107995085B (en) | Message forwarding method and device | |
CN114024725A (en) | Inter-container communication method, system, electronic equipment and storage medium | |
CN118842751A (en) | Message transmission method, device, system, equipment and medium | |
Perlman et al. | RFC 6325: Routing Bridges (RBridges): Base Protocol Specification |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |