Movatterモバイル変換


[0]ホーム

URL:


CN109246189B - Network data distribution method and device, storage medium and server - Google Patents

Network data distribution method and device, storage medium and server
Download PDF

Info

Publication number
CN109246189B
CN109246189BCN201810882704.4ACN201810882704ACN109246189BCN 109246189 BCN109246189 BCN 109246189BCN 201810882704 ACN201810882704 ACN 201810882704ACN 109246189 BCN109246189 BCN 109246189B
Authority
CN
China
Prior art keywords
data packet
distribution
data
address
packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810882704.4A
Other languages
Chinese (zh)
Other versions
CN109246189A (en
Inventor
曾熙璘
李宝勋
丁磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GHT CO Ltd
Original Assignee
GHT 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 GHT CO LtdfiledCriticalGHT CO Ltd
Priority to CN201810882704.4ApriorityCriticalpatent/CN109246189B/en
Publication of CN109246189ApublicationCriticalpatent/CN109246189A/en
Application grantedgrantedCritical
Publication of CN109246189BpublicationCriticalpatent/CN109246189B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The invention discloses a network data distribution method, which comprises the following steps: responding to a data transmission request of an external network, receiving a data packet through an external network port and carrying out data detection on the data packet; if the data packet passes the data detection, obtaining a distribution address of the data packet according to a preset distribution rule; when the distribution address of the data packet is judged to point to a terminal connected with the internal network port, the data packet is sent to the internal network port connected with the terminal; when the distribution address of the data packet is judged to point to N terminals which are not connected with the internal network port, the content of the data packet is copied into N parts, and the destination address information of each part of the data packet is correspondingly modified according to the distribution rule; and sending the data packet with the modified destination address information to an external network port connected with an external network. The invention also discloses a network data distribution device, a storage medium and a server. The network data distribution method of the embodiment of the invention effectively reduces the network deployment cost and improves the real-time performance of network data transmission.

Description

Network data distribution method and device, storage medium and server
Technical Field
The present invention relates to the field of communication transmission, and in particular, to a network data distribution method and apparatus, a storage medium, and a server.
Background
With the continuous development of networks and communication technologies, the capability requirements of data transmission of network devices and data distribution of data networks are higher and higher.
In a communications network, since some network data content is acquired by multiple end users at the same time, the data transmission network needs to "copy" multiple copies of the network data content and then transmit the copies to different user addresses. In the existing network data distribution method, a CPU is responsible for packaging and sending network data contents to be transmitted to a plurality of users, i.e. completing the processes of "copying" and transmitting. The problem of this method is that the process of packaging and sending occupies a lot of resources of CPU, which is not favorable for improving the efficiency of data distribution, especially when thousands of users need to access network data, the situation of resource occupation is more obvious, thus leading to serious problem of network delay.
Yet another existing approach is to use a content distribution network to address the problem of packet packaging and delivery. A Content Delivery Network (CDN) is a special Network Content Delivery Network that is mainly built on the internet, and the principle of the CDN technology is to deliver Network data Content to an edge server closest to a Network user, so that the user can obtain required Network Content from the closest server at the fastest speed. The drawback of this approach is that a large number of network devices need to be configured, increasing the cost of network deployment.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a network data distribution method and apparatus, a storage medium, and a server, which can effectively reduce the occupation of CPU resources, reduce the number of servers, reduce the network deployment cost, and improve the real-time performance of network data transmission.
In order to solve the above technical problem, an embodiment of the present invention provides a network data distribution method, including:
responding to a data transmission request of an external network, receiving a data packet through an external network port and carrying out data detection on the data packet;
if the data packet passes the data detection, obtaining a distribution address of the data packet according to a preset distribution rule; wherein, the distribution address of the data packet comprises a terminal pointing to the internal network port connection and/or a terminal pointing to the non-internal network port connection;
when the distribution address of the data packet is judged to point to a terminal connected with an internal network port, the data packet is sent to the internal network port connected with the terminal;
when the distribution address of the data packet is judged to point to N terminals which are not connected with the internal network port, copying the content of the data packet into N parts and correspondingly modifying the destination address information of each part of the data packet according to the distribution rule; the destination address information of each data packet comprises link information from local to a corresponding destination terminal, and N is more than or equal to 1;
and sending the data packet with the modified destination address information to the external network port connected with the external network.
The network data distribution method provided by the embodiment of the invention receives a data packet through an external network port and performs data detection on the data packet, if the data packet passes the data detection, a distribution address of the data packet is obtained according to a preset distribution rule, when the distribution address of the data packet is judged to point to a terminal connected with the internal network port, the data packet is sent to the internal network port connected with the terminal and then transmitted to the terminal, when the distribution address of the data packet is judged to point to N terminals which are not connected with the internal network port, the content of the data packet is copied into N parts, the destination address information of each part of the data packet is correspondingly modified according to the distribution rule, and finally the data packet with the modified destination address information is sent to the external network port connected with the external network and then transmitted to the external network, the network data is directly packaged and sent from the initial server, so that the original network data content can be sent to the user without passing through a multi-level cache server, and the CPU is not responsible for packaging and distributing the network data, thereby effectively reducing the resource occupation condition of the CPU, reducing the number of servers, lowering the network deployment cost and improving the real-time property of the network data content.
As an improvement of the above, the method further comprises:
and when the distribution address of the data packet cannot be judged according to the distribution rule, the data packet is sent to the terminal through the internal network port.
As an improvement of the above scheme, if the data packet passes the data detection, after obtaining the distribution address of the data packet according to a preset distribution rule, the method further includes:
and if the data packet does not pass the data detection, generating an interrupt data packet and sending the interrupt data packet to the terminal through the internal network port.
As an improvement of the above scheme, if the data packet passes the data detection, obtaining the distribution address of the data packet according to a preset distribution rule specifically includes:
if the data packet passes the data detection, generating a configuration data packet corresponding to the preset distribution rule; the configuration data packet comprises a one-to-one mapping relation of a source address and a distribution address;
matching a source address in the configuration data packet with a source address of the data packet;
and when the source address of the configuration data packet is successfully matched with the source address of the data packet, obtaining the distribution address of the data packet according to the mapping relation of the successfully matched source address.
As an improvement of the above scheme, the content of the configuration data packet specifically includes a source address, a distribution address, a packet type, a packet sequence number, an operation code, an operation address, an operation length, operation data, or frame check.
As an improvement of the above solution, when it is determined that the distribution address of the data packet points to a terminal connected to an internal network port, sending the data packet to the internal network port connected to the terminal specifically includes:
when the distribution address of the data packet is judged to point to the terminal, the network data packet is subjected to priority setting according to a preset priority rule; the network data packet comprises an interrupt data packet, a configuration data packet and a data packet;
and sequentially sending the network data packets to the terminal through the internal network ports according to the set priority.
As an improvement of the above solution, when it is determined that the distribution address of the data packet points to N terminals not connected to the internal network port, the copying the content of the data packet into N parts and correspondingly modifying the destination address information of each part of the data packet according to the distribution rule specifically includes:
when the distribution address of the data packet is judged to point to N terminals which are not connected with the internal network port, copying the content of the data packet into N parts;
obtaining a distribution destination address of the data packet according to the distribution rule, modifying the destination address of any data packet into any distribution destination address, then distributing, and simultaneously obtaining the next distribution destination address; wherein, the distribution is to send the data packet with modified destination address information to the external network port;
and when the N data packets are distributed, ending the distribution of the data packet of the frame.
The invention also provides a network data distribution device, comprising:
the external network port module is used for responding to a data transmission request of an external network, receiving a data packet through an external network port and carrying out data detection on the data packet;
the first detection module is used for obtaining a distribution address of the data packet according to a preset distribution rule if the data packet passes data detection; wherein, the distribution address of the data packet comprises a terminal pointing to the internal network port connection and/or a terminal pointing to the non-internal network port connection;
the first distribution module is used for sending the data packet to an internal network port connected with a terminal when judging that the distribution address of the data packet points to the terminal connected with the internal network port;
a second detection module, configured to copy, when it is determined that the distribution address of the data packet points to N terminals that are not connected to the internal network port, the content of the data packet into N parts, and modify, according to the distribution rule, destination address information of each part of the data packet correspondingly; the destination address information of each data packet comprises link information from local to a corresponding destination terminal, and N is more than or equal to 1;
and the second distribution module is used for sending the data packet with the modified destination address information to the external network port connected with the external network.
The invention also provides a computer-readable storage medium, which includes a stored program, wherein when the program runs, a device where the storage medium is located is controlled to execute any one of the above network data distribution methods.
The present invention also provides a server comprising one or more processors, memory, and one or more programs, wherein:
the one or more programs are stored in the memory and configured to be executed by the one or more processors, the programs including instructions for the network data distribution method of any of the above.
Drawings
Fig. 1 is a schematic flowchart of a network data distribution method provided in embodiment 1 of the present invention;
fig. 2 is a schematic structural diagram of an application system of a network data distribution method according to embodiment 1 of the present invention;
fig. 3 is a schematic diagram of a data packet priority processing procedure in an application system of a network data distribution method according to embodiment 1 of the present invention;
fig. 4 is a schematic diagram of a preferred configuration packet structure provided in embodiment 1 of the present invention;
fig. 5 is a schematic structural diagram of a network data distribution apparatus according to embodiment 2 of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without any inventive step, are within the scope of the present invention.
Referring to fig. 1, which is a schematic flow chart of a network data distribution method provided in embodiment 1 of the present invention, the method includes steps S1 to S5:
s1, responding to a data transmission request of an external network, receiving a data packet through an external network port and carrying out data detection on the data packet;
s2, if the data packet passes the data detection, obtaining a distribution address of the data packet according to a preset distribution rule; wherein, the distribution address of the data packet comprises a terminal pointing to the internal network port connection and/or a terminal pointing to the non-internal network port connection;
s3, when judging that the distribution address of the data packet points to a terminal connected with an internal network port, sending the data packet to the internal network port connected with the terminal;
s4, when judging that the distribution address of the data packet points to N terminals which are not connected with the internal network port, copying the content of the data packet into N parts and correspondingly modifying the destination address information of each part of the data packet according to the distribution rule; the destination address information of each data packet comprises link information from local to a corresponding destination terminal, and N is more than or equal to 1;
s5, sending the data packet with the modified destination address information to the external network port connected with the external network.
Preferably, the method further comprises:
and when the distribution address of the data packet cannot be judged according to the distribution rule, the data packet is sent to the terminal through the internal network port. It should be noted that, when the distribution address of the data packet cannot be determined according to the distribution rule, at this time, the data packet is equivalent to a transparent UDP packet, and the data packet needs to be sent to the terminal through the internal network port.
Preferably, if the data packet passes the data detection, obtaining the distribution address of the data packet according to a preset distribution rule further includes:
and if the data packet does not pass the data detection, generating an interrupt data packet and sending the interrupt data packet to the terminal through the internal network port.
Preferably, if the data packet passes the data detection, obtaining the distribution address of the data packet according to a preset distribution rule specifically includes:
if the data packet passes the data detection, generating a configuration data packet corresponding to the preset distribution rule; the configuration data packet comprises a one-to-one mapping relation of a source address and a distribution address;
matching a source address in the configuration data packet with a source address of the data packet;
and when the source address of the configuration data packet is successfully matched with the source address of the data packet, obtaining the distribution address of the data packet according to the mapping relation of the successfully matched source address.
Further, the content of the configuration data packet specifically includes a source address, a distribution address, a packet type, a packet sequence number, an operation code, an operation address, an operation length, operation data, or frame check.
Preferably, when it is determined that the distribution address of the data packet points to a terminal connected to an internal network port, sending the data packet to the internal network port connected to the terminal specifically includes:
when the distribution address of the data packet is judged to point to the terminal, the network data packet is subjected to priority setting according to a preset priority rule; the network data packet comprises an interrupt data packet, a configuration data packet and a data packet;
and sequentially sending the network data packets to the terminal through the internal network ports according to the set priority.
Preferably, when it is determined that the distribution address of the data packet points to N terminals not connected to the internal network port, the copying the content of the data packet into N parts and correspondingly modifying the destination address information of each part of the data packet according to the distribution rule specifically includes:
when the distribution address of the data packet is judged to point to N terminals which are not connected with the internal network port, copying the content of the data packet into N parts;
obtaining a distribution destination address of the data packet according to the distribution rule, modifying the destination address of any data packet into any distribution destination address, then distributing, and simultaneously obtaining the next distribution destination address; wherein, the distribution is to send the data packet with modified destination address information to the external network port;
and when the N data packets are distributed, ending the distribution of the data packet of the frame.
The network data distribution method provided by the embodiment of the invention receives a data packet through an external network port and performs data detection on the data packet, judges a distribution address of the data packet according to a preset distribution rule under the condition that the data packet passes the data detection, sends the data packet to an internal network port connected with a terminal so as to transmit the data packet to the terminal when judging that the distribution address of the data packet points to the terminal connected with the internal network port, copies the content of the data packet into N parts and correspondingly modifies the destination address information of each data packet according to the distribution rule when judging that the distribution address of the data packet points to N terminals which are not connected with the internal network port, and finally sends the data packet modified by the destination address information to the external network port connected with the external network so as to transmit the data packet to the external network, based on the scheme, the network data is directly packaged and sent from the initial server, so that the original network data content can be sent to the user without passing through a multi-level cache server, the resource occupation condition of a CPU (central processing unit) can be effectively reduced, the number of servers is reduced, the network deployment cost is reduced, and the real-time performance of the network data content is improved.
Referring to fig. 2, which is a schematic structural diagram of an application system of a network data distribution method provided in embodiment 1 of the present invention, the system includes:
an externalIP core module 21, configured to receive a data packet transmitted by an external network and perform CRC check on the data packet; the CRC check is one of the most commonly used error checking codes in the field of data communication.
A packet store-and-forward module 22, configured to perform data detection on the configuration packet read from the configuration logic registration module 28; the configuration package is used for storing information of preset distribution rules; and analyzing the information in the configuration package to obtain a preset distribution rule. Judging the distribution address of the data packet according to a preset distribution rule, and if the distribution address of the data packet is judged to point to a CPU (central processing unit) port, sending the data packet to a first packet selection module 24; when the distribution address of the data packet is judged to point to N terminals in an external network, the content of the data packet is copied into N (N is more than or equal to 1) parts, the destination address information of each part of the data packet is correspondingly modified according to the distribution rule, and then the data packet after the destination address information is modified is sent to a second packet selection module 27; if the distribution address of the data packet cannot be judged according to the distribution rule, the data packet is equivalent to a transparent transmission UDP packet at this time, the data packet is also sent to the first packet selection module 24, and the data packet is sent to the internal network port, that is, the internal IP core module 25, through the first packet selection module 24 and finally sent to the terminal.
And theDDR4 storage module 23 is configured to store the data packet received by the packet store and forward module 22.
A first packet selecting module 24, configured to read a priority configuration packet from the configuration logic registering module 28, set a priority of a data packet received from the packet storing and forwarding module 22 according to priority information in the priority configuration packet, and then sequentially send the data packet to the internal IP core module 25 according to the set priority; the priority configuration packet is used for storing information of a preset priority setting rule.
An internal IP core module 25, configured to receive the data packet transmitted by the first packet selecting module 24, perform CRC check on the data packet, and send an error identifier to the logic packet sending module 29 if it is detected that the data packet has an error; and if the data packet is detected to have no error, the data packet is sent to a CPU network port of a connection terminal.
A configuration packet identification module 26, configured to separate the configuration packet from the data packet transmitted by the CPU network port according to the MAC address of the data packet, and send the separated configuration packet to the configuration logic registration module 28.
A second packet selecting module 27, configured to perform priority setting on the data packets received from the packet store-and-forward module 22 according to the priority configuration packet read from the configuration logic registering module 28, and sequentially send the received data packets to the externalIP core module 21 according to the set priority.
A configuration logic register module 28, configured to store the configuration packet and the priority configuration packet; the configuration packet is used for storing preset distribution rule information, and the priority configuration packet is used for storing priority rule information.
And a logic packet sending module 29, configured to receive the error identifier sent by the externalIP core module 21, the packet storage and forwarding module 22, the internal IP core module 25, and the configuration packet identification module 26, and send an interrupt packet to the CPU.
The data packets in the embodiment of the present invention include, but are not limited to, UDP packets, non-UDP packets, and TCP packets, wherein the UDP packets include distribution UDP packets and transparent transmission UDP packets; network data packets include, but are not limited to, interrupt packets, configuration packets, UDP packets, non-UDP packets, and TCP packets.
The embodiment of the invention is realized by adopting the 5CGXC3+ DDR4 of the Cyclone V FPGA series, can reduce the hierarchy and the cost of the whole network, is beneficial to construction and maintenance, and simultaneously reduces the network delay and brings better experience to customers.
The working principle of the application system is described in detail below with reference to fig. 2:
the externalIP core module 21 responds to a data transmission request of an external network, receives a data packet sent by the external network, performs CRC check detection on the data packet, and if it is detected that the data packet has an error, the externalIP core module 21 sends an error identifier to the logic packet sending module 29; if the data packet does not detect an error, the data packet is sent to the packet store-and-forward module 22.
After receiving the data packet, the packet store-and-forward module 22 stores the data packet into theDDR4 storage module 23, and when the distribution of the current frame data packet is completed, reads the next frame data packet from theDDR4 storage module 23. The packet store and forward module 22 reads the configuration packet containing the distribution rule information from the configuration logic register module 28, and performs data detection on the configuration packet. If the configuration packet is detected to have an error, an error identifier is sent to the logic packet sending module 29; and if the configuration package is not detected to have errors, judging the data package according to pre-stored distribution rule information in the configuration package. And comparing the source address of the configuration packet with the source address of the data packet, and then determining the distribution destination of the data packet according to the one-to-one mapping relation between the source address and the distribution address in the configuration packet. If the distribution address of the data packet points to the CPU port, the packet store-and-forward module 22 sends the data packet to the first packet selection module 24; when the distribution address of the data packet is judged to point to N terminals in an external network, the content of the data packet is copied into N parts, the distribution destination address of the data packet is obtained according to the distribution rule, the destination address of any part of the data packet is modified into any distribution destination address and then is distributed, and meanwhile, the next distribution destination address is obtained; wherein the distribution is to send the data packet with the destination address information modified to the second packet selection module 27. And when the N data packets are distributed, ending the distribution of the data packet of the frame.
Fig. 3 is a schematic diagram of a data packet priority processing process in an application system of a network data distribution method according to embodiment 1 of the present invention. Idle in fig. 3 indicates the first packet selection module 24 in the system, and rdlntpkt indicates that the first packet selection module 24 is in a read interrupt packet state; RdCfgPkt indicates that the first packet selection module 24 is in a read configuration packet state; rdunnedpkt indicates that the first packet selection module 24 is in a read non-UDP packet state; RdUdPkt indicates that the first packet selection module 24 is in a state of reading a UDP packet for transparent transmission; rdciuppkt indicates that the first packet selection module 24 is in a read distribution UDP packet state.
The following describes how to implement the process of forwarding data packets according to priority in the first packet selection module 24 in conjunction with fig. 3. When the first packet selection module 24 receives an interrupt packet, a configuration packet, a non-UDP packet, a transparent UDP packet, and a distribution UDP packet, it is necessary to perform priority ordering on these data packets in order to ensure the network data quality requirement, and then sequentially send the data packets to the internal IP core module 25 according to the ordered priorities; the logic packet sending module 29 sends an interrupt packet, the configuration packet identification module 26 reads the configuration logic register module 28 and sends the configuration packet, and the packet storage and forwarding module 22 sends a non-UDP packet, a transparent UDP packet, and a distribution UDP packet. The first packet selecting module 24 receives the priority configuration packet read by the configuration packet identifying module 26 from the configuration logic registering module 28, and sets the priority of the data packet in the first packet selecting module 24 according to the priority rule in the priority configuration packet; the priority order of the data packets is as follows in sequence: an interrupt packet, a configuration packet, a non-UDP packet, a transparent UDP packet and a distribution UDP packet.
The inner IP core module 25 receives the data packet from the first packet selection module 24 and performs CRC detection on the data packet. If the data packet is detected to have an error, an error identifier is sent to the logic packet sending module 29, and if the data packet is not detected to have an error, the data packet is sent to the CPU port according to the priority.
Fig. 4 is a schematic diagram of a preferred configuration packet structure provided in embodiment 1 of the present invention. The configuration packet comprises a source address, a destination address, a packet type, a packet sequence number, an operation code, an operation address, an operation length, operation data and frame check; wherein, the source address is the MAC address of the CPU network port; the destination address is a purchased legal MAC address; the packet type is the ASCII code of the company; the packet serial number is a cyclic number of 0-255, and the CPU can continuously read and write the data packet by using the packet serial number; the operation code is used for indicating the read, write or interrupt state of the data packet; the operation address is automatically accumulated from the address inside the logic device when in burst mode; the operation length is the length of an operation code, and the legal value of the operation length is from 1 to 1024; the operation data is used for transmitting the data by the CPU when the logic device needs to write information into the register, and transmitting the data by the logic device when the logic device reads the information of the register; the frame check is a MAC frame check.
Further, in this embodiment of the present invention, the distribution address is a distribution destination address of the data packet included in the distribution rule. When the distribution address includes at least two distribution destination addresses and the distribution destination addresses are linked into a ring, in order to avoid a situation that the same packet of network data content is repeatedly sent all the time due to an error occurring in the configuration packet, the packet store-and-forward module 22 automatically performs a loopback test to verify whether the distribution destination addresses are linked into a ring, and when the distribution destination addresses are detected to be linked into a ring, the packet store-and-forward module 22 stops sending the data packet.
Specifically, in the embodiment of the present invention, the maximum forwarding number of the packet store-and-forward module 22 is set to 2047 times, it can be understood that, when the packet store-and-forward module 22 forwards once, the value of the counter in the data distribution system is increased by one, and when the forwarding number of the packet store-and-forward module 22 is greater than 2047 times, the data distribution system ends current data forwarding and obtains a new network data packet again for transmission.
In another preferred embodiment, when the CPU utilizes the CPU port to go through the distribution system to the external network, the CPU port transmits the internal data packet sent by the CPU to the internal IP core module 25, and the internal IP core module 25 performs CRC detection on the internal data packet. If the internal data packet is detected to have an error, an error identifier is sent to the logic packet sending module 29; if no error is detected in the internal data packet, the internal data packet is sent to the configuration packet identification module 26. The configuration packet identification module 26 detects whether the internal data packet is a configuration packet according to the MAC address of the internal data packet, and if the internal data packet is a configuration packet, detects whether the configuration packet has an error; if the configuration packet is detected to have an error, an error flag is sent to the logic packet sending module 29, and if the configuration packet is not detected to have an error, the configuration packet is extracted and sent to the configuration logic registering module 28. If it is detected that the internal data packet is a data packet, the data packet is sent to the second packet selection module 27. The second packet selecting module 27 performs priority sorting on the received data packets according to the priority rule information obtained from the configuration logic registering module 28, and then sends the received data packets to the externalIP core module 21 according to the priority order and enters the external network.
Referring to fig. 5, a schematic structural diagram of a network data distribution apparatus provided in embodiment 2 of the present invention is shown, where the apparatus includes:
an externalnetwork port module 101, configured to receive a data packet through an external network port and perform data detection on the data packet in response to a data transmission request of an external network;
afirst detection module 102, configured to obtain a distribution address of the data packet according to a preset distribution rule if the data packet passes data detection; wherein, the distribution address of the data packet comprises a terminal pointing to the internal network port connection and/or a terminal pointing to the non-internal network port connection;
afirst distribution module 103, configured to send the data packet to an internal network port connected to a terminal when it is determined that a distribution address of the data packet points to the terminal connected to the internal network port;
a second detectingmodule 104, configured to copy, when it is determined that the distribution address of the data packet points to N terminals that are not connected to the internal network port, the content of the data packet into N parts, and modify, according to the distribution rule, destination address information of each part of the data packet correspondingly; the destination address information of each data packet comprises link information from local to a corresponding destination terminal, and N is more than or equal to 1;
and thesecond distribution module 105 is configured to send the data packet with the modified destination address information to the external network port connected to the external network.
The network data distribution device provided by the embodiment of the invention receives a data packet through an external network port module 101 and performs data detection on the data packet, a first detection module 102 judges a distribution address of the data packet according to a preset distribution rule under the condition that the data packet passes through the data detection, when the distribution address of the data packet is judged to point to a terminal connected with an internal network port, a first distribution module 103 sends the data packet to the internal network port connected with the terminal so as to transmit the data packet to the terminal, when a second detection module 104 judges that the distribution address of the data packet points to N terminals not connected with the internal network port, a second distribution module 105 duplicates the content of the data packet into N parts and correspondingly modifies the destination address information of each data packet according to the distribution rule, and finally sends the data packet after the destination address information modification to the external network port connected with the external network so as to transmit the data packet to the external network port connected with the external network port Based on the scheme, the external network directly packages and sends the network data content from the initial server, so that the original network data content can be sent to the user without passing through a multi-level cache server, and the CPU is not responsible for packaging and distributing the network data, thereby effectively reducing the resource occupation condition of the CPU, reducing the number of servers, lowering the network deployment cost and improving the real-time property of the network data content.
The invention also provides a computer-readable storage medium, which includes a stored program, wherein when the program runs, a device in which the storage medium is located is controlled to execute the network data distribution method according to any embodiment.
The present invention also provides a server comprising one or more processors, memory, and one or more programs, wherein:
the one or more programs stored in the memory and configured to be executed by the one or more processors include the network data distribution method for any embodiment.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.

Claims (9)

CN201810882704.4A2018-08-032018-08-03Network data distribution method and device, storage medium and serverActiveCN109246189B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201810882704.4ACN109246189B (en)2018-08-032018-08-03Network data distribution method and device, storage medium and server

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201810882704.4ACN109246189B (en)2018-08-032018-08-03Network data distribution method and device, storage medium and server

Publications (2)

Publication NumberPublication Date
CN109246189A CN109246189A (en)2019-01-18
CN109246189Btrue CN109246189B (en)2021-02-26

Family

ID=65070259

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201810882704.4AActiveCN109246189B (en)2018-08-032018-08-03Network data distribution method and device, storage medium and server

Country Status (1)

CountryLink
CN (1)CN109246189B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109982117B (en)*2019-03-152021-06-04兰州大学Relay processing method, device, storage medium and network equipment for video stream data
CN111611281A (en)*2020-05-202020-09-01中国移动通信集团江苏有限公司 Method, apparatus, device and storage medium for data distribution
CN113890789B (en)*2021-09-292023-03-21华云数据控股集团有限公司UDP tunnel traffic shunting method and traffic forwarding method suitable for data center
CN114979142B (en)*2022-05-162024-11-29深圳市金瑞铭科技有限公司Cloud platform edge equipment data processing method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103634274A (en)*2012-08-212014-03-12北京天行网安信息技术有限责任公司Safe method for video exchange and system
CN106657350A (en)*2016-12-292017-05-10中国银联股份有限公司Data replication method and device
CN106850706A (en)*2015-12-042017-06-13南宁富桂精密工业有限公司Stream medium data transmission system, transmission method and data distributing server
JP2017152991A (en)*2016-02-252017-08-31沖電気工業株式会社 Information distribution apparatus, information distribution program, communication terminal, communication processing program, and information distribution system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103634274A (en)*2012-08-212014-03-12北京天行网安信息技术有限责任公司Safe method for video exchange and system
CN106850706A (en)*2015-12-042017-06-13南宁富桂精密工业有限公司Stream medium data transmission system, transmission method and data distributing server
JP2017152991A (en)*2016-02-252017-08-31沖電気工業株式会社 Information distribution apparatus, information distribution program, communication terminal, communication processing program, and information distribution system
CN106657350A (en)*2016-12-292017-05-10中国银联股份有限公司Data replication method and device

Also Published As

Publication numberPublication date
CN109246189A (en)2019-01-18

Similar Documents

PublicationPublication DateTitle
CN109246189B (en)Network data distribution method and device, storage medium and server
US7895425B2 (en)Operation, administration and maintenance (OAM) in a service insertion architecture (SIA)
CN110061914B (en)Message forwarding method and device
CN110035016B (en) A data transmission method and device
US20150131484A1 (en)Methodology and apparatus for topology discovery and mapping of chained network services
CN112751733B (en)Link detection method, device, equipment, system and switch
CN113595897B (en)Path detection method and device
CN110324198A (en)Loss treating method and packet loss processing unit
US8547845B2 (en)Soft error recovery for converged networks
CN107547505B (en)Message processing method and device
CN105634937B (en)A kind for the treatment of method and apparatus of message
CN109428801A (en)File transmitting method and device
CN112039796A (en)Data packet transmission method and device, storage medium and electronic equipment
CN109951371B (en)Data forwarding method and device
WO2020259551A1 (en)Method and apparatus for handling network connection fault
CN109756401B (en)Test method, test device, electronic equipment and storage medium
CN118802611A (en) Packing test method, device and storage medium
CN110138635A (en)It is a kind of that the protocol conversion function of FC and Ethernet is supported to verify device and method
CN104471897B (en)A kind of MEP collocation methods and the network equipment
US20090285207A1 (en)System and method for routing packets using tags
CN104702439A (en)Network node monitoring method and device
CN116723154B (en)Route distribution method and system based on load balancing
WO2021083375A1 (en)Method and apparatus for detecting link states
CN117896041A (en)Message transmission method, device and readable storage medium based on industrial Internet
CN115174439B (en)Verification method, device and storage medium of multi-protocol label switching channel

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp