CN112769708A - Data transmission method and device and computer readable storage medium - Google Patents

Data transmission method and device and computer readable storage medium Download PDF

Info

Publication number
CN112769708A
CN112769708A CN201911071431.6A CN201911071431A CN112769708A CN 112769708 A CN112769708 A CN 112769708A CN 201911071431 A CN201911071431 A CN 201911071431A CN 112769708 A CN112769708 A CN 112769708A
Authority
CN
China
Prior art keywords
data packet
data
network
sent
packet set
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911071431.6A
Other languages
Chinese (zh)
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.)
Beijing Huawei Digital Technologies Co Ltd
Original Assignee
Beijing Huawei Digital 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 Beijing Huawei Digital Technologies Co Ltd filed Critical Beijing Huawei Digital Technologies Co Ltd
Priority to CN201911071431.6A priority Critical patent/CN112769708A/en
Publication of CN112769708A publication Critical patent/CN112769708A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/34Flow control; Congestion control ensuring sequence integrity, e.g. using sequence numbers

Abstract

A method, a device and a computer readable storage medium for data transmission are provided, the method comprises: receiving a first data packet set, wherein the first data packet set comprises at least one data packet, and the at least one data packet carries a number respectively; and determining whether the at least one data packet in the first data packet set is consistent with a data packet sent by network equipment according to whether the numbers carried by the at least one data packet in the first data packet set are continuous or not. In the technical scheme provided by the application, the network management equipment can keep the real-time consistency with the table information between the network equipment through the serial numbers carried in the received data packets, and can also avoid the pressure on the network equipment and the network management equipment caused by the synchronization of the full data in the periodic pushing.

Description

