CN108990107B - Data transmission method and equipment - Google Patents

Data transmission method and equipment Download PDF

Info

Publication number
CN108990107B
CN108990107B CN201710411272.4A CN201710411272A CN108990107B CN 108990107 B CN108990107 B CN 108990107B CN 201710411272 A CN201710411272 A CN 201710411272A CN 108990107 B CN108990107 B CN 108990107B
Authority
CN
China
Prior art keywords
network
local area
network device
group
area network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710411272.4A
Other languages
Chinese (zh)
Other versions
CN108990107A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201710411272.4A priority Critical patent/CN108990107B/en
Priority to CN202110698684.7A priority patent/CN113573364A/en
Publication of CN108990107A publication Critical patent/CN108990107A/en
Application granted granted Critical
Publication of CN108990107B publication Critical patent/CN108990107B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Landscapes

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

Abstract

The embodiment of the application relates to the technical field of communication, in particular to a data transmission method and equipment, wherein the method comprises the steps that first network equipment receives first target data sent by control equipment through a cellular network, and the first target data comprises an identifier of second network equipment; the first network equipment forwards the first target data to the second network equipment through the wireless local area network; the first network device is a master device of a preset local area network group, the second network device is a slave device of the first network device in the preset local area network group, and the preset local area network group is composed of the first network device and all network devices which are communicated with the first network device in the plurality of network devices. Therefore, by implementing the embodiment of the application, the operation cost can be saved when the control equipment issues the same data resource to the elevator router.

Description

