CN109450692A - A kind of networking method, system and terminal device - Google Patents

A kind of networking method, system and terminal device Download PDF

Info

Publication number
CN109450692A
CN109450692A CN201811389640.0A CN201811389640A CN109450692A CN 109450692 A CN109450692 A CN 109450692A CN 201811389640 A CN201811389640 A CN 201811389640A CN 109450692 A CN109450692 A CN 109450692A
Authority
CN
China
Prior art keywords
message
network
upstream interface
link
interface
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.)
Granted
Application number
CN201811389640.0A
Other languages
Chinese (zh)
Other versions
CN109450692B (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.)
Chengdu Lianzhou International Technology Co ltd
Original Assignee
TP Link 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 TP Link Technologies Co Ltd filed Critical TP Link Technologies Co Ltd
Priority to CN201811389640.0A priority Critical patent/CN109450692B/en
Publication of CN109450692A publication Critical patent/CN109450692A/en
Application granted granted Critical
Publication of CN109450692B publication Critical patent/CN109450692B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W16/00Network planning, e.g. coverage or traffic planning tools; Network deployment, e.g. resource partitioning or cells structures
    • H04W16/18Network planning tools

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a kind of networking methods, comprising: when response wire link link order, sends the first message every the first preset time period;First message includes first network hierarchical information;The second message that other equipment are sent is received, when the second network level information entrained by the second message is less than first network hierarchical information, recording the current interface for receiving the second message is upstream Interface;A best upstream Interface is selected to be used to receive or send the upstream Interface of broadcast message for current device from all upstream Interfaces according to link selection algorithm;Judge whether to receive the second network level information more than or equal to first network hierarchical information in the second preset time period;If so, keeping current upstream Interface is that best upstream Interface is constant;If it is not, then reacquiring best upstream Interface.The embodiment of the invention also discloses a kind of network constructing systems and a kind of terminal device.It can keep working normally in swappable device, utmostly utilize all links of equipment.

Description