Data transmission method and device and computer readable storage medium
Technical Field
The present application relates to the field of network communications, and more particularly, to a method, apparatus, and computer-readable storage medium for data transmission.
Background
With the high importance on network security, network management needs to monitor, test, configure, analyze, evaluate and control network resources to meet some requirements of the network, such as real-time operation performance, service quality, etc. When the network fails, the network manager can report and process the failure in time according to the monitoring and analyzing result so as to keep the high-efficiency operation of the network system.
In the prior art, in the network monitoring process, a network device synchronizes data to a network manager by adopting a method of combining periodic pushing and changing pushing, so that when the network device fails, the network manager traces the source of the network failure according to the received data, and the state of each network device needs to be analyzed when the failure occurs, thereby determining the reason of the failure. However, in the prior art, synchronization of the full amount of data in periodic push causes great performance pressure on both network devices and network managers.
Therefore, how to avoid the pressure on the network device and the network manager caused by the synchronization of the full data in the periodic pushing becomes a technical problem to be solved urgently.
Disclosure of Invention
The application provides a data transmission method, a data transmission device and a computer readable storage medium, wherein the network management equipment can keep the consistency of the table information between the network management equipment and the number carried in the received data packet, and can avoid the pressure on the network management equipment and the network management equipment caused by the synchronization of the full data in the periodic pushing.
In a first aspect, a method for data transmission is provided, where the method includes: receiving a first data packet set, wherein the first data packet set comprises at least one data packet, and the at least one data packet carries a number respectively; and determining whether the at least one data packet in the first data packet set is consistent with a data packet sent by network equipment according to whether the numbers carried by the at least one data packet in the first data packet set are continuous or not.
It should be understood that the number carried by at least one of the received first set of data packets is different.
According to whether the numbers carried by the at least one data packet in the first data packet set are consecutive or not, the numbers carried by the at least one data packet in the first data packet set and the numbers carried by the previously received data packets may be compared to determine whether the numbers are consecutive or not.
In a possible implementation manner, if a number carried by the at least one data packet in the first data packet set is discontinuous, it is determined that the at least one data packet in the first data packet set is inconsistent with a data packet sent by the network device.
In another possible implementation manner, if the number of the at least one data packet in the first data packet set is consecutive, it is determined that the at least one data packet in the first data packet set is consistent with the data packet sent by the network device.
In another possible implementation manner, if the number of the at least one data packet in the first data packet set is consecutive, it is determined whether the at least one data packet in the first data packet set is consistent with a data packet sent by a network device according to whether the first data packet set includes a last data packet sent by the network device.
In another possible implementation manner, one data packet in the first data packet set carries an indication flag, where the indication flag is used to indicate a number carried by a last data packet sent by a network device;
if the number of the at least one data packet in the first data packet set comprises the number carried by the last data packet sent by the network equipment and indicated by the indicator, determining that the at least one data packet in the first data packet set is consistent with the data packet sent by the network equipment;
if the number of the at least one data packet in the first data packet set does not include the number carried by the last data packet sent by the network device and indicated by the indicator, determining that the at least one data packet in the first data packet set is inconsistent with the data packet sent by the network device.
In another possible implementation manner, a message sent by the network device is received, where the message includes a number carried by a last data packet sent by the network device;
if the number of the at least one data packet in the first data packet set comprises the number carried in the message, determining that the at least one data packet in the first data packet set is consistent with the data packet sent by the network equipment;
if the number of the at least one data packet in the first data packet set does not include the number carried in the message, determining that the at least one data packet in the first data packet set is inconsistent with the data packet sent by the network device.
In another possible implementation, the message is a heartbeat message.
In another possible implementation manner, the method further includes: determining the number carried by the lost data packet according to the inconsistency between the at least one data packet in the first data packet set and the data packet sent by the network equipment; sending indication information to the network equipment, wherein the indication information comprises a number carried by the lost data packet, and the indication information is used for indicating the network equipment to send the lost data packet; and receiving a second data packet set, wherein the second data packet set comprises the lost data packet.
In a second aspect, a method for data transmission is provided, the method comprising: and sending a first data packet set to network management equipment, wherein the first data packet set comprises at least one data packet, and the at least one data packet carries a number respectively.
In one possible implementation, the method further includes:
receiving indication information sent by the network management equipment, wherein the indication information comprises a number carried by the lost data packet, and the indication information is used for indicating to send the lost data packet; and sending a second data packet set to the network management equipment according to the indication information, wherein the second data packet set comprises the lost data packet.
In a third aspect, an apparatus for data transmission is provided, the apparatus comprising:
a receiving module, configured to receive a first data packet set, where the first data packet set includes at least one data packet, and the at least one data packet carries a number respectively;
a determining module, configured to determine whether the at least one data packet in the first data packet set is consistent with a data packet sent by a network device according to whether numbers carried by the at least one data packet in the first data packet set are consecutive.
In a possible implementation manner, the determining module is specifically configured to: if the number carried by the at least one data packet in the first data packet set is not continuous, determining that the at least one data packet in the first data packet set is inconsistent with the data packet sent by the network device.
In another possible implementation manner, the determining module is specifically configured to: and if the serial numbers of the at least one data packet in the first data packet set are continuous, determining that the at least one data packet in the first data packet set is consistent with the data packet sent by the network equipment.
In another possible implementation manner, the determining module is specifically configured to: if the number of the at least one data packet in the first data packet set is continuous, determining whether the at least one data packet in the first data packet set is consistent with a data packet sent by the network device according to whether the first data packet set comprises a last data packet sent by the network device.
In another possible implementation manner, the receiving module is further configured to: receiving a message sent by the network equipment, wherein the message comprises a number carried by a last data packet sent by the network equipment;
the determining module is specifically configured to: if the number of the at least one data packet in the first data packet set comprises the number carried in the message, determining that the at least one data packet in the first data packet set is consistent with the data packet sent by the network equipment; if the number of the at least one data packet in the first data packet set does not include the number carried in the message, determining that the at least one data packet in the first data packet set is inconsistent with the data packet sent by the network device.
In another possible implementation manner, the determining module is further configured to: determining the number carried by the lost data packet according to the inconsistency between the at least one data packet in the first data packet set and the data packet sent by the network equipment;
the device further comprises: a sending module, configured to send indication information to the network device, where the indication information includes a number carried by the lost data packet, and the indication information is used to indicate the network device to send the lost data packet;
the receiving module is further configured to: and receiving a second data packet set, wherein the second data packet set comprises the lost data packet.
In a fourth aspect, an apparatus for data transmission is provided, the apparatus comprising:
the sending module is configured to send a first data packet set to the network management device, where the first data packet set includes at least one data packet, and the at least one data packet carries a number.
In one possible implementation, the apparatus further includes: a receiving module, configured to receive indication information sent by the network management device, where the indication information includes a number carried by the lost data packet, and the indication information is used to indicate that the lost data packet is sent;
the receiving module is further configured to: and sending a second data packet set to the network management equipment according to the indication information, wherein the second data packet set comprises the lost data packet.
In a fifth aspect, a network management device is provided, which includes an input/output interface, a processor, and a memory, where the processor is configured to control the input/output interface to send and receive information, and the memory is configured to store a computer program, and the processor is configured to call and execute the computer program from the memory, so that the network management device executes the method described in the first aspect or any one of the possible implementation manners of the first aspect.
Alternatively, the processor may be a general-purpose processor, and may be implemented by hardware or software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, or the like; when implemented in software, the processor may be a general-purpose processor implemented by reading software code stored in a memory, which may be integrated with the processor, located external to the processor, or stand-alone.
Specifically, the input/output interface is configured to: receiving a first data packet set, wherein the first data packet set comprises at least one data packet, and the at least one data packet carries numbers respectively
The processor is configured to: and determining whether the at least one data packet in the first data packet set is consistent with a data packet sent by network equipment according to whether the numbers carried by the at least one data packet in the first data packet set are continuous or not.
In one possible implementation, the processor is specifically configured to: if the number carried by the at least one data packet in the first data packet set is not continuous, determining that the at least one data packet in the first data packet set is inconsistent with the data packet sent by the network device.
In another possible implementation manner, the processor is specifically configured to: and if the serial numbers of the at least one data packet in the first data packet set are continuous, determining that the at least one data packet in the first data packet set is consistent with the data packet sent by the network equipment.
In another possible implementation manner, the processor is specifically configured to: if the number of the at least one data packet in the first data packet set is continuous, determining whether the at least one data packet in the first data packet set is consistent with a data packet sent by the network device according to whether the first data packet set comprises a last data packet sent by the network device.
In another possible implementation, the processor is further configured to: receiving a message sent by the network equipment, wherein the message comprises a number carried by a last data packet sent by the network equipment;
the processor is specifically configured to: if the number of the at least one data packet in the first data packet set comprises the number carried in the message, determining that the at least one data packet in the first data packet set is consistent with the data packet sent by the network equipment; if the number of the at least one data packet in the first data packet set does not include the number carried in the message, determining that the at least one data packet in the first data packet set is inconsistent with the data packet sent by the network device.
In another possible implementation, the processor is further configured to: determining the number carried by the lost data packet according to the inconsistency between the at least one data packet in the first data packet set and the data packet sent by the network equipment;
the input-output interface is further configured to: sending indication information to the network equipment, wherein the indication information comprises a number carried by the lost data packet, and the indication information is used for indicating the network equipment to send the lost data packet;
the input-output interface is further configured to: and receiving a second data packet set, wherein the second data packet set comprises the lost data packet.
In a sixth aspect, a network device is provided, which includes an input/output interface, a processor and a memory, wherein the processor is configured to control the input/output interface to send and receive information, and the memory is configured to store a computer program, and the processor is configured to call and execute the computer program from the memory, so that the network device executes the method described in the second aspect or any one of the possible implementation manners of the second aspect.
Alternatively, the processor may be a general-purpose processor, and may be implemented by hardware or software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, or the like; when implemented in software, the processor may be a general-purpose processor implemented by reading software code stored in a memory, which may be integrated with the processor, located external to the processor, or stand-alone.
Specifically, the processor executes the following operations through the input-output interface: and sending a first data packet set to the network management equipment, wherein the first data packet set comprises at least one data packet, and the at least one data packet carries a number respectively.
In one possible implementation, the input-output interface is further configured to: receiving indication information sent by the network management equipment, wherein the indication information comprises a number carried by the lost data packet, and the indication information is used for indicating to send the lost data packet;
in another possible implementation, the input-output interface is further configured to: and sending a second data packet set to the network management equipment according to the indication information, wherein the second data packet set comprises the lost data packet.
In a seventh aspect, a computer program product is provided, the computer program product comprising: computer program code for causing a computer to perform the method of the first aspect or possible implementations of the first aspect described above, when the computer program code runs on a computer.
In an eighth aspect, there is provided a computer program product comprising: computer program code for causing a computer to perform the method of the second aspect or possible implementations of the second aspect described above when said computer program code is run on a computer.
In a ninth aspect, a computer-readable medium is provided, which stores program code, which, when run on a computer, causes the computer to perform the method of the first aspect or possible implementation manner of the first aspect.
A tenth aspect provides a computer-readable medium having program code stored thereon, which, when run on a computer, causes the computer to perform the method of the second aspect or possible implementation of the second aspect.
Drawings
Fig. 1 is a schematic block diagram of a network architecture 100 applied to an embodiment of the present application.
Fig. 2 is a schematic flow chart of a method for data transmission according to an embodiment of the present application.
Fig. 3 is a schematic flow chart of another method for data transmission according to an embodiment of the present application.
Fig. 4 is a schematic block diagram of an apparatus 400 for data transmission according to an embodiment of the present application.
Fig. 5 is a schematic block diagram of an apparatus 500 for data transmission according to an embodiment of the present application.
Fig. 6 is a schematic block diagram of a network management device 600 according to an embodiment of the present application.
Fig. 7 is a schematic block diagram of a network device 700 according to an embodiment of the present application.
Detailed Description
The technical solution in the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a schematic block diagram of a network architecture applied to an embodiment of the present application. At least one network device and a network manager 140 may be included in the network architecture shown in fig. 1.
The number of network devices is not specifically limited in this application. Network device 10-network device 20 are depicted in fig. 1 as examples.
It should be noted that the network device 10 and the network device 20 have similar structures, and for convenience of description, the network device 10 is taken as an example and explained below.
The embodiment of the present application does not specifically limit the type of the network device 10. Several possible implementations are described in detail below.
In one possible implementation, the network device 10 may be an access device in an access stratum. It should be understood that the access stratum generally refers to the portion of the local area network directly facing the end user connection or access, and utilizes transmission media such as optical fiber, twisted pair, coaxial cable, wireless access technology, etc. to achieve mutual access between the terminal devices. Or to enable a connection between the terminal device and a network other than the local area network, for example, a connection with a public cloud, or a data center, or the internet (internet). The terminal device may be accessed to the access device in a wired manner, or may be accessed to the access device in a wireless manner, which is not specifically limited in this embodiment of the present application.
In another possible implementation, the network device 10 may also be a convergence switch in a convergence layer. It should be understood that the convergence layer may be located between the access layer and the core layer, which is a convergence point of multiple access devices. The method can perform convergence processing before the traffic of the access devices is transmitted to the core layer, so as to reduce the load of the core layer.
In another possible implementation, the network device 10 may also be a core switch in the core layer. It should be understood that the core switch may serve as an interface between the local area network and other networks (e.g., internet, data center, public cloud) responsible for transporting traffic on the aggregation switch to other network devices.
A plurality of modules may be included in network device 10, and are data source modules in network device 10. In the embodiment of the present application, the modules 110 to 130 are included in the network device 10 for illustration.
With the high importance on the network security, when a network device fails and a network failure is traced, the state of each network device at the time of the failure needs to be analyzed, so as to determine the cause of the failure. Therefore, in the network device 10, the modules 110 to 130 need to report various entries generated in the operation process, for example, Address Resolution Protocol (ARP) entries or routing entries, to the network management (network management) device 140.
It should be understood that the network management device 140 may monitor, test, configure, analyze, evaluate, and control network resources to meet some requirements of the network, such as real-time performance, quality of service, and the like. When the network fails, the network management equipment can report and process the failure in time according to the monitoring and analyzing result so as to keep the efficient operation of the network system.
Optionally, in some embodiments, the network management device may also be referred to simply as network manager 140.
There are various specific implementation manners for the module 110 to the module 130 to transmit the data stream to the network manager 140, and in a possible implementation manner, the module 110 to the module 130 may transmit the data stream to the network manager 140 through a Transmission Control Protocol (TCP). In another possible implementation, the modules 110 to 130 may also transmit the data stream to the network manager 140 through a User Datagram Protocol (UDP).
It should be appreciated that TCP is a connection-oriented, reliable, byte-stream based transport layer communication protocol. UDP is a connectionless transport layer protocol in the Open System Interconnection (OSI) reference model that provides transaction-oriented simple unreliable messaging services.
After receiving the entry information reported by the modules 110 to 130, the network manager 140 may simulate and analyze the behavior of each network device in the network, so as to analyze possible faults. Or the network manager 140 may further store the entry information reported by each network device, so that after the network device fails, the network device traces the source of the network failure according to the stored entry information, thereby analyzing the cause of the failure.
In addition, because the table entry information amount in the modules 110 to 130 is large, the real-time performance requirement of the monitoring application is also high. Therefore, the network manager 140 needs to maintain the consistency and real-time performance of the table entry information between the modules 110 and 130. If the real-time performance is not sufficient, the historical field information of the network device recorded by the network manager 140 may be inaccurate due to a large delay when the failure time is traced back. In addition, some real-time analysis is also affected by insufficient real-time data.
The conventional network monitoring technology may include two modes, wherein one mode is a pull mode, that is, the network manager 140 periodically queries the modules 110 to 130 for data. Another mode is a push mode, i.e. the module 110-module 130 actively pushes data to the network manager 140.
For the push mode, the push mode is divided into periodic push and change push. The periodic pushing may be understood as that the modules 110 to 130 report the entry information to the network manager 140 actively in a certain period. Change push may be understood as the modules 110-130 will synchronize changed entry information to the network manager 140 only if the entry information changes.
In the network monitoring process, since the data amount of the table entry information in the modules 110 to 130 is large, if a periodic pushing manner is adopted, a large amount of data is pushed in each period, which causes a large performance pressure on the modules 110 to 130 and the network manager 140. If the push mode is changed, the data volume pushed by the modules 110 to 130 is reduced, and the performance pressure of the modules 110 to 130 and the network manager 140 is reduced. However, when a certain network device fails or data is lost due to network transmission packet loss or other reasons, for the network manager 140, if the data pushed by the modules 110 to 130 is not received, the network manager 140 does not determine whether the data is lost due to network device failure or network transmission packet loss or is data that is not updated in the network device.
In the prior art, network monitoring is realized by adopting a method of combining periodic pushing and change pushing, and each period comprises two stages of periodic pushing and change pushing. Specifically, in the first period, the periodic pushing pushes all the table entry information in the modules 110 to 130 to the network manager 140, and then in a certain time, a modified pushing mode is adopted, and only the modified table entry information needs to be synchronized to the network manager 140. In the next period, a method of combining period pushing and change pushing is also adopted.
However, in the prior art, on the one hand, the pressure of synchronization of the full amount of data in the periodic pushing on the network device and the network manager 140 still exists. On the other hand, the prior art scheme is insensitive to data loss. Because the prior art ensures the consistency of data between the network manager 140 and the modules 110 to 130 by using the full-amount synchronous data in the periodic pushing, when the modules 110 to 130 discard data due to system busy or packet loss exists in the process of data transmission of the network, and the network manager 140 needs to wait for the next period to arrive, the data loss in the process of changing and pushing can be found according to the full-amount synchronous data periodically pushed in the next period and comparing the full-amount synchronous data periodically pushed in the previous period. Therefore, the real-time performance of keeping the table entry information consistent between the network manager 140 and the network device is affected.
The method for data transmission provided in the embodiment of the present application, on one hand, can avoid the pressure on the network device and the network manager 140 caused by the synchronization of the full amount of data in the periodic pushing, and on the other hand, the network manager 140 can also keep the real-time consistency of the table information between the network device and the network manager 140. The method for data transmission provided by the embodiment of the present application is described in detail below with reference to fig. 2.
Fig. 2 is a schematic flow chart of a method for data transmission according to an embodiment of the present application. The method shown in FIG. 2 may include steps 210-220, and the steps 210-220 are described in detail below.
Step 210: receiving a first data packet set, where the first data packet set includes at least one data packet, and the at least one data packet carries a number respectively.
It should be understood that the number carried by at least one of the received first set of data packets is different.
Specifically, taking a network monitoring scenario as an example, a network manager may receive a first data packet set sent by a network device. For a detailed description of the network management and the network device, please refer to the above description, which is not repeated herein.
Step 220: and determining whether the at least one data packet in the first data packet set is consistent with a data packet sent by network equipment according to whether the numbers carried by the at least one data packet in the first data packet set are continuous or not.
According to whether the numbers carried by the at least one data packet in the first data packet set are consecutive or not, the numbers carried by the at least one data packet in the first data packet set and the numbers carried by the previously received data packets may be compared to determine whether the numbers are consecutive or not.
The specific implementation manners for determining whether the at least one data packet in the first data packet set is consistent with the data packet sent by the network device according to whether the number carried by the at least one data packet in the first data packet set is continuous or not are a few, and several possible situations are described below.
In a possible implementation manner, if a number carried by the at least one data packet in the first data packet set is discontinuous, it is determined that the at least one data packet in the first data packet set is inconsistent with a data packet sent by the network device.
In another possible implementation manner, if the number of the at least one data packet in the first data packet set is consecutive, it may be directly determined that the at least one data packet in the first data packet set is consistent with the data packet sent by the network device.
In another possible implementation manner, if the number of the at least one data packet in the first data packet set is consecutive, it is determined whether the at least one data packet in the first data packet set is consistent with a data packet sent by the network device according to whether the first data packet set includes a last data packet sent by the network device. There are various ways for the network manager to determine the number carried by the last data packet sent by the network device.
For example, the network device may send the number carried by the last data packet to the network manager through a message, specifically, as an example, the message is a heartbeat message. If the number of the at least one data packet in the first data packet set comprises the number carried in the message, determining that the at least one data packet in the first data packet set is consistent with the data packet sent by the network equipment; if the number of the at least one data packet in the first data packet set does not include the number carried in the message, determining that the at least one data packet in the first data packet set is inconsistent with the data packet sent by the network device.
For another example, the last data packet sent by the network device to the network manager may include an indication identifier, where the indication identifier indicates that the data packet is the last data packet sent by the network device. If the number of the at least one data packet in the first data packet set comprises the number carried by the last data packet sent by the network equipment and indicated by the indicator, determining that the at least one data packet in the first data packet set is consistent with the data packet sent by the network equipment; if the number of the at least one data packet in the first data packet set does not include the number carried by the last data packet sent by the network device and indicated by the indicator, determining that the at least one data packet in the first data packet set is inconsistent with the data packet sent by the network device.
For another example, the first data packet sent by the network device to the network manager may include an indication identifier, where the indication identifier indicates a number carried by the last data packet sent by the network device to the network manager.
The following describes in detail a specific implementation process of the data transmission method provided in the embodiment of the present application by taking fig. 3 as an example. It should be understood that the implementation process shown in fig. 3 is only for helping those skilled in the art understand the embodiment of the present application, and is not intended to limit the embodiment of the present application to the specific values or specific scenarios illustrated. It will be apparent to those skilled in the art that various equivalent modifications or variations are possible in light of the given implementation, and such modifications and variations also fall within the scope of the embodiments of the application.
Referring to fig. 3, in the embodiment of the present application, each module in the network device may be assigned a unique identifier. For example, module 110 is assigned a unique identification of 1, module 120 is assigned a unique identification of 2, and module 130 is assigned a unique identification of 3.
Each module can split the data stream that needs to be reported to the network manager 140 into a plurality of sub-data streams, and can number each sub-data stream in sequence based on the assigned identifier. For example, there are 3 sub data streams in the module 110 that need to be reported to the network manager 140, and the number allocated to the 3 sub data streams by the module 110 is 1.1, 1.2, and 1.3, respectively, according to the unique identifier 1 of the module itself. Similarly, there are 3 sub data streams in the module 120 that need to be reported to the network manager 140, and the number allocated to the 3 sub data streams by the module 120 is 2.1, 2.2, and 2.3, respectively, according to the unique identifier 2 of the module itself. There are 3 sub data streams in the module 130 to be reported to the network manager 140, and the number allocated to the 3 sub data streams by the module 130 is 3.1, 3.2, and 3.3, respectively, according to the unique identifier 3 of the module 130.
It should be understood that 3 sub-streams in a module need to be reported to the network manager 140 as an example. In the actual data transmission process, there are many sub-data streams that the module needs to report to the network manager 140, and the module sequentially numbers each sub-data stream that needs to report to the network manager 140.
In the process of the first connection between the modules 110 to 130 and the network manager 140, the modules 110 to 130 need to fully synchronize the sub-stream data carrying the numbers respectively. That is to say, in the process of the first connection, the modules 110 to 130 need to synchronize all the sub-data streams carrying numbers, which need to be reported to the network manager 140, to the network manager 140. At this time, the numbers of the sub-data streams that the network manager 140 should receive are: 1.1, 1.2, 1.3, 2.1, 2.2, 2.3, 3.1, 3.2, 3.3.
Optionally, after receiving the sub-data streams carrying numbers reported by the modules 110 to 130, the network manager 140 may detect whether the numbers carried by the received sub-data streams are consecutive.
If the network manager 140 detects that the number of the sub-data streams sent by each module in the network device is not continuous, it may be that the network device discards part of the sub-data streams that need to be reported because the system is busy, or it may be that the network device does not have all the sub-data streams that need to be reported synchronously because of a failure, or it may also be that the network device discards part of the sub-data streams that need to be reported because of a packet loss in the data transmission process.
For example, if the numbers of the sub-streams received by the network manager 140 are: 1.1, 1.3, 2.1, 2.2, 2.3, 3.1, 3.2, 3.3. The number between the sub-data streams numbers 1.1 and 1.3 is not consecutive, which indicates that the module 110 corresponding to the identifier 1 loses the sub-data stream number 1.2. Therefore, the sub-data stream numbered 1.2 may be lost due to the fact that the module 110 corresponding to the identifier 1 is too busy, or the sub-data stream numbered 1.2 may be lost due to the loss of the module 110 during the data transmission process.
For another example, if the numbers of the sub-data streams received by the network manager 140 are respectively: 1.1, 1.2, 1.3, 2.1, 2.3, 3.1, 3.2, 3.3. The number between the sub-data streams numbered 2.1 and 2.3 is not consecutive, which indicates that the module 120 corresponding to the identifier 2 loses the sub-data stream numbered 2.2. Therefore, the sub-data stream numbered 2.2 may be lost due to the fact that the module 120 corresponding to the identifier 2 is too busy, or the sub-data stream numbered 2.2 may also be lost due to the loss of the module 120 during the data transmission process.
For another example, if the numbers of the sub-data streams received by the network manager 140 are respectively: 1.1, 1.2, 1.3, 2.1, 2.2, 2.3, 3.1, 3.3. The number between the sub-data streams numbered 3.1 and 3.3 is not consecutive, which indicates that the module 130 corresponding to the identifier 3 loses the sub-data stream numbered 3.2. Therefore, the sub-data stream numbered 3.2 may be lost due to the fact that the module 130 corresponding to the identifier 3 is too busy, or the sub-data stream numbered 3.2 may also be lost due to the loss of the module 130 during the data transmission process.
For another example, if the numbers of the sub-data streams received by the network manager 140 are respectively: 1.1, 1.2, 1.3, 3.1, 3.2, 3.3. The number between the numbers 1 and 3 of the sub-data streams is not continuous, which indicates that the sub-data stream reported by the module 120 corresponding to the identifier 2 is not received. Therefore, it may be that the sub-data streams with numbers of 2.1, 2.2, and 2.3 are not reported due to the failure of the module 120 corresponding to the identifier 2, or it may also be that the sub-data streams with numbers of 2.1, 2.2, and 2.3 are lost due to the packet loss of the module 120 in the data transmission process.
Optionally, after receiving the sub-data streams carrying numbers respectively reported by the modules 110 to 130, the network manager 140 may have two different situations if it detects that the numbers of the sub-data streams are consecutive.
In a possible implementation manner, the modules 110 to 130 report all data that needs to be synchronized to the network manager 140, that is, the data reported to the network manager 140 by the modules 110 to 130 is consistent with the data received by the network manager 140.
In another possible implementation manner, since the network manager 140 does not know the number of the last 1 sub-data stream sent by each network device, at this time, although the network manager 140 detects that the numbers of the received sub-data streams are consecutive, the last sub-data streams may be lost due to busy network device system or packet loss of the network device during data transmission. A heartbeat mechanism may also be provided in implementations of the present application. Specifically, in this embodiment, the modules 110 to 130 may send heartbeat messages to the network manager 140 in a certain period, where the heartbeat messages include the number of the last 1 sub-data stream reported by the module to the network manager 140 last time. The network manager 140 may determine whether the received data is consistent with the data reported to the network manager 140 by the network device according to the number of the last 1 sub-data stream included in the heartbeat message.
For example, if the numbers of the sub-streams received by the network manager 140 are: 1.1, 1.2, 2.1, 2.2, 2.3, 3.1, 3.2, 3.3. In a certain period, the webmaster 140 also receives heartbeat messages sent by each network device. For example, the number of the last 1 sub-data stream included in the heartbeat message sent by the module 110 to the network manager 140 is 1.3, the number of the last 1 sub-data stream included in the heartbeat message sent by the module 120 to the network manager 140 is 2.3, and the number of the last 1 sub-data stream included in the heartbeat message sent by the module 130 to the network manager 140 is 3.3. The network manager 140 may determine that the sub-data stream numbered 1.3 is lost by the module 110 corresponding to the identifier 1 according to the heartbeat message sent by the module 110. Therefore, the sub-data stream numbered 1.3 may be lost due to the fact that the module 110 corresponding to the identifier 1 is too busy, or the sub-data stream numbered 1.3 may be lost due to the loss of the module 110 during the data transmission process. The network manager 140 may also determine that the data reported by the module 120 and the module 130 is consistent with the data reported to the network manager 140 according to the heartbeat message sent by the module 120 and the module 130.
In the above technical solution, the network manager 140 can determine in time whether the received data is consistent with the data reported by each module in the network device according to whether the serial number of each sub-data stream is continuous and/or the heartbeat message. The data loss is sensitive, so that the data loss in synchronization can be found in time, and the consistency of the table information between the network manager 140 and the network equipment can be kept in real time. When the fault time is traced back, the historical field information of the network device recorded by the network manager 140 is more accurate.
In the subsequent data synchronization process, in the embodiment of the present application, the modules 110 to 130 only need to perform change pushing, and report the changed sub-data streams to the network manager 140. Specifically, each network device needs to re-number the changed sub-streams in sequence according to its own unique identifier, and report the sub-streams data carrying the numbers to the network manager 140.
Take module 110 as an example. After the module 110 is connected to the network manager 140 for the first time, 2 sub data streams in the module 110 are changed or 2 sub data streams are newly generated. The module 110 may continue to number the 2 sub-streams consecutively following the numbering of 1.1, 1.2, 1.3. For example, the numbers of the 2 sub-data streams are respectively: 1.4 and 1.5.
Take module 120 as an example. After the module 120 is connected to the network manager 140 for the first time, 2 sub data streams in the module 120 are changed or 2 sub data streams are newly generated. The module 120 may continue to number the 2 sub-streams consecutively following the numbering of 2.1, 2.2, 2.3. For example, the numbers of the 2 sub-data streams are respectively: 2.4 and 2.5.
Take module 130 as an example. After the module 130 is connected to the network manager 140 for the first time, 2 sub data streams in the module 130 are changed or 2 sub data streams are newly generated. The module 130 may continue to number the 2 sub-streams consecutively following the numbering of 3.1, 3.2, 3.3. For example, the numbers of the 2 sub-data streams are respectively: 3.4 and 3.5.
In the subsequent data synchronization process, after the sub-data streams that need to be reported to the network manager 140 are respectively numbered in sequence, the modules 110 to 130 can synchronize the sub-data streams carrying the numbers to the network manager 140.
Similarly, in the subsequent modification and pushing stage, after receiving the sub-data streams with the numbers respectively reported by the modules 110 to 130, the network manager 140 may detect whether the numbers carried by the received sub-data streams are consecutive. And can determine whether there is data loss according to whether the number carried by the sub-data stream is continuous and/or the number of the last sub-data stream sent upward carried by the heartbeat message, so as to keep the real-time property of the table entry information consistency between the network manager 140 and the network device.
For example, if the numbers of the sub-data streams received by the webmaster 140 in the stage of changing push are: 1.4, 1.5, 3.4, 3.5. The number between the numbers 1 and 3 of the sub-data streams is not continuous, which indicates that the sub-data stream reported by the module 120 corresponding to the identifier 2 is not received. Therefore, it may be that the sub-data streams with numbers of 2.4 and 2.5 are not reported due to the failure of the module 120 corresponding to the identifier 2, or it may also be that the sub-data streams with numbers of 2.4 and 2.5 are lost due to packet loss in the data transmission process of the module 120.
Optionally, after receiving the sub-data streams carrying numbers respectively reported by the modules 110 to 130, the network manager 140 may have two different situations if it detects that the numbers of the sub-data streams are consecutive.
In one possible implementation, the modules 110 to 130 report all data that need to be synchronized to the network manager 140. That is, the data reported by the modules 110 to 130 to the network manager 140 is consistent with the data received by the network manager 140.
For example, the numbers of the sub-data streams received by the webmaster 140 in the stage of changing and pushing are respectively: 1.4, 1.5, 2.4, 2.5, 3.4, 3.5. The numbers of the sub-data streams are continuous, and the description modules 110 to 130 report all the changed sub-data streams to the network manager 140. The network manager 140 can maintain the real-time consistency of the table entry information with the network devices.
In another possible implementation manner, since the network manager 140 does not know the number of the last 1 sub-data stream sent by each module, at this time, although the network manager 140 detects that the numbers of the received sub-data streams are consecutive, the last sub-data streams may be lost due to busy module system or packet loss of the network device during data transmission. A heartbeat mechanism may also be provided in implementations of the present application. Specifically, in this embodiment, the modules 110 to 130 may send heartbeat messages to the network manager 140 in a certain period, where the heartbeat messages include the number of the last 1 sub-data stream reported by the module to the network manager 140 last time. The network manager 140 may determine whether the received data is consistent with the data reported to the network manager 140 by the network device according to the number of the last 1 sub-data stream included in the heartbeat message.
For example, if the numbers of the sub-streams received by the network manager 140 are: 1.4, 2.4, 2.5, 3.4, 3.5. In a certain period, the webmaster 140 also receives heartbeat messages sent by each module. For example, the number of the last 1 sub-data stream included in the heartbeat message sent by the module 110 to the network manager 140 is 1.5, the number of the last 1 sub-data stream included in the heartbeat message sent by the module 120 to the network manager 140 is 2.5, and the number of the last 1 sub-data stream included in the heartbeat message sent by the module 130 to the network manager 140 is 3.5. Although the network manager 140 can determine that all the numbers are consecutive from the number of the current sub-data stream, the number of the last 1 sub-data stream included in the heartbeat message sent by the module 110 corresponding to the identifier 1 is 1.5. Therefore, the network manager 140 can determine that the sub-data stream numbered 1.3 is lost by the module 110 corresponding to the identifier 1. Therefore, the sub-data stream numbered 1.5 may be lost due to the fact that the module 110 corresponding to the identifier 1 is too busy, or the sub-data stream numbered 1.5 may be lost due to the loss of the module 110 during the data transmission process. Similarly, the network manager 140 may also determine whether the data reported by the module 120 and the module 130 is consistent with the data reported to the network manager 140 in sequence according to the number of the last 1 sub-data stream carried in the heartbeat message sent by the module 120 and the module 130.
For another example, if the numbers of the sub-data streams received by the network manager 140 are respectively: 1.4, 1.5, 2.4, 2.5. The network manager 140 may determine that all the numbers are consecutive from the number of the current sub-data stream, but since the number of the last 1 sub-data stream included in the heartbeat message sent by the module 110 to the network manager 140 is 1.5, the number of the last 1 sub-data stream included in the heartbeat message sent by the module 120 to the network manager 140 is 2.5, and the number of the last 1 sub-data stream included in the heartbeat message sent by the module 130 to the network manager 140 is 3.5. The network manager 140 may determine that the sub data stream reported by the module 130 corresponding to the identifier 3 is not received according to that the number of the last 1 sub data stream included in the heartbeat message sent by the module 130 is 3.5. Therefore, it may be that the sub-data streams with numbers of 3.4 and 3.5 are not reported due to the failure of the module 130 corresponding to the identifier 3, or it may also be that the sub-data streams with numbers of 3.4 and 3.5 are lost due to packet loss in the data transmission process of the module 130.
In the technical scheme, in the subsequent data transmission, the consumption of the periodic full-scale synchronization can be avoided by changing the push mode. In addition, in the process of changing the pushed data transmission, the network manager 140 can determine in time whether the received sub-data stream is consistent with the sub-data stream reported by each module according to the number carried by each sub-data stream.
If the network manager 140 determines that the received sub-data stream is inconsistent with the sub-data reported by each module by the above method, the network device may discard a part of the sub-data stream to be reported because the system is busy, or the network device may not synchronize all the sub-data streams to be reported because of a failure, or the network device may discard a part of the sub-data stream to be reported because of a packet loss in the data transmission process. In the embodiment of the present application, the network manager 140 may obtain the lost sub-data stream from the corresponding module according to the number of the lost sub-data stream, so as to avoid a large device pressure caused by that all network devices in the prior art need to trigger full-scale synchronization again.
Specifically, the network manager 140 may send the number of the lost sub-data stream to the corresponding module, and the module may start to retransmit the sub-data stream from a certain number specified by the network manager 140.
For example, if the numbers of the sub-streams received by the network manager 140 are: 1.1, 1.3, 2.1, 2.2, 2.3, 3.1, 3.2, 3.3. The network manager 140 determines that the sub-data stream with the number of 1.2 is lost according to the above method, and sends the number corresponding to the lost sub-data stream to the module 110 corresponding to the identifier 1. The module 110 may report the sub-data stream numbered 1.2 to the network manager 140 again according to the stored sub-data stream.
For another example, if the numbers of the sub-data streams received by the network manager 140 are respectively: 1.1, 1.2, 1.3, 3.1, 3.2, 3.3. The number between the numbers 1 and 3 of the sub-data streams is not continuous, which indicates that the sub-data streams with the numbers of 2.1, 2.2, and 2.3 reported by the module device 120 corresponding to the identifier 2 are not received. The network manager 140 sends the number corresponding to the lost sub-data stream to the module 120 corresponding to the identifier 2. The module 120 may report the sub-data streams numbered 2.1, 2.2, and 2.3 to the network manager 140 again according to the stored sub-data streams.
The method for data transmission provided by the embodiment of the present application is described in detail above with reference to fig. 1 to 3, and an embodiment of the apparatus of the present application is described in detail below with reference to fig. 4 to 7. It is to be understood that the description of the method embodiments corresponds to the description of the apparatus embodiments, and therefore reference may be made to the preceding method embodiments for parts not described in detail.
Fig. 4 is a schematic block diagram of an apparatus 400 for data transmission according to an embodiment of the present application. The apparatus 400 for data transmission comprises:
a receiving module 410, configured to receive a first data packet set, where the first data packet set includes at least one data packet, and the at least one data packet carries a number respectively;
a determining module 420, configured to determine whether the at least one data packet in the first data packet set is consistent with a data packet sent by a network device according to whether numbers carried by the at least one data packet in the first data packet set are consecutive.
Optionally, the determining module 420 is specifically configured to: if the number carried by the at least one data packet in the first data packet set is not continuous, determining that the at least one data packet in the first data packet set is inconsistent with the data packet sent by the network device.
Optionally, the determining module 420 is specifically configured to: and if the serial numbers of the at least one data packet in the first data packet set are continuous, determining that the at least one data packet in the first data packet set is consistent with the data packet sent by the network equipment.
Optionally, the determining module 420 is specifically configured to: if the number of the at least one data packet in the first data packet set is continuous, determining whether the at least one data packet in the first data packet set is consistent with a data packet sent by the network device according to whether the first data packet set comprises a last data packet sent by the network device.
Optionally, the receiving module 410 is further configured to: receiving a message sent by the network equipment, wherein the message comprises a number carried by a last data packet sent by the network equipment;
the determining module 420 is specifically configured to: if the number of the at least one data packet in the first data packet set comprises the number carried in the message, determining that the at least one data packet in the first data packet set is consistent with the data packet sent by the network equipment; if the number of the at least one data packet in the first data packet set does not include the number carried in the message, determining that the at least one data packet in the first data packet set is inconsistent with the data packet sent by the network device.
Optionally, the determining module 420 is further configured to: determining the number carried by the lost data packet according to the inconsistency between the at least one data packet in the first data packet set and the data packet sent by the network equipment;
the apparatus 400 for data transmission further comprises: a sending module 430, configured to send indication information to the network device, where the indication information includes a number carried by the lost data packet, and the indication information is used to indicate the network device to send the lost data packet;
the receiving module 410 is further configured to: and receiving a second data packet set, wherein the second data packet set comprises the lost data packet.
Fig. 5 is a schematic block diagram of an apparatus 500 for data transmission according to an embodiment of the present application. The apparatus 500 for data transmission comprises:
a sending module 510, configured to send a first data packet set to a network management device, where the first data packet set includes at least one data packet, and the at least one data packet carries a number respectively.
Optionally, the apparatus 500 for data transmission further includes: a receiving module 520, configured to receive indication information sent by the network management device, where the indication information includes a number carried by the lost data packet, and the indication information is used to indicate that the lost data packet is sent;
the receiving module 520 is further configured to: and sending a second data packet set to the network management equipment according to the indication information, wherein the second data packet set comprises the lost data packet.
Fig. 6 is a schematic block diagram of a network management device 600 according to an embodiment of the present application. The network management apparatus 600 may include: memory 610, processor 620, input/output interface 630.
The memory 610, the processor 620 and the input/output interface 630 are connected through an internal connection path, the memory 610 is used for storing program instructions, and the processor 620 is used for executing the program instructions stored in the memory 610 to control the input/output interface 630 to receive input data and information and output data such as operation results.
It should be understood that, in the embodiment of the present application, the processor 620 may adopt a Central Processing Unit (CPU), and the processor may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. Or the processor 620 may employ one or more integrated circuits for executing related programs to implement the technical solutions provided in the embodiments of the present application.
The memory 610 may include a read-only memory and a random access memory, and provides instructions and data to the processor 620. A portion of processor 620 may also include non-volatile random access memory. For example, the processor 620 may also store information of the device type.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 620. The method disclosed in the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 610, and the processor 620 reads the information in the memory 610 and performs the steps of the above method in combination with the hardware thereof. To avoid repetition, it is not described in detail here.
It should be understood that the network management device 600 according to the embodiment of the present application is configured to perform corresponding processes of the methods in fig. 2 to fig. 3 in the embodiment of the present application, and the above-mentioned and other operations and/or functions of each module in the network management device 600 are respectively for implementing the corresponding processes of the methods in fig. 2 to fig. 3 in the embodiment of the present application, and are not described herein again for brevity.
It should be noted that, in the network management apparatus 600 shown in fig. 6, the processor 620 may implement the steps performed by the respective modules by calling the computer program in the memory 610. For example, computer instructions stored in the cache may be called by processor 620 to perform the steps required to be performed by the various modules shown in fig. 4.
Specifically, the processor 620 is configured to: receiving a first data packet set, wherein the first data packet set comprises at least one data packet, and the at least one data packet carries numbers respectively
The processor 620 is configured to: and determining whether the at least one data packet in the first data packet set is consistent with a data packet sent by network equipment according to whether the numbers carried by the at least one data packet in the first data packet set are continuous or not.
Optionally, the processor 620 is specifically configured to: if the number carried by the at least one data packet in the first data packet set is not continuous, determining that the at least one data packet in the first data packet set is inconsistent with the data packet sent by the network device.
Optionally, the processor 620 is specifically configured to: and if the serial numbers of the at least one data packet in the first data packet set are continuous, determining that the at least one data packet in the first data packet set is consistent with the data packet sent by the network equipment.
Optionally, the processor 620 is specifically configured to: if the number of the at least one data packet in the first data packet set is continuous, determining whether the at least one data packet in the first data packet set is consistent with a data packet sent by the network device according to whether the first data packet set comprises a last data packet sent by the network device.
Optionally, the processor 620 is further configured to: receiving a message sent by the network equipment, wherein the message comprises a number carried by a last data packet sent by the network equipment;
the processor 620 is specifically configured to: if the number of the at least one data packet in the first data packet set comprises the number carried in the message, determining that the at least one data packet in the first data packet set is consistent with the data packet sent by the network equipment; if the number of the at least one data packet in the first data packet set does not include the number carried in the message, determining that the at least one data packet in the first data packet set is inconsistent with the data packet sent by the network device.
Optionally, the processor 620 is further configured to: determining the number carried by the lost data packet according to the inconsistency between the at least one data packet in the first data packet set and the data packet sent by the network equipment;
the input/output interface 630 is further configured to: sending indication information to the network equipment, wherein the indication information comprises a number carried by the lost data packet, and the indication information is used for indicating the network equipment to send the lost data packet;
the input/output interface 630 is further configured to: and receiving a second data packet set, wherein the second data packet set comprises the lost data packet.
Fig. 7 is a schematic block diagram of a network device 700 according to an embodiment of the present application. The network device 700 may include: memory 710, processor 720, input/output interface 730.
The memory 710, the processor 720 and the input/output interface 730 are connected via an internal connection path, the memory 710 is used for storing program instructions, and the processor 720 is used for executing the program instructions stored in the memory 710 to control the input/output interface 730 to receive input data and information and output data such as operation results.
It should be understood that, in the embodiment of the present application, the processor 720 may adopt a Central Processing Unit (CPU), and the processor may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. Or the processor 720 may employ one or more integrated circuits for executing related programs to implement the technical solutions provided in the embodiments of the present application.
The memory 710, which may include both read-only memory and random-access memory, provides instructions and data to the processor 720. A portion of processor 720 may also include non-volatile random access memory. For example, processor 720 may also store information of the device type.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 720. The method disclosed in the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 710, and the processor 720 reads the information in the memory 710 and performs the steps of the method in combination with the hardware. To avoid repetition, it is not described in detail here.
It should be understood that the network device 700 according to the embodiment of the present application is configured to perform corresponding processes of the methods in fig. 2 to fig. 3 in the embodiment of the present application, and the above-mentioned and other operations and/or functions of the modules in the network device 700 are respectively for implementing the corresponding processes of the methods in fig. 2 to fig. 3 in the embodiment of the present application, and are not described herein again for brevity.
It should be noted that, in the network device 700 shown in fig. 7, the processor 720 may implement the steps executed by the respective modules by calling the computer program in the memory 710. For example, computer instructions stored in the cache may be called by processor 720 to perform the steps required to be performed by the various modules shown in FIG. 4.
Specifically, the processor 720 performs the following operations via the input/output interface 730: and sending a first data packet set to the network management equipment, wherein the first data packet set comprises at least one data packet, and the at least one data packet carries a number respectively.
Optionally, the input/output interface 730 is further configured to: receiving indication information sent by the network management equipment, wherein the indication information comprises a number carried by the lost data packet, and the indication information is used for indicating to send the lost data packet;
in another possible implementation, the input/output interface 730 is further configured to: and sending a second data packet set to the network management equipment according to the indication information, wherein the second data packet set comprises the lost data packet.
Embodiments of the present application also provide a computer-readable medium for storing a computer program comprising instructions for executing the method in any possible implementation manner of any one of the above aspects. The readable medium may be a read-only memory (ROM) or a Random Access Memory (RAM), which is not limited in this embodiment of the present application.
An embodiment of the present application further provides a computer program product, which is applied to a first network device or a second network device, and the computer program product includes: computer program code which, when run by a computer, causes the computer to perform the method of any possible implementation of any of the above aspects.
An embodiment of the present application further provides a chip system, which is applied to a network device or a network management device, and the chip system includes: the chip system comprises at least one processor, at least one memory and an interface circuit, wherein the interface circuit is responsible for information interaction between the chip system and the outside, the at least one memory, the interface circuit and the at least one processor are interconnected through lines, and instructions are stored in the at least one memory; the instructions are executable by the at least one processor to perform operations of the network device or network management device in the methods of the various aspects described above.
It should be understood 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 each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
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 functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (20)