Data transmission method and equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data transmission method and device.
Background
With the advance of urbanization, more and more people migrate to cities, the number of elevators is continuously increased, and remote management and predictive maintenance of the elevators become more important, and elevator networking is established for the purpose.
In the elevator networking, an elevator router is a bridge connecting an elevator sensing network and a wide area network, the elevator router is connected with a sensing terminal of an elevator through serial ports such as an asynchronous transmission standard interface RS232 and an intelligent instrument RS485 to realize data collection access, and a cellular network (or a mobile network) is used, for example, a Long-Term Evolution (LTE), a third-generation (3G) mobile communication technology, a fourth-generation (4G) mobile communication technology, or a fifth-generation (5G) mobile communication technology, and is connected with a control device to upload collected data to the control device for analysis and monitoring by the control device.
However, in practice, it is found that if the control device issues the same data resource such as the upgrade version and the media resource to the elevator routers in the elevator network, the data resource needs to be issued through the cellular network link established with each elevator router, which wastes traffic and increases operation cost.
Disclosure of Invention
The application provides a data transmission method and equipment, which can save operation cost when control equipment issues the same data resource to an elevator router.
In a first aspect, a data transmission method is provided, which is used in a system including a control device and a plurality of network devices, where the plurality of network devices includes a first network device and a second network device, and the method includes:
the method comprises the steps that first network equipment receives first target data sent by control equipment through a cellular network, wherein the first target data comprises an identifier of second network equipment; the first network equipment forwards the first target data to the second network equipment through the wireless local area network.
The first network device is a master device of a preset local area network group, the second network device is a slave device of the first network device in the preset local area network group, and the preset local area network group is composed of the first network device and all network devices which are communicated with the first network device through the wireless local area network in the plurality of network devices.
It can be seen that, when the control device sends the same data resource to the multiple network devices, the control device may only need to send the data resource to the first network device, that is, the master device of the preset local area network group, through the cellular network, and the control device may forward the data resource to the second network device, that is, the slave device of the master device in the preset local area network group, through the wireless local area network, which avoids the problem that in the prior art, the control device needs to send the data resource to each of the multiple network devices through the cellular network once, thereby saving the network traffic of the cellular network, and reducing the operation cost.
In one possible design, before the first network device receives the first target data sent by the control device through the cellular network, the first network device may initiate a packet Internet finder (ping) to each network device of the plurality of network devices except for itself, and record a first number of network devices that the first network device can ping; the first network device determines that the first network device is a master device of a preset local area network group according to the first quantity, and determines other network devices except the first network device in the preset local area network group as slave devices.
Further, the first network device may compare the first number with a second number of network devices that other network devices in the preset lan group may ping; when the first quantity is maximum, determining that the first network equipment is the main equipment of a preset local area network group; when the first quantity and the second quantity are both maximum, determining that the first network equipment is the main equipment of a preset local area network group according to a random principle; or, according to the size of the electronic serial number, determining that the first network device is a master device of a preset local area network group.
In yet another possible design, the first network device may further receive second target data sent by the second network device through the wireless local area network, where the second target data includes an identifier of the control device, and the first network device forwards the second target data to the control device through the cellular network.
In another possible design, when it is detected that the first network device and the control device cannot normally communicate, the first network device determines a new master device from other network devices in the preset lan group except the first network device.
Therefore, by implementing the method and the device, when the first network device, namely the master device of the preset local area network group, cannot normally communicate with the control device, the first network device can reselect a new master device, so that the first network device can communicate with the control device through the new master device, and the occurrence of the offline condition of the network device is avoided.
In yet another possible design, the first network device may determine itself to be the new master device when detecting that the first network device and the second network device are unable to communicate normally.
In yet another possible design, when it is detected that the second network device cannot normally communicate with other network devices of the preset lan group, the second network device may determine itself as a new master device, so that the second network device may communicate with the control device directly through the cellular network.
In a second aspect, a first network device is provided, which comprises means or units for performing the method of the first aspect.
In a third aspect, another first network device is provided that includes a processor, a communication module, and a memory to store instructions. The processor is configured to read instructions of the memory to perform the method of the first aspect.
In a fourth aspect, there is provided a communication system comprising: a control device and a plurality of network devices. The plurality of network devices may form one or more local area network groups, each local area network group including a master device. The control device may send information such as upgrade, configuration, etc. to the master device in the local area network group through the cellular network, and the master device forwards the information to the slave device in the local area network group through the wireless local area network. The master device also receives information such as data, alarm or fault reported by the slave device through the wireless local area network, and forwards the information to the control device through the cellular network, thereby implementing the method in the first aspect.
In a fifth aspect, there is provided a computer storage medium for storing computer software instructions which, when run on a computer, cause the computer to perform the method of the first aspect described above.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic diagram of a network architecture in the prior art;
fig. 2 is a schematic flowchart of a data transmission method according to an embodiment of the present application;
fig. 3 is a schematic diagram of another network architecture provided by an embodiment of the present application;
fig. 4 is a schematic diagram of another network architecture provided by an embodiment of the present application;
fig. 5 is a schematic diagram of another network architecture provided by an embodiment of the present application;
fig. 6 is a schematic diagram of another network architecture provided by an embodiment of the present application;
fig. 7 is a schematic diagram of another network architecture provided by an embodiment of the present application;
fig. 8 is a schematic structural diagram of a first network device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a further first network device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a further first network device according to an embodiment of the present application;
fig. 11 is a schematic diagram of a communication system according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Referring to fig. 1, a schematic diagram of a prior art network architecture is provided, the network including a control device and N-6 network devices, the control device directly communicating with each of the N network devices through a cellular network. The N network devices may include routers, switches, access devices, mobile devices, wireless communication devices, user agents or user devices, etc.
However, as shown in fig. 1, when the control device C issues the same data resource to the network devices R1 to R6, the control device C issues the data resource to the network devices R1 to R6 through the cellular network links CR1, CR2, CR3, CR4, CR5, and CR6 established with the network devices R1 to R6, respectively, which results in waste of traffic.
The present application provides a data transmission method, which can save traffic and reduce operation cost, as shown in fig. 2, the data transmission method includes, but is not limited to, the following steps:
s201, the first network device initiates ping to each network device except the first network device in the plurality of network devices, and records the first number of the network devices which can ping the first network device.
The first network device is one of the plurality of network devices.
The control device may pre-store addresses of the plurality of network devices, for example, Internet Protocol (IP) addresses, Media Access Control (MAC) addresses, or port numbers of the network devices, and issue the addresses of the plurality of network devices to each of the plurality of network devices. After receiving the addresses of the plurality of network devices sent by the control device, the first network device may send a packet Internet finder (ping) to each network device except the first network device through a WIreless Local Area Network (WLAN) according to the received addresses, and record a first number of network devices that the first network device can ping, where the WIreless local area network may use WIreless-Fidelity (WI-FI), bluetooth, or ZigBee (ZigBee) technologies.
For example, referring to a schematic diagram of still another network architecture provided in fig. 3, the control device may store addresses of the plurality of network devices R1 to R6 in a list form as shown in table 1, wherein the addresses of R1 to R6 are IP1, IP2, IP3, IP4, IP5, and IP6, respectively. The control device issues the address to each of the plurality of network devices. Assuming that the first network device is R1, the first network device R1 receives the address sent by the control device, and initiates ping to the other network devices R2 to R6 except for itself according to the address. As shown in fig. 3, the first network device R1 may ping through network devices R1, R3, and R5, respectively, and the first number of network devices the first network device R1 may ping through is 3.
TABLE 1 address List
Address of network equipment
IP1
IP2
IP3
IP4
IP5
IP6
S202, the first network device determines that the first network device is a master device of the preset local area network group according to the first quantity, and determines that other network devices except the first network device in the preset local area network group are slave devices.
The preset lan group may be composed of a first network device and all network devices in the plurality of network devices that communicate with the first network device through the wireless lan. It should be noted that all the network devices in the plurality of network devices that communicate with the first network device may be the network devices in the plurality of network devices that communicate with the first network device directly or indirectly through the wireless local area network.
Further, the first network device may obtain a second number of network devices that can ping other network devices in the preset lan group, compare the first number with the second number, determine that the first network device is a master device of the preset lan group when the first number is the largest, and determine that other network devices except the first network device in the preset lan group are slave devices.
For example, as shown in fig. 3, each of the plurality of network devices R1 through R6 may initiate a ping to other network devices than itself through the wireless local area network;
the R1 network devices that can ping are R1, R3 and R5, so the number of R1 is 3;
the R2 network devices that can ping are R1 and R5, so the number of R2 is 2;
the R3 network devices that can ping are R1 and R4, so the number of R3 is 2;
the R4 network device capable of ping is R3, so the number of R4 is 1;
the R5 network devices that can ping are R1 and R2, so the number of R5 is 2;
r6 has no network devices that can ping, so the number of R6 is 0.
The network devices of R1 communicating directly are R2-R5, and R1 and R4 can communicate indirectly (through R3). From the perspective of R1, the preset lan group is composed of R1, and network devices R2, R3, and R5 that communicate directly with R1, and network device R4 that communicates indirectly with R1.
R1 may obtain the number of other network devices R2, R3, R4, and R5 in the preset lan group that can ping, to obtain a summary table of the number of network devices that can ping as shown in table 2, where the summary table includes the identifications of all network devices R1 to R5 in the preset lan group and the number of network devices that can ping. R1 may determine that the number of network devices that can ping itself is the largest according to the summary table, that is, the number of network devices that R1 can ping is the first number, and thus determine that it is the master device of the preset lan group, and the other network devices R2, R3, R4, and R5 of the preset lan group are slave devices.
Table 2 summary table of the number of network devices that can ping
Figure BDA0001311810770000041
Figure BDA0001311810770000051
S203, the first network equipment receives first target data sent by the control equipment through a cellular network.
And S204, the first network equipment forwards the first target data to second network equipment through a wireless local area network, wherein the second network equipment is slave equipment of the first network equipment in the preset local area network group.
The first target data is data sent by the control device to the second network device.
Specifically, after the first network device determines that the first network device is a master device of a preset lan group and the second network device is a slave device of the first network device in the preset lan group in S202, the control device may obtain an address of the first network device corresponding to the second network device in the preset lan group, and the control device maintains a mapping table, where the mapping table includes the address of the first network device corresponding to the second network device. When the control device sends the first target data to the second network device, the control device may query an address of the first network device corresponding to the second network device according to the mapping table, and the control device issues the first target data to the first network device according to the queried address of the first network device.
The first target data may include an identification of the second network device, wherein the identification may be used to uniquely identify the device in the network. After the first network device receives the first target data sent by the control device through the cellular network, the first network device may parse the first target data to obtain an identifier of the second network device, and forward the first target data to the second network device according to the parsed identifier of the second network device.
For example, referring to fig. 3, the first network device is R1, the second network devices are R2, R3, R4, and R5, and the mapping table maintained by the control device includes the identifiers R2, R3, R4, and R5 of the second network devices, and the address IP1 of the first network device corresponding to the second network device. When the control device sends the first target data to the second network devices R2, R3, R4, and R5, the control device may query the address IP1 of the first network device corresponding to the second network devices R2, R3, R4, and R5 according to the mapping table, and issue the first target data to the first network device R1 according to the queried address IP1 of the first network device. Wherein the first target data comprises identities R2, R3, R4, R5 of the second network device. After the first network device R1 receives the first target data sent by the control device, the first network device R1 may parse the identifiers R2, R3, R4, and R5 of the second network device carried by the first target data, and forward the first target data to the second network devices R2, R3, R4, and R5 according to the parsed identifiers R2, R3, R4, and R5 of the second network device.
For another example, when the control device sends the first target data to the second network device R2, the control device may query the address IP1 of the first network device corresponding to the second network device R2 according to the mapping table, and send the first target data to the first network device R1 according to the queried address IP1 of the first network device. Wherein the first target data comprises an identification R2 of the second network device. After the first network device R1 receives the first target data sent by the control device, the first network device R1 may parse the identifier R2 of the second network device carried by the first target data, and forward the first target data to the second network device R2 according to the parsed identifier R2 of the second network device, and so on.
TABLE 3 mapping table
Figure BDA0001311810770000052
Figure BDA0001311810770000061
It can be seen that, when the control device sends the same data resource to the multiple network devices, the control device may only need to send the data resource to the first network device, that is, the master device of the preset local area network group, through the cellular network, and the control device may forward the data resource to the second network device, that is, the slave device of the master device in the preset local area network group, through the wireless local area network, which avoids the problem that in the prior art, the control device needs to send the data resource to each of the multiple network devices through the cellular network once, thereby saving the network traffic of the cellular network, and reducing the operation cost.
In this embodiment of the present application, the first network device may further receive second target data sent by the second network device through the wireless local area network, where the second target data includes an identifier of the control device; the first network device forwards the second target data to the control device, etc. over the cellular network. The second target data is data sent by the second network device to the control device.
In yet another alternative embodiment, the first network device, which is the master device of the preset lan group, may send a heartbeat packet to the control device to determine whether normal communication with the control device is possible, and if the first network device fails to receive a response sent by the control device and directed to the heartbeat packet, determine that normal communication with the control device is not possible. When it is detected that the first network device and the control device cannot normally communicate, the first network device may determine a new master device from other network devices in the preset lan group except the first network device, the new master device may receive data sent by the control device and forward the data to the other network devices in the preset lan group, and the new master device may also receive data sent by the other network devices in the preset lan group and forward the data to the control device, thereby avoiding an occurrence of a network device offline condition.
Specifically, the first network device may determine that the maximum number of network devices that can ping-access other network devices in the preset lan group except the first network device is the new master device. When there are a plurality of network devices that can ping pass through, the first network device may determine any one of them as a new master device according to a random principle, or determine any one of them as a new master device according to the size of an Electronic Serial Number (ESN), and so on. The first network device may further determine that other network devices in the preset lan group except the new master device are new slave devices.
For example, fig. 4 is a schematic diagram of another network architecture, and fig. 4 is a diagram illustrating a case where the first network device R1 and the control device cannot normally communicate in the network architecture of fig. 3. As shown in fig. 4, the number of network devices that can ping-pass in the other network devices R2, R3, R4 and R5 except the first network device R1 in the preset local area network GROUP1 is 2, 1 and 2, respectively, where the number of network devices that can ping-pass in R2, R3 and R5 is the maximum, the first network device R1 determines any one of R2 of R2, R3 and R5 as a new master device according to a random principle, and determines the remaining network devices R1, R3, R4 and R5 in the preset local area network GROUP1 as slave devices.
On the basis of fig. 4, the new master device R2 shown in fig. 5 can receive the data sent by the control device through the cellular network and forward the data to one or more of the corresponding slave devices R1, R3, R4 and R5 through the wireless local area network; the new master R2 may also receive data sent by one or more of the corresponding slaves R1, R3, R4 and R5 over the wireless local area network and forward the data to the controlling device.
In yet another optional embodiment, the first network device, which is the master device of the preset lan group, may further send a heartbeat message to the corresponding second network device to determine whether normal communication with the second network device is possible. When detecting that the first network device and the second network device cannot normally communicate, the first network device may determine itself as a new master device.
In addition, other network devices in the preset local area network group can determine a new master device and a new slave device according to the related method, so that the occurrence of the offline condition of the network devices is avoided.
For example, fig. 6 is a schematic diagram of another network architecture, and fig. 6 illustrates a case where the first network device R1 of the predetermined local area network GROUP1 and the corresponding second network devices R2, R3, and R5 in the network architecture of fig. 3 cannot normally communicate. The first network device R1 may determine itself to be the new master device.
On the basis of fig. 4, as shown in fig. 7, other network devices R2 and R5 of the preset local area network GROUP1 communicate with each other, and may form a local area network GROUP, in the local area network GROUP, the numbers of network devices available for ping of R2 and R5 are 1 and 1, respectively, so that it may be determined that any one of R4 and R5, R2, is a new master device in the local area network GROUP, and the other R5 is a new slave device in the local area network GROUP.
Other network devices R3 and R4 of the preset lan GROUP1 communicate with each other, and may form a lan GROUP, in the lan GROUP, the number of network devices that R3 can ping is 1, and the number of network devices that R4 can ping is also 1, so it may be determined that any one of R3 and R4, R4, is a new master device in the lan GROUP, and another R3 is a new slave device in the lan GROUP.
In yet another optional embodiment, the second network device, which is the slave device of the preset lan group, may further send a heartbeat message to other network devices of the preset lan group to determine whether normal communication with the other network devices of the preset lan group is possible. When it is detected that the second network device cannot normally communicate with other network devices of the preset lan group, the second network device may determine itself as a new master device.
The other network devices except the second network device in the preset local area network group can determine a new master device and a new slave device according to the related method, so that the occurrence of the offline condition of the network devices is avoided. And will not be described in detail herein.
In addition, in this application, the data packet of the ping sent by the network device may include device information such as the model of the device, the manufacturer of the device, and the like, so as to ensure that the network device of the same manufacturer or the same model in the network can ping and establish a network.
Based on the same technical concept of the above method embodiment, an embodiment of the present application further provides a network device, which is used for implementing the first network device in the above method embodiment. Referring to fig. 8, which is a schematic structural diagram of a first network device provided in the embodiment of the present application, the first network device includes:
a receiving unit 801, configured to receive first target data sent by a control device through a cellular network, where the first target data includes an identifier of a second network device.
A sending unit 802, configured to forward the first target data to the second network device through the wireless lan.
The first network device is a master device of a preset local area network group, the second network device is a slave device of the first network device in the preset local area network group, and the preset local area network group is composed of the first network device and all network devices which are in wireless local area network communication with the first network device in the plurality of network devices.
The embodiments of the present application may refer to the related descriptions above, and are not described herein again.
Further, as shown in fig. 9, the first network device further includes a processing unit 803.
The sending unit 801 is further configured to initiate ping to each network device of the plurality of network devices except the first network device before receiving the first target data sent by the control device through the cellular network.
The processing unit 803 is configured to record a first number of network devices that the first network device can ping, determine that the first network device is a master device of a preset local area network group according to the first number, and determine that other network devices in the preset local area network group except the first network device are slave devices.
Specifically, when the first number is the largest, it is determined that the first network device is a master device of a preset local area network group.
When the first quantity and the second quantity are both maximum, determining that the first network equipment is the main equipment of a preset local area network group according to a random principle; or, according to the size of the electronic serial number, determining that the first network device is a master device of a preset local area network group.
In an optional implementation manner, the receiving unit 801 is further configured to receive second target data sent by a second network device through a wireless local area network, where the second target data includes an identifier of the control device.
The sending unit 802 is further configured to forward the second target data to the control device through the cellular network.
In an optional implementation manner, the processing unit 803 is further configured to, when it is detected that the first network device and the control device cannot normally communicate, determine, by the first network device, a new master device from other network devices in the preset lan group except the first network device.
It can be seen that, when the control device sends the same data resource to the multiple network devices, the control device may only need to send the data resource to the first network device, that is, the master device of the preset local area network group, through the cellular network, and the control device may forward the data resource to the second network device, that is, the slave device of the master device in the preset local area network group, through the wireless local area network, which avoids the problem that in the prior art, the control device needs to send the data resource to each of the multiple network devices through the cellular network once, thereby saving the network traffic of the cellular network, and reducing the operation cost.
Referring to fig. 10, another schematic structural diagram of a first network device according to an embodiment of the present application is provided. As shown in fig. 10, the first network device includes a processor 1001, a memory 1002, a cellular network chip 1004, and a WLAN chip 1003.
The processor 1001 may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of a CPU and an NP.
The processor 1001 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), a General Array Logic (GAL), or any combination thereof.
The memory 1002 may include a volatile memory (RAM), such as a random-access memory (RAM); the memory may also include a non-volatile memory (english: non-volatile memory), such as a flash memory (english: flash memory), a hard disk (english: hard disk drive, abbreviated: HDD) or a solid-state drive (english: SSD); the memory 410 may also comprise a combination of memories of the kind described above.
The processor 1001 and the memory 1002 are interconnected, for example, by a bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 10, but this is not intended to represent only one bus or type of bus. The memory 1002 and the processor 1001 may be separate or integrated.
The memory 1002 is used to store addresses of the respective network devices.
The memory 1002 may also be used to store a summary table of the number of pingable network devices as shown in table 2, a mapping table as shown in table 3, and the like.
A processor 1001, configured to receive, through the cellular network chip 1004, first target data sent by a control device, where the first target data includes an identifier of a network device of a second network, which passes through the cellular network chip 1004; and forwards the first target data to the second network device through the WLAN chip 1003; the first network device is a master device of a preset local area network group, the second network device is a slave device of the first network device in the preset local area network group, and the preset local area network group is composed of the first network device and all network devices which are communicated with the first network device in the plurality of network devices.
Optionally, the memory 1002 may be further configured to store program instructions, and the processor 1001 calls the program instructions stored in the memory 1002 to execute one or more steps in the embodiment shown in fig. 2, or an alternative implementation thereof, so as to implement the functions of the first network device in the above-described method.
Further, the first network device also comprises a communication interface, such as RS232, RS485 and the like, for connecting the elevator sensor.
It can be seen that, when the control device sends the same data resource to the multiple network devices, the control device may only need to send the data resource to the first network device, that is, the master device of the preset local area network group, through the cellular network, and the control device may forward the data resource to the second network device, that is, the slave device of the master device in the preset local area network group, through the wireless local area network, which avoids the problem that in the prior art, the control device needs to send the data resource to each of the multiple network devices through the cellular network once, thereby saving the network traffic of the cellular network, and reducing the operation cost.
Referring to fig. 11, a communication system is provided for the embodiments of the present application. The system comprises: a control device and a plurality of network devices. The plurality of network devices may form one or more local area network groups, each local area network group including a master device. The control device may send information such as upgrade, configuration, etc. to the master device in the local area network group through the cellular network, and the master device forwards the information to the slave device in the local area network group through the wireless local area network. The master device also receives information such as data, alarm or fault reported by the slave device through the wireless local area network, and forwards the information to the control device through the cellular network, thereby implementing the method in the embodiment shown in fig. 2.
It can be seen that, when the control device sends the same data resource to the multiple network devices, the control device may only need to send the data resource to the first network device, that is, the master device of the preset local area network group, through the cellular network, and the control device may forward the data resource to the second network device, that is, the slave device of the master device in the preset local area network group, through the wireless local area network, which avoids the problem that in the prior art, the control device needs to send the data resource to each of the multiple network devices through the cellular network once, thereby saving the network traffic of the cellular network, and reducing the operation cost.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The above-described software functional portions may be stored in the storage unit. The storage unit includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to perform some steps of the methods described in the embodiments of the present application. The memory cell includes: one or more memories such as Read-Only Memory (ROM), Random Access Memory (RAM), electrically erasable programmable Read-Only Memory (EEPROM), and the like. The storage unit may be separate or integrated with the processor.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working process of the device described above, reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
Those of ordinary skill in the art will understand that: the various numerical designations of first, second, etc. referred to herein are merely used for descriptive purposes and are not intended to limit the scope of the embodiments of the present application.
It should be understood by those of ordinary skill in the art that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of the processes should be determined by their functions and inherent logic, and should not limit the implementation process of the embodiments of the present application.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (8)

1. A data transmission method, used in a system including a control device and a plurality of network devices, including a first network device and a second network device, the method comprising:
the first network device initiates Internet packet explorer ping to each network device except the first network device through a wireless local area network, and records the first number of network devices which can ping the first network device;
the first network equipment compares the first quantity with a second quantity of network equipment which can ping other network equipment in a preset local area network group;
when the first number is the maximum, determining that the first network device is a master device of the preset local area network group, and determining that the second network device is a slave device of the first network device, wherein the second network device is other network devices except the first network device in the preset local area network group;
the first network equipment receives first target data sent by the control equipment through a cellular network, wherein the first target data comprises an identifier of the second network equipment;
the first network equipment forwards the first target data to the second network equipment through a wireless local area network;
the preset local area network group comprises the first network equipment and all network equipment in the plurality of network equipment, wherein the network equipment is in direct or indirect communication with the first network equipment through the wireless local area network, and the plurality of network equipment form at least one preset local area network group.
2. The method of claim 1, wherein: when the first number and the second number are both the maximum, determining that the first network device is a master device of the preset local area network group according to a random principle; or, according to the size of the electronic serial number, determining that the first network device is a master device of the preset local area network group.
3. The method of claim 1 or 2, further comprising:
the first network equipment receives second target data sent by the second network equipment through a wireless local area network, wherein the second target data comprises an identifier of the control equipment;
the first network device forwards the second target data to the control device over a cellular network.
4. The method of claim 1 or 2, wherein after the first network device forwards the first target data to the second network device via the wireless local area network, the method further comprises:
when it is detected that the first network device and the control device cannot normally communicate, the first network device determines a new master device from other network devices except the first network device in the preset local area network group.
5. A network device, the network device being a first network device, the first network device comprising:
a receiving unit, configured to receive first target data sent by a control device through a cellular network, where the first target data includes an identifier of a second network device;
a sending unit, configured to forward the first target data to the second network device through a wireless local area network;
the first network device is a master device of a preset local area network group, the second network device is a slave device of the first network device in the preset local area network group, the preset local area network group is composed of the first network device and all network devices which are in direct or indirect communication with the first network device through the wireless local area network in a plurality of network devices, and the plurality of network devices form at least one preset local area network group;
the sending unit is further configured to initiate, by a wireless local area network, an internet packet finder ping to each of the plurality of network devices except the network device itself before receiving first target data sent by the control device through the cellular network;
the processing unit is used for recording a first number of network devices which can ping communication, determining that the network devices are master devices of the preset local area network group according to the first number, and determining that other network devices except the first network device in the preset local area network group are slave devices;
the processing unit is specifically configured to compare the first number with a second number of network devices that can ping other network devices in the preset lan group; and determining that the first network device is a master device of the preset local area network group when the first number is the maximum.
6. The network device according to claim 5, wherein the processing unit is further specifically configured to:
when the first number and the second number are both the maximum, determining that the first network device is a master device of the preset local area network group according to a random principle; or, according to the size of the electronic serial number, determining that the first network device is a master device of the preset local area network group.
7. The network device according to claim 5 or 6, wherein the receiving unit is further configured to receive second target data sent by the second network device through a wireless local area network, where the second target data includes an identifier of the control device;
the sending unit is further configured to forward the second target data to the control device through a cellular network.
8. The network device according to claim 5 or 6, wherein the processing unit is further configured to determine a new master device from the other network devices except the first network device in the preset lan group when it is detected that the first network device and the control device cannot normally communicate.
CN201710411272.4A 2017-06-02 2017-06-02 Data transmission method and equipment Active CN108990107B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710411272.4A CN108990107B (en) 2017-06-02 2017-06-02 Data transmission method and equipment
CN202110698684.7A CN113573364A (en) 2017-06-02 2017-06-02 Data transmission method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710411272.4A CN108990107B (en) 2017-06-02 2017-06-02 Data transmission method and equipment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202110698684.7A Division CN113573364A (en) 2017-06-02 2017-06-02 Data transmission method and equipment