A kind of networking method, system and terminal device
Technical field
The present invention relates to field of communication technology more particularly to a kind of networking methods, system and terminal device.
Background technique
In the coverage area deficiency of wireless router, need to expand using wireless repeater (wireless repeater) Open up wireless coverage.Wireless repeater includes multiple types: only supporting the repeater of wireless bridging;Support nothing The repeater of line bridge joint and wired bridge joint;Only support the repeater of wired bridge joint.It is needed at this time by repeater and nothing The coverage area that line router is configured and correct mode is selected to carry out extended network.
But since repeater is data link layer network extension, it is not suitable for the Routing Protocol of network layer.It is main at present The configuration mode of stream needs user voluntarily to select the operating mode of repeater, and confirms that there is no loopbacks in whole network. When some equipment damage or removal, it is necessary to be reconfigured according to network state.When there is repeater hair in existing scheme When raw abnormal or removed, extended network can only interrupt and need to reconfigure.And in configuration process to The technical requirements at family are high, will lead to periods of network disruption when user configuration mistake.
Summary of the invention
The purpose of the embodiment of the present invention is that a kind of networking method, system and terminal device are provided, using of the invention real Example is applied, extended network in network configuration process is able to solve and interrupts, needs the problem of reconfiguring, and kept just when swappable device Often work, while can utmostly utilize all links of equipment.
To achieve the above object, the embodiment of the invention provides a kind of networking methods, comprising:
When responding wire link link order, the first message is sent every the first preset time period;Wherein, first report Text includes first network hierarchical information;
The second message that other equipment are sent is received, the second network level information entrained by second message is less than When the first network hierarchical information, the interface that record currently receives second message is upstream Interface;
Selecting a best upstream Interface from all upstream Interfaces according to link selection algorithm is current device for receiving Or send the upstream Interface of broadcast message;Wherein, remaining upstream Interface is forbidden receiving or sending broadcast message;
Judge whether the best upstream Interface receives more than or equal to the first network in the second preset time period Second network level information of hierarchical information;
If so, keeping current upstream Interface is that the best upstream Interface is constant;If it is not, then removing the best uplink Interface simultaneously reacquires new best upstream Interface.
Compared with prior art, networking method disclosed by the invention, firstly, in response wire link link order When, the first message is sent every the first preset time period;Then, the second message that other equipment are sent is received, when described second When second network level information entrained by message is less than first network hierarchical information entrained by first message, record is worked as The preceding interface for receiving second message is upstream Interface;Finally, being selected from all upstream Interfaces according to link selection algorithm One best upstream Interface is the upstream Interface that current device is used to receive or send broadcast message, and in the second preset time period Judge whether to receive the second network level information more than or equal to the first network hierarchical information;If so, keeping current Upstream Interface is that the best upstream Interface is constant;If it is not, illustrating that upper level link is changed, it may be possible to which equipment occurs to insert It pulls out, so needing to reselect interface, guarantees the normal transmission of data.It solves in the prior art when some equipment damage or shifting Except when, it is necessary to the problem of being reconfigured according to network state.The configuration of equipment can be ignored, no matter the network topology of equipment How to connect, access multiple switch, the wireline interface of swappable device, network can be always maintained at normal work;It can be most Big degree can achieve the cumulative effect of bandwidth using all links and the link selection algorithm cooperation of equipment, being capable of maximum journey Degree utilizes all links of equipment.
As an improvement of the above scheme, after second message for receiving other equipment transmission, further includes:
When the second network level information entrained by second message is equal to the first network hierarchical information, to working as Other interfaces of preceding equipment forward second message;
When the second network level information entrained by second message is greater than the first network hierarchical information, abandon Second message.
As an improvement of the above scheme, the method also includes:
Carried out data transmission based on the best upstream Interface.
As an improvement of the above scheme, the link selection algorithm is the selection algorithm based on link weight;Wherein, described Link weight be the level that receives of presently described upstream Interface differ highest hierarchy node link information and current level The accumulation information of the link information of node.
As an improvement of the above scheme, described to be carried out data transmission based on the best upstream Interface, it specifically includes:
When the direct-connected current device of the purpose mac of transfer device to be passed, the data of the transfer device to be passed are directly forwarded;
When the purpose mac not direct-connected current device of transfer device to be passed, judges whether there is and prestore forwarding entry;If so, The data of the transfer device to be passed are then forwarded according to the forwarding entry;If not;To the interface for not prestoring the forwarding entry The data of the transfer device to be passed are forwarded, and establish the forwarding entry when receiving reply.
As an improvement of the above scheme, before responding wire link link order, further includes:
When responding enabled instruction, wireless networking is carried out by wireless self-networking mode;
The network level of the wireless networking is obtained according to organization algorithm.
To achieve the above object, the embodiment of the invention also provides a kind of network constructing systems, comprising:
Packet sending unit when for responding wire link link order, sends the first report every the first preset time period Text;Wherein, first message includes first network hierarchical information;
Message receiving unit, for receiving the second message of other equipment transmission,
Network level judging unit is less than described for the second network level information entrained by second message When one network level information, the interface that record currently receives second message is upstream Interface;
Best upstream Interface judging unit, for select from all upstream Interfaces according to link selection algorithm one most preferably Line interface is the upstream Interface that current device is used to receive or send broadcast message;Wherein, remaining upstream Interface forbid receive or Send broadcast message;
Best upstream Interface processing unit, for judging whether the best upstream Interface is received in the second preset time period To the second network level information for being greater than or equal to the first network hierarchical information;If so, keeping the current upstream Interface to be The best upstream Interface is constant;If it is not, then removing the best upstream Interface and reacquiring new best upstream Interface.
Compared with prior art, network constructing system disclosed by the invention, firstly, packet sending unit is responding wired chain When the link order of road, the first message is sent every the first preset time period;Then, message receiving unit receives other equipment and sends The second message, when to determine that the second network level information entrained by second message is less than described for network level judging unit Entrained by first message when first network hierarchical information, the interface that record currently receives second message is upstream Interface; Finally, best upstream Interface judging unit selected from all upstream Interfaces according to link selection algorithm a best upstream Interface for Current device is used to receive or send the upstream Interface of broadcast message, and best upstream Interface processing unit is in the second preset time period Inside judge whether to receive the second network level information more than or equal to the first network hierarchical information;If so, keeping working as Preceding upstream Interface is that the best upstream Interface is constant;If it is not, illustrating that upper level link is changed, it may be possible to which equipment occurs Plug, so needing to reselect interface, guarantees the normal transmission of data.Solve in the prior art when some equipment damage or When removal, it is necessary to the problem of being reconfigured according to network state.The configuration of equipment can be ignored, no matter the network of equipment is opened up It flutters and how to connect, access multiple switch, the wireline interface of swappable device, network can be always maintained at normal work;It can be with Utmostly it can achieve the cumulative effect of bandwidth using all links of equipment and link selection algorithm cooperation, it can be maximum Degree utilizes all links of equipment.
As an improvement of the above scheme, the network level judging unit is also used to:
When the second network level information entrained by second message is equal to the first network hierarchical information, to working as Other interfaces of preceding equipment forward second message;
When the second network level information entrained by second message is greater than the first network hierarchical information, abandon Second message.
As an improvement of the above scheme, the link selection algorithm is the selection algorithm based on link weight;Wherein, described Link weight be the level that receives of presently described upstream Interface differ highest hierarchy node link information and current level The accumulation information of the link information of node;
The network constructing system further includes data transmission unit, and the data transmission unit is used for based on described best Line interface carries out data transmission;
Wherein, the data transmission unit is specifically used for:
When the direct-connected current device of the purpose mac of transfer device to be passed, the data of the transfer device to be passed are directly forwarded;
When the purpose mac not direct-connected current device of transfer device to be passed, judges whether there is and prestore forwarding entry;If so, The data of the transfer device to be passed are then forwarded according to the forwarding entry;If not;To the interface for not prestoring the forwarding entry The data of the transfer device to be passed are forwarded, and establish the forwarding entry when receiving reply.
To achieve the above object, the embodiment of the present invention also provides a kind of terminal device, including processor, memory and deposits The computer program executed by the processor is stored up in the memory and is configured as, the processor executes the calculating The networking method as described in any one of above-described embodiment is realized when machine program.
Detailed description of the invention
Fig. 1 is a kind of flow chart of networking method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of step S101~S102 in a kind of networking method provided in an embodiment of the present invention;
Fig. 3 is the tree topology schematic diagram of equipment in a kind of networking method provided in an embodiment of the present invention;
Fig. 4 is the bus topology schematic diagram of equipment in a kind of networking method provided in an embodiment of the present invention;
Fig. 5 is that the bus topology of equipment in a kind of networking method provided in an embodiment of the present invention shows and tree topology conjunction And schematic diagram;
Fig. 6 is a kind of structural schematic diagram of network constructing system 10 provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of terminal device 20 provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Embodiment one
It is a kind of flow chart of networking method provided in an embodiment of the present invention referring to Fig. 1, Fig. 1;Include:
When S11, response wire link link order, the first message is sent every the first preset time period;Wherein, described One message includes first network hierarchical information;
S12, the second message that other equipment are sent, the second network level information entrained by second message are received When less than the first network hierarchical information, the interface that record currently receives second message is upstream Interface;
S13, a best upstream Interface is selected to be used for from all upstream Interfaces for current device according to link selection algorithm Receive or send the upstream Interface of broadcast message;Wherein, remaining upstream Interface is forbidden receiving or sending broadcast message;
S14, judge whether the best upstream Interface receives more than or equal to described first in the second preset time period Second network level information of network level information;
S15, if so, keep current upstream Interface be the best upstream Interface it is constant;If it is not, then removing described best Upstream Interface simultaneously reacquires new best upstream Interface.
Specifically, before the wired connection for executing step S11, it is also necessary to be wirelessly connected to each equipment, at this time It further include step S101~S102, referring to fig. 2, Fig. 2 is step in a kind of networking method provided in an embodiment of the present invention The flow chart of S101~S102;Include:
When S101, response enabled instruction, wireless networking is carried out by wireless self-networking mode;
S102, the network level that the wireless networking is obtained according to organization algorithm.
Specifically, in step s101, when wireless device carries out wireless extensions, setting up agreement, equipment according to wireless Between can be constructed as tree topology in layer.When equipment response enabled instruction starts starting, pass through wireless self-networking first Mode carries out wireless networking, to form tree topology as shown in Figure 3, the dotted line in Fig. 3 indicates the radio chains between equipment Road.
Specifically, in step s 102, the network level of the wireless networking is obtained according to organization algorithm, by it is wireless from The equipment that networking mode carries out networking will transmit by beacon frame and determine the network level of each equipment.Wherein, described Network level refers to that current data message needs to get to root device, the net of the root device by how many a device forwards Network layers grade is 0, and each equipment adds 1 in the network level of oneself father node thereafter.Equipment schematic diagram after having set up network level As shown in figure 3, Fig. 3 includes A~F6 equipment.Wherein, equipment A is with equipment, and level is expressed as L0, indicates lowest hierarchical level;If Standby B and equipment C is in same level, and level is expressed as L1;Equipment D, E and F are in same level, and level is expressed as L2.
Specifically, in step s 11, when responding wire link link order, the connection of wire link is opened, due to having The network characteristic of wired link, connection forms bus topology at once when starting, as shown in figure 4, Fig. 4 is that the embodiment of the present invention mentions The bus topology schematic diagram of equipment in a kind of networking method supplied;When wired class equipment carries out network extension, if It is that PLC device will directly form bus topology, needs to cooperate switch if it is ethernet device, then can is with switch Bus forms bus topology, if there is the switch of multiple isolation will will form multiple bus, it is assumed that in Fig. 4 in bus topology Equipment A, equipment B and equipment F support PLC, equipment C, equipment D and equipment E to be connected on switch, and the solid line in figure indicates wired chain Road.At this point, Fig. 5 is that the bus topology of equipment in a kind of networking method provided in an embodiment of the present invention shows and sets referring to Fig. 5 Shape topology combination schematic diagram, i.e. wire link and Radio Link exist simultaneously.
It is worth noting that each equipment in networking can broadcasting packet, the equipment of only direct-connected (wired connection) is It will receive the message that this includes own net hierarchical information.Preferably, first preset time period is two seconds.
Specifically, in step s 12, receiving the second message that other equipment are sent, and the first network with itself storage Hierarchical information compares, and the second network level information entrained by second message is less than the first network hierarchical information When, the interface that record currently receives second message is upstream Interface;The second network layer entrained by second message When grade information is equal to the first network hierarchical information, second message is forwarded to other interfaces of current device;When described When second network level information entrained by second message is greater than the first network hierarchical information, second message is abandoned.
Specifically, in step s 13, when having wireline interface to be marked as upstream Interface, starting link selection is calculated Method, selecting a best upstream Interface from all upstream Interfaces according to link selection algorithm is current device for receiving or sending The upstream Interface of broadcast message, and remaining upstream Interface is forbidden to receive or send broadcast message;It is on wired by this state recording Row state.
Preferably, the link selection algorithm is the selection algorithm based on link weight;Wherein, the link weight is to work as The link of link information and current hierarchy node that the level that the preceding upstream Interface receives differs highest hierarchy node is believed The accumulation information of breath.As the equipment F of Fig. 3, direct-connected device A (differing 2 with current level) and equipment B (are differed with current level 1) when, calculating the link weight of wireline interface, using the link information that level differs highest equipment A add up this wire link believe Cease the weight as equipment F wire link.I.e. may be selected the maximum upstream Interface of link weight as current device it is best on Line interface, each equipment has best upstream Interface at this time.
Specifically, judging whether to receive more than or equal to described in the second preset time period in step S14~S15 Second network level information of first network hierarchical information;If so, keeping current upstream Interface is the best upstream Interface It is constant;If it is not, then removing the best upstream Interface and reacquiring new best upstream Interface.
Preferably, second preset time period is 10 seconds.If all do not received in 10 seconds more than or equal to described Second network level information of one network level information, then illustrate that upper level link is changed, it may be possible to remove or connect It is connected to otherwise, so needing to reselect interface.When needing to carry out data transmission, any equipment is plugged, such as The equipment A in Fig. 5 is plugged, at this time because of upstream Interface direct-connected with equipment A in equipment F in original state (non-swappable device A) For best upstream Interface, equipment F and equipment A direct-connected best upstream Interface can not be received greater than itself first network layer at this time The second network level information (showing the already off wired connection of equipment A at this time, may be removed) of grade information, equipment F is clear Except the best upstream Interface, and return step S12 reselects new best upstream Interface and carries out data transmission, and networking can It works normally.
Preferably, after determining the best upstream Interface, the transmission of data can be carried out, at this time further includes step S16: carried out data transmission based on the best upstream Interface.Further, described to be counted based on the best upstream Interface According to transmission, specifically include:
When the direct-connected current device of the purpose mac of transfer device to be passed, the data of the transfer device to be passed are directly forwarded;
When the purpose mac not direct-connected current device of transfer device to be passed, judges whether there is and prestore forwarding entry;If so, The data of the transfer device to be passed are then forwarded according to the forwarding entry;If not;To the interface for not prestoring the forwarding entry The data of the transfer device to be passed are forwarded, and establish the forwarding entry when receiving reply.
When it is implemented, firstly, sending the first report every the first preset time period when responding wire link link order Text;Then, the second message that other equipment are sent is received, the second network level information entrained by second message is less than When first network hierarchical information entrained by first message, the interface that record currently receives second message connects for uplink Mouthful;Finally, selecting a best upstream Interface from all upstream Interfaces according to link selection algorithm is current device for receiving Or the upstream Interface of broadcast message is sent, and judge whether to receive more than or equal to first net in the second preset time period Second network level information of network hierarchical information;If so, keeping current upstream Interface is that the best upstream Interface is constant;If It is no, illustrate that upper level link is changed, it may be possible to which equipment plugs, so needing to reselect interface, guarantees data Normal transmission.
Compared with prior art, networking method disclosed by the invention solves in the prior art when some equipment is damaged When bad or removal, it is necessary to the problem of being reconfigured according to network state.The configuration of equipment can be ignored, no matter the net of equipment How network topology connects, and accesses multiple switch, the wireline interface of swappable device, and network can be always maintained at normal work; The cumulative effect of bandwidth utmostly can be can achieve using all links of equipment and link selection algorithm cooperation, it can Utmostly utilize all links of equipment.
Embodiment two
It is a kind of structural schematic diagram of network constructing system 10 provided in an embodiment of the present invention referring to Fig. 6, Fig. 6;Include:
Packet sending unit 11 when for responding wire link link order, sends first every the first preset time period Message;Wherein, first message includes first network hierarchical information;
Message receiving unit 12, for receiving the second message of other equipment transmission,
Network level judging unit 13, for working as the second network level information entrained by second message less than described When first network hierarchical information, the interface that record currently receives second message is upstream Interface;
Best upstream Interface judging unit 14, for select from all upstream Interfaces according to link selection algorithm one most preferably Upstream Interface is the upstream Interface that current device is used to receive or send broadcast message;Wherein, remaining upstream Interface is forbidden receiving Or send broadcast message;
Best upstream Interface processing unit 15, for whether judging the best upstream Interface in the second preset time period Receive the second network level information more than or equal to the first network hierarchical information;If so, keeping current upstream Interface It is constant for the best upstream Interface;If it is not, then removing the best upstream Interface and reacquiring new best upstream Interface.
Preferably, the network constructing system 10 further includes wireless networking unit 16 and network level division unit 17;Its In, the wireless networking unit 16 is for carrying out wireless networking by wireless self-networking mode when responding enabled instruction;The net Network layers grade division unit 17 is used to obtain the network level of the wireless networking according to organization algorithm.
Specifically, agreement is set up according to wireless when wireless device carries out wireless extensions, it can be in layer between equipment It is constructed as tree topology.When equipment response enabled instruction starts starting, the wireless networking unit 16 passes through wirelessly certainly first Networking mode carries out wireless networking, to form tree topology as shown in Figure 3, the dotted line in Fig. 3 indicates the nothing between equipment Wired link.
Specifically, the network level division unit 17 obtains the network level of the wireless networking according to organization algorithm, The network level of each equipment will be transmitted and determined by beacon frame by the equipment that wireless self-networking mode carries out networking. Wherein, the network level refers to that current data message needs to get to root device by how many a device forwards, described The network level of root device is 0, and each equipment adds 1 in the network level of oneself father node thereafter.
Specifically, the connection of wire link is opened when the packet sending unit 11 responds wire link link order, Due to the network characteristic of wire link, connection forms bus topology at once when starting, as shown in figure 4, wired class equipment into When row network extends, bus topology will be directly formed if it is PLC device, needs to cooperate if it is ethernet device Then switch can form bus topology by bus of switch, if there is the switch of multiple isolation will will form it is a plurality of total Line, it is worth noting that, each equipment in networking can broadcasting packet, the equipment of only direct-connected (wired connection) just will receive This includes the message of own net hierarchical information.Preferably, first preset time period is two seconds.
Specifically, the message receiving unit 12 receives the second message that other equipment are sent, and pass through the network layer The first network hierarchical information that stores with itself of grade judging unit 13 compares, the second network entrained by second message When hierarchical information is less than the first network hierarchical information, the interface that record currently receives second message is upstream Interface; When the second network level information entrained by second message is equal to the first network hierarchical information, to current device Other interfaces forward second message;The second network level information entrained by second message is greater than first net When network hierarchical information, second message is abandoned.
Specifically, when thering is wireline interface to be marked as upstream Interface, the best upstream Interface judging unit 14 Start link selection algorithm, selecting a best upstream Interface from all upstream Interfaces according to link selection algorithm is current device For receiving or sending the upstream Interface of broadcast message, and remaining upstream Interface is forbidden to receive or send broadcast message;By this shape State is recorded as wired uplink state.
Preferably, the link selection algorithm is the selection algorithm based on link weight;Wherein, the link weight is to work as The link of link information and current hierarchy node that the level that the preceding upstream Interface receives differs highest hierarchy node is believed The accumulation information of breath.
Specifically, the best upstream Interface processing unit 15 judge whether to receive in the second preset time period be greater than or Equal to the second network level information of the first network hierarchical information;If so, it is described best for keeping current upstream Interface Upstream Interface is constant;If it is not, then removing the best upstream Interface.
Preferably, second preset time period is 10 seconds.If all do not received in 10 seconds more than or equal to described Second network level information of one network level information, then illustrate that upper level link is changed, it may be possible to remove or connect It is connected to otherwise, so needing to reselect interface.When needing to carry out data transmission, any equipment is plugged, such as The equipment A in Fig. 5 is plugged, at this time because of upstream Interface direct-connected with equipment A in equipment F in original state (non-swappable device A) For best upstream Interface, equipment F and equipment A direct-connected best upstream Interface can not be received greater than itself first network layer at this time The second network level information (showing the already off wired connection of equipment A at this time, may be removed) of grade information, equipment F is clear It except the best upstream Interface, and reselects new best upstream Interface and carries out data transmission, networking can work normally.
Preferably, after determining the best upstream Interface, the transmission of data, the network constructing system can be carried out 10 further include data transmission unit 18, and the data transmission unit 18, which is based on the best upstream Interface, to carry out data transmission.
Further, the data transmission unit 18 is specifically used for:
When the direct-connected current device of the purpose mac of transfer device to be passed, the data of the transfer device to be passed are directly forwarded;
When the purpose mac not direct-connected current device of transfer device to be passed, judges whether there is and prestore forwarding entry;If so, The data of the transfer device to be passed are then forwarded according to the forwarding entry;If not;To the interface for not prestoring the forwarding entry The data of the transfer device to be passed are forwarded, and establish the forwarding entry when receiving reply.
When it is implemented, firstly, packet sending unit 11 when responding wire link link order, when first is default Between section send the first message;Then, message receiving unit 12 receives the second message that other equipment are sent, when network level judges Unit 13 determines that the second network level information entrained by second message is less than the first net entrained by first message When network hierarchical information, the interface that record currently receives second message is upstream Interface;Finally, best upstream Interface judgement is single It is current device for receiving or sending out that member 14 selects a best upstream Interface according to link selection algorithm from all upstream Interfaces The upstream Interface of broadcast message is sent, best upstream Interface processing unit 15 judges whether to receive in the second preset time period to be greater than Or the second network level information equal to the first network hierarchical information;If so, keep current upstream Interface be it is described most Good upstream Interface is constant;If it is not, illustrating that upper level link is changed, it may be possible to which equipment plugs, so needing again Interface is selected, guarantees the normal transmission of data.
Compared with prior art, network constructing system 10 disclosed by the invention solves in the prior art when some equipment When damage or removal, it is necessary to the problem of being reconfigured according to network state.The configuration of equipment can be ignored, no matter equipment How network topology connects, and accesses multiple switch, the wireline interface of swappable device, and network can be always maintained at normal work Make;The cumulative effect of bandwidth, energy utmostly can be can achieve using all links of equipment and link selection algorithm cooperation Enough all links for utmostly utilizing equipment.
Embodiment three
It is a kind of structural schematic diagram of terminal device 20 provided in an embodiment of the present invention referring to Fig. 7, Fig. 7;The embodiment Terminal device 20 includes: processor 21, memory 22 and is stored in the memory 22 and can be on the processor 21 The computer program of operation.The processor 21 realizes that above-mentioned each networking method is implemented when executing the computer program Step in example, such as step S11~S15 shown in FIG. 1.Alternatively, reality when the processor 21 executes the computer program The function of each module/unit in existing above-mentioned each Installation practice, such as packet sending unit 11.
Illustratively, the computer program can be divided into one or more module/units, one or more A module/unit is stored in the memory 22, and is executed by the processor 21, to complete the present invention.It is one Or multiple module/units can be the series of computation machine program instruction section that can complete specific function, the instruction segment is for retouching State implementation procedure of the computer program in the terminal device 20.For example, the computer program can be divided into It is packet sending unit 11, message receiving unit 12, network level judging unit 13, best upstream Interface judging unit 14, best Upstream Interface processing unit 15, wireless networking unit 16, network level division unit 17 and data transmission unit 18, it is specific each The course of work of each unit in network constructing system 10 described in the function reference implementation example two of unit, details are not described herein.
The terminal device 20 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The terminal device 20 may include, but be not limited only to, processor 21, memory 22.It will be understood by those skilled in the art that The schematic diagram is only the example of terminal device 20, does not constitute the restriction to terminal device 20, may include than illustrating more More or less component perhaps combines certain components or different components, such as the terminal device 20 can also include defeated Enter output equipment, network access equipment, bus etc..
The processor 21 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng the processor 21 is the control centre of the terminal device 20, utilizes various interfaces and the entire terminal device of connection 20 various pieces.
The memory 22 can be used for storing the computer program and/or module, the processor 21 by operation or The computer program and/or module being stored in the memory 22 are executed, and calls the data being stored in memory 22, Realize the various functions of the terminal device 20.The memory 22 can mainly include storing program area and storage data area, In, storing program area can application program needed for storage program area, at least one function (such as sound-playing function, image Playing function etc.) etc.;Storage data area, which can be stored, uses created data (such as audio data, phone directory according to mobile phone Deng) etc..In addition, memory 22 may include high-speed random access memory, it can also include nonvolatile memory, such as firmly Disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) block, flash card (Flash Card), at least one disk memory, flush memory device or other volatile solid-states Part.
Wherein, if module/unit that the terminal device 20 integrates is realized in the form of SFU software functional unit and conduct Independent product when selling or using, can store in a computer readable storage medium.Based on this understanding, originally The all or part of the process in above-described embodiment method is realized in invention, and relevant hardware can also be instructed by computer program It completes, the computer program can be stored in a computer readable storage medium, the computer program is by processor 21 when executing, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer program includes computer program generation Code, the computer program code can be source code form, object identification code form, executable file or certain intermediate forms Deng.The computer-readable medium may include: any entity or device, record that can carry the computer program code Medium, USB flash disk, mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), with Machine access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc.. It should be noted that the content that the computer-readable medium includes can be according to legislation and patent practice in jurisdiction It is required that carrying out increase and decrease appropriate, such as in certain jurisdictions, do not wrapped according to legislation and patent practice, computer-readable medium Include electric carrier signal and telecommunication signal.
It should be noted that the apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual It needs that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.In addition, device provided by the invention In embodiment attached drawing, the connection relationship between module indicate between them have communication connection, specifically can be implemented as one or A plurality of communication bus or signal wire.Those of ordinary skill in the art are without creative efforts, it can understand And implement.
The above is a preferred embodiment of the present invention, it is noted that for those skilled in the art For, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also considered as Protection scope of the present invention.