1. A method of data transmission, the method comprising:
receiving a first data packet set, wherein the first data packet set comprises at least one data packet, and the at least one data packet carries a number respectively;
and determining whether the at least one data packet in the first data packet set is consistent with a data packet sent by network equipment according to whether the numbers carried by the at least one data packet in the first data packet set are continuous or not.
2. The method according to claim 1, wherein the determining whether the at least one data packet in the first data packet set is consistent with a data packet sent by a network device according to whether numbers carried by the at least one data packet in the first data packet set are consecutive includes:
if the number carried by the at least one data packet in the first data packet set is not continuous, determining that the at least one data packet in the first data packet set is inconsistent with the data packet sent by the network device.
3. The method according to claim 1, wherein the determining whether the at least one data packet in the first data packet set is consistent with a data packet sent by a network device according to whether numbers carried by the at least one data packet in the first data packet set are consecutive includes:
and if the serial numbers of the at least one data packet in the first data packet set are continuous, determining that the at least one data packet in the first data packet set is consistent with the data packet sent by the network equipment.
4. The method according to claim 1, wherein the determining whether the at least one data packet in the first data packet set is consistent with a data packet sent by a network device according to whether numbers carried by the at least one data packet in the first data packet set are consecutive includes:
if the number of the at least one data packet in the first data packet set is continuous, determining whether the at least one data packet in the first data packet set is consistent with the data packet sent by the network device according to whether the first data packet set comprises the last data packet sent by the network device.
5. The method of claim 4, further comprising:
receiving a message sent by the network equipment, wherein the message comprises a number carried by a last data packet sent by the network equipment;
the determining whether the at least one data packet in the first data packet set is consistent with a data packet sent by a network device according to whether the last data packet sent by the network device is included in the first data packet set includes:
if the number of the at least one data packet in the first data packet set comprises the number carried in the message, determining that the at least one data packet in the first data packet set is consistent with the data packet sent by the network equipment;
if the number of the at least one data packet in the first data packet set does not include the number carried in the message, determining that the at least one data packet in the first data packet set is inconsistent with the data packet sent by the network device.
6. The method according to claim 2 or 5, characterized in that the method further comprises:
determining the number carried by the lost data packet according to the inconsistency between the at least one data packet in the first data packet set and the data packet sent by the network equipment;
sending indication information to the network equipment, wherein the indication information comprises a number carried by the lost data packet, and the indication information is used for indicating the network equipment to send the lost data packet;
and receiving a second data packet set, wherein the second data packet set comprises the lost data packet.
7. A method of data transmission, the method comprising:
and sending a first data packet set to network management equipment, wherein the first data packet set comprises at least one data packet, and the at least one data packet carries a number respectively.
8. The method of claim 7, further comprising:
receiving indication information sent by the network management equipment, wherein the indication information comprises a number carried by the lost data packet, and the indication information is used for indicating to send the lost data packet;
and sending a second data packet set to the network management equipment according to the indication information, wherein the second data packet set comprises the lost data packet.
9. An apparatus for data transmission, the apparatus comprising:
a receiving module, configured to receive a first data packet set, where the first data packet set includes at least one data packet, and the at least one data packet carries a number respectively;
a determining module, configured to determine whether the at least one data packet in the first data packet set is consistent with a data packet sent by a network device according to whether numbers carried by the at least one data packet in the first data packet set are consecutive.
10. The apparatus of claim 9, wherein the determining module is specifically configured to:
if the number carried by the at least one data packet in the first data packet set is not continuous, determining that the at least one data packet in the first data packet set is inconsistent with the data packet sent by the network device.
11. The apparatus of claim 9, wherein the determining module is specifically configured to:
and if the serial numbers of the at least one data packet in the first data packet set are continuous, determining that the at least one data packet in the first data packet set is consistent with the data packet sent by the network equipment.
12. The apparatus of claim 9, wherein the determining module is specifically configured to:
if the number of the at least one data packet in the first data packet set is continuous, determining whether the at least one data packet in the first data packet set is consistent with the data packet sent by the network device according to whether the first data packet set comprises the last data packet sent by the network device.
13. The apparatus of claim 12, wherein the receiving module is further configured to:
receiving a message sent by the network equipment, wherein the message comprises a number carried by a last data packet sent by the network equipment;
the determining module is specifically configured to:
if the number of the at least one data packet in the first data packet set comprises the number carried in the message, determining that the at least one data packet in the first data packet set is consistent with the data packet sent by the network equipment;
if the number of the at least one data packet in the first data packet set does not include the number carried in the message, determining that the at least one data packet in the first data packet set is inconsistent with the data packet sent by the network device.
14. The apparatus of claim 10 or 13, wherein the determining module is further configured to:
determining the number carried by the lost data packet according to the inconsistency between the at least one data packet in the first data packet set and the data packet sent by the network equipment;
the device further comprises:
a sending module, configured to send indication information to the network device, where the indication information includes a number carried by the lost data packet, and the indication information is used to indicate the network device to send the lost data packet;
the receiving module is further configured to:
and receiving a second data packet set, wherein the second data packet set comprises the lost data packet.
15. An apparatus for data transmission, the apparatus comprising:
the sending module is configured to send a first data packet set to the network management device, where the first data packet set includes at least one data packet, and the at least one data packet carries a number.
16. The apparatus of claim 15, further comprising:
a receiving module, configured to receive indication information sent by the network management device, where the indication information includes a number carried by the lost data packet, and the indication information is used to indicate that the lost data packet is sent;
the receiving module is further configured to:
and sending a second data packet set to the network management equipment according to the indication information, wherein the second data packet set comprises the lost data packet.
17. A network management device, comprising:
a processor and a memory, the memory for storing program instructions, the processor for invoking and executing the program instructions from the memory to perform the method of any of claims 1-6.
18. A network device, comprising:
a processor and a memory, the memory for storing program instructions, the processor for calling and executing the program instructions from the memory to perform the method of claim 7 or 8.
19. A computer-readable storage medium, comprising a computer program which, when run on a computer, causes the computer to perform the method of any one of claims 1 to 6.
20. A computer-readable storage medium, comprising a computer program which, when run on a computer, causes the computer to perform the method of claim 7 or 8.
CN201911071431.6A 2019-11-05 2019-11-05 Data transmission method and device and computer readable storage medium Pending CN112769708A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911071431.6A CN112769708A (en) 2019-11-05 2019-11-05 Data transmission method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911071431.6A CN112769708A (en) 2019-11-05 2019-11-05 Data transmission method and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112769708A true CN112769708A (en) 2021-05-07