Publications (2)

Publication Number Publication Date
CN108990107A CN108990107A (en) 2018-12-11
CN108990107B true CN108990107B (en) 2021-06-22

Family

ID=64502290

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201710411272.4A Active CN108990107B (en) 2017-06-02 2017-06-02 Data transmission method and equipment
CN202110698684.7A Pending CN113573364A (en) 2017-06-02 2017-06-02 Data transmission method and equipment

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202110698684.7A Pending CN113573364A (en) 2017-06-02 2017-06-02 Data transmission method and equipment

Country Status (1)

Country Link
CN (2) CN108990107B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113616469B (en) * 2020-05-08 2024-02-27 未来穿戴技术有限公司 Control method and device of massage equipment, computer equipment and storage medium
GB2622003A (en) * 2022-08-30 2024-03-06 British Telecomm Telecommunications network and a method of operating a telecommunications network

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101552697A (en) * 2009-05-06 2009-10-07 深圳市普联技术有限公司 Network access apparatus upgrade system and network access apparatus upgrade method
EP2157740A1 (en) * 2007-05-08 2010-02-24 International Business Machines Corporation Radio local area network (lan) system
CN103327038A (en) * 2012-03-20 2013-09-25 中兴通讯股份有限公司 Method and device for batch upgrading network devices
JP2015080092A (en) * 2013-10-17 2015-04-23 日立金属株式会社 Network system and network relay device
CN104902424A (en) * 2015-04-07 2015-09-09 广东欧珀移动通信有限公司 Control method, device and system for wireless intelligent equipment
CN105516357A (en) * 2016-01-15 2016-04-20 青岛海尔智能家电科技有限公司 Method and device for establishing network group
CN105553684A (en) * 2015-09-24 2016-05-04 上海斐讯数据通信技术有限公司 Communication system and applied router upgrading method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103716281B (en) * 2012-09-28 2017-05-24 联想(北京)有限公司 control method, electronic device and server

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2157740A1 (en) * 2007-05-08 2010-02-24 International Business Machines Corporation Radio local area network (lan) system
CN101552697A (en) * 2009-05-06 2009-10-07 深圳市普联技术有限公司 Network access apparatus upgrade system and network access apparatus upgrade method
CN103327038A (en) * 2012-03-20 2013-09-25 中兴通讯股份有限公司 Method and device for batch upgrading network devices
JP2015080092A (en) * 2013-10-17 2015-04-23 日立金属株式会社 Network system and network relay device
CN104902424A (en) * 2015-04-07 2015-09-09 广东欧珀移动通信有限公司 Control method, device and system for wireless intelligent equipment
CN105553684A (en) * 2015-09-24 2016-05-04 上海斐讯数据通信技术有限公司 Communication system and applied router upgrading method thereof
CN105516357A (en) * 2016-01-15 2016-04-20 青岛海尔智能家电科技有限公司 Method and device for establishing network group