Claims (10)

1. a kind of networking method characterized by comprising
When responding wire link link order, the first message is sent every the first preset time period;Wherein, the first message packet Include first network hierarchical information;
The second message that other equipment are sent is received, the second network level information entrained by second message is less than described When first network hierarchical information, the interface that record currently receives second message is upstream Interface;
Selecting a best upstream Interface from all upstream Interfaces according to link selection algorithm is current device for receiving or sending out Send the upstream Interface of broadcast message;Wherein, remaining upstream Interface is forbidden receiving or sending broadcast message;
Judge whether the best upstream Interface receives more than or equal to the first network level in the second preset time period Second network level information of information;
If so, keeping current upstream Interface is that the best upstream Interface is constant;If it is not, then removing the best upstream Interface And reacquire new best upstream Interface.
2. networking method as described in claim 1, which is characterized in that second message for receiving other equipment and sending Afterwards, further includes:
When the second network level information entrained by second message is equal to the first network hierarchical information, to currently setting Other standby interfaces forward second message;
When the second network level information entrained by second message is greater than the first network hierarchical information, described in discarding Second message.
3. networking method as described in claim 1, which is characterized in that the method also includes:
Carried out data transmission based on the best upstream Interface.
4. networking method as described in claim 1, which is characterized in that the link selection algorithm is based on link weight Selection algorithm;Wherein, the link weight is that the level that presently described upstream Interface receives differs highest hierarchy node Link information and current hierarchy node link information accumulation information.
5. networking method as claimed in claim 3, which is characterized in that described to be counted based on the best upstream Interface According to transmission, specifically include:
When the direct-connected current device of the purpose mac of transfer device to be passed, the data of the transfer device to be passed are directly forwarded;
When the purpose mac not direct-connected current device of transfer device to be passed, judges whether there is and prestore forwarding entry;If so, then root The data of the transfer device to be passed are forwarded according to the forwarding entry;If not;It is forwarded to the interface for not prestoring the forwarding entry The data of the transfer device to be passed, and the forwarding entry is established when receiving reply.
6. networking method as described in claim 1, which is characterized in that before responding wire link link order, also wrap It includes:
When responding enabled instruction, wireless networking is carried out by wireless self-networking mode;
The network level of the wireless networking is obtained according to organization algorithm.
7. a kind of network constructing system characterized by comprising
Packet sending unit when for responding wire link link order, sends the first message every the first preset time period;Its In, first message includes first network hierarchical information;
Message receiving unit, for receiving the second message of other equipment transmission,
Network level judging unit is less than first net for working as the second network level information entrained by second message When network hierarchical information, the interface that record currently receives second message is upstream Interface;
Best upstream Interface judging unit, for selecting a best uplink to connect from all upstream Interfaces according to link selection algorithm Mouth is the upstream Interface that current device is used to receive or send broadcast message;Wherein, remaining upstream Interface is forbidden receiving or sending Broadcast message;
Best upstream Interface processing unit, for judging whether the best upstream Interface receives greatly in the second preset time period In or equal to the first network hierarchical information the second network level information;If so, it is described for keeping current upstream Interface Best upstream Interface is constant;If it is not, then removing the best upstream Interface and reacquiring new best upstream Interface.
8. network constructing system as claimed in claim 7, which is characterized in that the network level judging unit is also used to:
When the second network level information entrained by second message is equal to the first network hierarchical information, to currently setting Other standby interfaces forward second message;
When the second network level information entrained by second message is greater than the first network hierarchical information, described in discarding Second message.
9. network constructing system as claimed in claim 7, which is characterized in that the link selection algorithm is based on link weight Selection algorithm;Wherein, the link weight is that the level that presently described upstream Interface receives differs highest hierarchy node Link information and current hierarchy node link information accumulation information;
The network constructing system further includes data transmission unit, and the data transmission unit is used to connect based on the best uplink Mouth carries out data transmission;
Wherein, the data transmission unit is specifically used for:
When the direct-connected current device of the purpose mac of transfer device to be passed, the data of the transfer device to be passed are directly forwarded;
When the purpose mac not direct-connected current device of transfer device to be passed, judges whether there is and prestore forwarding entry;If so, then root The data of the transfer device to be passed are forwarded according to the forwarding entry;If not;It is forwarded to the interface for not prestoring the forwarding entry The data of the transfer device to be passed, and the forwarding entry is established when receiving reply.
10. a kind of terminal device, which is characterized in that including processor, memory and store in the memory and matched It is set to the computer program executed by the processor, the processor realizes such as claim when executing the computer program Networking method described in any one of 1 to 6.
CN201811389640.0A 2018-11-21 2018-11-21 Network networking method, system and terminal equipment Active CN109450692B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811389640.0A CN109450692B (en) 2018-11-21 2018-11-21 Network networking method, system and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811389640.0A CN109450692B (en) 2018-11-21 2018-11-21 Network networking method, system and terminal equipment