Family

ID=75692540

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911071431.6A Pending CN112769708A (en) 2019-11-05 2019-11-05 Data transmission method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112769708A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106792262A (en) * 2016-12-05 2017-05-31 乐视控股(北京)有限公司 Method of transmitting video data and device
CN107979449A (en) * 2016-10-25 2018-05-01 杭州海康威视数字技术股份有限公司 A kind of data transmission method and device
CN109560901A (en) * 2018-11-14 2019-04-02 广州虎牙信息科技有限公司 A kind of data repeating method, device, terminal device and storage medium
CN109905205A (en) * 2019-04-03 2019-06-18 苏州金螳螂文化发展股份有限公司 Data transmission, received method and apparatus, data transmission method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107979449A (en) * 2016-10-25 2018-05-01 杭州海康威视数字技术股份有限公司 A kind of data transmission method and device
CN106792262A (en) * 2016-12-05 2017-05-31 乐视控股(北京)有限公司 Method of transmitting video data and device
CN109560901A (en) * 2018-11-14 2019-04-02 广州虎牙信息科技有限公司 A kind of data repeating method, device, terminal device and storage medium
CN109905205A (en) * 2019-04-03 2019-06-18 苏州金螳螂文化发展股份有限公司 Data transmission, received method and apparatus, data transmission method and system