Also Published As

Publication number Publication date
CN108990107A (en) 2018-12-11
CN113573364A (en) 2021-10-29

Similar Documents

Publication Publication Date Title
CN108337111B (en) Method and device for acquiring network node topology
EP3353952B1 (en) Managing groups of servers
EP3057270A1 (en) Technologies for modular forwarding table scalability
US8665748B2 (en) Method for energy efficient configuration of ports of a logical communication channel
KR102392120B1 (en) Processing method, device and system for nf component abnormality
US9769738B2 (en) Implementing an access controller pool
US20220150154A1 (en) Automatically managing a mesh network based on dynamically self-configuring node devices
EP2613480A1 (en) Communication quality monitoring system, communication quality monitoring method, and storage medium
US10462041B2 (en) Link health forecast—predictive ethernet link monitoring using DOM with ELOAM
WO2019033475A1 (en) Automatic relay switching method and related product
US9838475B2 (en) Connectivity analysis and a mass storage system capable of connectivity analysis
CN108990107B (en) Data transmission method and equipment
CN114598735A (en) Data processing method and system
US20100322087A1 (en) Analysis and control of traffic based on identified packet control functions
CN113055501B (en) Method and device for configuring IP addresses in series through internet access
CN112188482A (en) Identification ID configuration method and device, and identification ID acquisition method and device
CN110830598B (en) Method and network equipment for establishing and transmitting interface address and alias in BGP (Border gateway protocol) session
US20090268681A1 (en) System and method for controlling connections between a wireless router and unlicensed mobile access capable mobile phones
EP3364618A1 (en) Data processing method and device
US20190297030A1 (en) Method for resetting a packet processing component to an operational state
CN112994942B (en) SDN control method and device
CN105451370A (en) Data management method, device and system
US8923290B1 (en) Self-forming lags
US11683228B2 (en) Automatically managing a role of a node device in a mesh network
WO2023193498A1 (en) Network reliability evaluation method, apparatus, computing device, and storage medium

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