Publications (2)

Publication Number Publication Date
CN109450692A true CN109450692A (en) 2019-03-08
CN109450692B CN109450692B (en) 2021-09-10

Family

ID=65554593

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811389640.0A Active CN109450692B (en) 2018-11-21 2018-11-21 Network networking method, system and terminal equipment

Country Status (1)

Country Link
CN (1) CN109450692B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111405615A (en) * 2020-03-19 2020-07-10 联想(北京)有限公司 Communication data transmission method, device and storage medium
CN111918299A (en) * 2020-08-25 2020-11-10 普联国际有限公司 Wireless networking method, device, storage medium and wireless network equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8929207B1 (en) * 2004-07-08 2015-01-06 Cisco Technology, Inc. Network device architecture for centralized packet processing
CN105049316A (en) * 2015-08-26 2015-11-11 华为技术有限公司 Communication method and communication device
CN108322395A (en) * 2018-01-31 2018-07-24 普联技术有限公司 A kind of message processing method, device and computer storage media, terminal device
CN108494681A (en) * 2018-02-05 2018-09-04 普联技术有限公司 Data flow transmission method, wireless telecom equipment and the storage medium of multilink

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8929207B1 (en) * 2004-07-08 2015-01-06 Cisco Technology, Inc. Network device architecture for centralized packet processing
CN105049316A (en) * 2015-08-26 2015-11-11 华为技术有限公司 Communication method and communication device
CN108322395A (en) * 2018-01-31 2018-07-24 普联技术有限公司 A kind of message processing method, device and computer storage media, terminal device
CN108494681A (en) * 2018-02-05 2018-09-04 普联技术有限公司 Data flow transmission method, wireless telecom equipment and the storage medium of multilink

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111405615A (en) * 2020-03-19 2020-07-10 联想(北京)有限公司 Communication data transmission method, device and storage medium
CN111405615B (en) * 2020-03-19 2021-10-22 联想(北京)有限公司 Communication data transmission method, device and storage medium
CN111918299A (en) * 2020-08-25 2020-11-10 普联国际有限公司 Wireless networking method, device, storage medium and wireless network equipment