Similar Documents

Publication Publication Date Title
US11843535B2 (en) Key performance indicators (KPI) for tracking and correcting problems for a network-under-test
US10848372B2 (en) Scalability, fault tolerance and fault management for TWAMP with a large number of test sessions
US20190222494A1 (en) Tracing Message Transmissions Between Communicating Network Devices
CN110808874B (en) Cross-machine-room service monitoring method and device, storage medium and server
CN113328902B (en) Network performance detection method and device and network equipment
CN110324198B (en) Packet loss processing method and packet loss processing device
CN105634840B (en) Method and device for measuring packet loss
US10277493B2 (en) Packet throughput and loss ratio measurements of a service function chain
CN112039796B (en) Data packet transmission method and device, storage medium and electronic equipment
US11032147B2 (en) Acceleration of node configuration for TWAMP with a large number of test sessions
CN101808021A (en) Fault detection method, device and system, message statistical method and node equipment
CN114390578A (en) Network performance testing method and device, electronic equipment and medium
CN108460044B (en) Data processing method and device
CN110838950B (en) Method and device for determining network performance jitter value
CN112769708A (en) Data transmission method and device and computer readable storage medium
CN114189480B (en) Flow sampling method, device, electronic equipment and medium
CN113742004B (en) Data processing method and device based on flink framework
US11677651B2 (en) UDPING—continuous one-way monitoring of multiple network links
WO2020220986A1 (en) Packet processing method, device, and apparatus
CN106664217B (en) Methods, systems, and media for identification of candidate problem network entities
CN112256714A (en) Data synchronization method and device, electronic equipment and computer readable medium
CN113812119A (en) Network node for performance measurement
CN114189565B (en) Head area restoration system, method and related equipment
CN114615170B (en) Message processing method, device and computer storage medium
CN112671822B (en) Service request processing method, device, storage medium, server and system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210507

RJ01 Rejection of invention patent application after publication