Also Published As

Publication number Publication date
CN109450692B (en) 2021-09-10

Similar Documents

Publication Publication Date Title
CN101404663B (en) Data packet transfer system having load distribution function
CN100417114C (en) Method for realizing load balance between access devices in WLAN
CN101068201B (en) Communication structure, access point in communicaiton frame, and method for transmitting data packet
CN108199905A (en) MESH network and its MESH equipment and with network method
CN112911671B (en) Method and device for constructing topology networking architecture
CN108494681A (en) Data flow transmission method, wireless telecom equipment and the storage medium of multilink
CN109525993B (en) Method and apparatus for dynamically allocating resources in integrated access and backhaul wireless communication networks
CN102177746B (en) Channel switching in mesh-type networks
CN112491700B (en) Network path adjustment method, system, device, electronic equipment and storage medium
CN111182659B (en) Mode switching method and mode switching device of Mesh equipment and Mesh equipment
CN101159647A (en) System and method of implementing gateway local parameter fast recovery
CN109450692A (en) A kind of networking method, system and terminal device
CN109691031B (en) Service message transmission method and node equipment
CN103516531A (en) Method for automatically discovering network element and corresponding network element and network management devices
EP1598997B1 (en) Routing in a communications network
CN113141671A (en) Communication method and device of wifi device and computer readable storage medium
CN110662237B (en) Data transmission method and device, storage medium and electronic device
CN107852369A (en) Method for obtaining power line communication route
JP6211998B2 (en) Relay device, relay method, and computer program
CN103178983A (en) Method and device for configuring shortest path first protocol interface area identifications
CN105763483B (en) A kind of file transmitting method and device
CN107786441B (en) Communication method, OpenFlow switch and communication system
CN111050356B (en) Data transmission processing method and device, storage medium and electronic device
CN109600265A (en) A kind of access circuit AC configuration information delivery method, device and server
CN102571555B (en) Hello message sending method and device in neighborhood relationship establishing process

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220613

Address after: Floor 12-17, unit 1, building 2, No. 466, Xinyu Road, high tech Zone, Chengdu, Sichuan 610000

Patentee after: Chengdu Lianzhou International Technology Co.,Ltd.

Address before: 518000 the 1st and 3rd floors of the south section of building 24 and the 1st-4th floor of the north section of building 28, Shennan Road Science and Technology Park, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: TP-LINK TECHNOLOGIES Co.,Ltd.