CN110519009A - A kind of data pack transmission method and device - Google Patents

A kind of data pack transmission method and device Download PDF

Info

Publication number
CN110519009A
CN110519009A CN201910717828.1A CN201910717828A CN110519009A CN 110519009 A CN110519009 A CN 110519009A CN 201910717828 A CN201910717828 A CN 201910717828A CN 110519009 A CN110519009 A CN 110519009A
Authority
CN
China
Prior art keywords
numerical value
destination address
data packet
view
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910717828.1A
Other languages
Chinese (zh)
Other versions
CN110519009B (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.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information Technology 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 Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN201910717828.1A priority Critical patent/CN110519009B/en
Publication of CN110519009A publication Critical patent/CN110519009A/en
Application granted granted Critical
Publication of CN110519009B publication Critical patent/CN110519009B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0033Systems modifying transmission characteristics according to link quality, e.g. power backoff arrangements specific to the transmitter
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a kind of data pack transmission method and devices, are applied in view networking, comprising: obtain at least one data packet to be sent;Analytical Calculation is carried out to the data packet, obtains the first numerical value, wherein first numerical value is the corresponding numerical value of destination address of the data packet;It is matched according to preconfigured rule list, the determining view networked server to match with first numerical value, wherein, the preconfigured rule list includes the corresponding relationship of the data segment of destination address and the view networking number of server, and the view networked server and view networking number correspond;Send at least one described data packet to it is corresponding it is described depending on networked server to carry out transfer, realize the communication of view networked terminals equipment and internet terminal, the data that can be carried out between multiple terminal devices and multiple view networked servers are transmitted, and are increased working efficiency, are increased fault-tolerance.

Description

A kind of data pack transmission method and device
Technical field
The present invention relates to view networking technology fields, more particularly to a kind of data pack transmission method and device.
Background technique
With the fast development of the network technology, the two-way communications such as video conference, video teaching the life of user, work, Study etc. is widely available.
It is one safer compared with conventional internet depending on networking, faster network, in order to make can quickly to incorporate depending on networking Conventional internet adapts to current internet, needs the terminal to use view to network to configure a server, this server is used to Realize view networked terminals and internet terminal communication, however how be these terminal reasonable distribution servers, and then with interconnection Net carries out the problem of communication is urgent need to resolve.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present invention and overcomes the above problem or at least partly in order to provide one kind A kind of data pack transmission method and device to solve the above problems.
First aspect, the embodiment of the present invention provide a kind of data pack transmission method, and the method is applied in view networking, Include:
Obtain at least one data packet to be sent;
Analytical Calculation is carried out to the data packet, obtains the first numerical value, wherein first numerical value is the data packet The corresponding numerical value of destination address;
It is matched according to preconfigured rule list, the determining view networked server to match with first numerical value, Wherein, the preconfigured rule list includes the corresponding relationship of the data segment of destination address and the view networking number of server, The view networked server and view networking number correspond;
At least one described data packet is sent to the corresponding view networked server.
Optionally, described that analytical Calculation is carried out to the data packet, obtain the first numerical value, comprising:
The data packet is parsed, the destination address of the data packet is obtained;
The destination address is converted, the corresponding decimal value of the destination address is obtained;
The decimal value is determined as first numerical value.
Optionally, described to convert the destination address, the corresponding decimal value of the destination address is obtained, is wrapped It includes:
By the first segment numerical value of the destination address multiplied by the first preset value, second segment numerical value is multiplied by the second preset value, and Three number of segment values obtain the corresponding decimal value of the destination address multiplied by third preset value, the summation of the 4th number of segment value.
Optionally, described to be matched according to preconfigured rule list, the determining view to match with first numerical value Networked server, comprising:
In preconfigured rule list, the data segment of the destination address locating for first numerical value is determined;
Search view networking number corresponding with the data segment of the destination address;
By it is described depending on networking number it is corresponding view networked server be determined as the view to match with first numerical value network Server.
The second aspect, the embodiment of the present invention provide a kind of data packet transfer device, and described device is applied in view networking, Include:
Module is obtained, for obtaining at least one data packet to be sent;
Parsing module obtains the first numerical value, wherein first numerical value is for carrying out analytical Calculation to the data packet The corresponding numerical value of the destination address of the data packet;
Matching module, for being matched according to preconfigured rule list, what determining and first numerical value matched Depending on networked server, wherein the preconfigured rule list includes the view networking number of the data segment and server of destination address The corresponding relationship of code, the view networked server and view networking number correspond;
Sending module, for sending at least one described data packet to the corresponding view networked server.
Optionally, the parsing module is used for:
The data packet is parsed, the destination address of the data packet is obtained;
The destination address is converted, the corresponding decimal value of the destination address is obtained;
The decimal value is determined as first numerical value.
Optionally, the parsing module is specifically used for:
By the first segment numerical value of the destination address multiplied by the first preset value, second segment numerical value is multiplied by the second preset value, and Three number of segment values obtain the corresponding decimal value of the destination address multiplied by third preset value, the summation of the 4th number of segment value.
Optionally, the matching module is used for:
In preconfigured rule list, the data segment of the destination address locating for first numerical value is determined;
Search view networking number corresponding with the data segment of the destination address;
By it is described depending on networking number it is corresponding view networked server be determined as the view to match with first numerical value network Server.
In terms of third, the embodiment of the present invention provides a kind of terminal device, comprising: at least one processor and memory;
The memory stores computer program;At least one described processor executes the computer of the memory storage Program, the method to realize first aspect offer.
4th aspect, the embodiment of the present invention provide a kind of computer readable storage medium, the computer-readable storage medium Computer program is stored in matter, the computer program is performed the method for realizing that first aspect provides.
The embodiment of the present invention includes following advantages:
The characteristic of application view networking of the embodiment of the present invention, the view of the data segment and server that are pre-configured with destination address are networked The rule list of the corresponding relationship of number, according to the destination address pair at least one data packet to be sent that terminal device parses The numerical value answered, matches the view networked server to match with destination address numerical value in preconfigured rule list, and terminal is set Preparation give at least one data packet to corresponding view networked server carry out data relay, realize view networked terminals equipment and mutually The communication of networked terminals, the data that can be carried out between multiple terminal devices and multiple view networked servers are transmitted, and work is improved Make efficiency, increases fault-tolerance.
Detailed description of the invention
Fig. 1 is a kind of networking schematic diagram of view networking of the invention;
Fig. 2 is a kind of hardware structural diagram of node server of the invention;
Fig. 3 is a kind of hardware structural diagram of access switch of the invention;
Fig. 4 is the hardware structural diagram that a kind of Ethernet association of the invention turns gateway;
Fig. 5 is a kind of step flow chart of data pack transmission method embodiment of the invention;
Fig. 6 is a kind of structural schematic diagram of terminal device of the invention;
Fig. 7 is a kind of structural block diagram of data transmission of the invention;
Fig. 8 is a kind of structural schematic diagram of data packet transfer device embodiment of the invention;
Fig. 9 is a kind of structural schematic diagram of terminal device of the invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real Applying mode, the present invention is described in further detail.
Networking depending on networking is as described below:
It is a kind of central controlled network structure depending on networking, which can be Tree Network, Star network, ring network etc. class Type, but centralized control node is needed to control whole network in network on this basis.
As shown in Figure 1, being divided into access net and Metropolitan Area Network (MAN) two parts depending on networking.
The equipment of access mesh portions can be mainly divided into 3 classes: node server, access switch, terminal (including various machines Top box, encoding board, memory etc.).Node server is connected with access switch, and access switch can be with multiple terminal phases Even, and it can connect Ethernet.
Wherein, node server is the node that centralized control functions are played in access net, can control access switch and terminal. Node server can directly be connected with access switch, can also directly be connected with terminal.
Similar, the equipment of metropolitan area mesh portions can also be divided into 3 classes: metropolitan area server, node switch, node serve Device.Metropolitan area server is connected with node switch, and node switch can be connected with multiple node servers.
Wherein, node server is the node server for accessing mesh portions, i.e. node server had both belonged to access wet end Point, and belong to metropolitan area mesh portions.
Metropolitan area server is the node that centralized control functions are played in Metropolitan Area Network (MAN), can control node switch and node serve Device.Metropolitan area server can be directly connected to node switch, can also be directly connected to node server.
It can be seen that be entirely a kind of central controlled network structure of layering depending on networking network, and node server and metropolitan area The network controlled under server can be the various structures such as tree-shaped, star-like, cyclic annular.
Visually claim, access mesh portions can form unified video platform (part in virtual coil), and multiple unified videos are flat Platform can form view networking;Each unified video platform can be interconnected by metropolitan area and wide area depending on networking.
Classify depending on networked devices
1.1 embodiment of the present invention can be mainly divided into 3 classes: server depending on the equipment in networking, interchanger (including ether Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).Depending on networking can be divided on the whole Metropolitan Area Network (MAN) (or National net, World Wide Web etc.) and access net.
1.2 equipment for wherein accessing mesh portions can be mainly divided into 3 classes: node server, access switch (including ether Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).
The specific hardware structure of each access network equipment are as follows:
Node server:
As shown in Fig. 2, mainly including Network Interface Module 201, switching engine module 202, CPU module 203, disk array Module 204;
Wherein, Network Interface Module 201, the Bao Jun that CPU module 203, disk array module 204 are come in enter switching engine Module 202;Switching engine module 202 look into the operation of address table 205 to the packet come in, to obtain the navigation information of packet; And the packet is stored according to the navigation information of packet the queue of corresponding pack buffer 206;If the queue of pack buffer 206 is close It is full, then it abandons;All pack buffer queues of 202 poll of switching engine mould, are forwarded: 1) port if meeting the following conditions It is less than to send caching;2) the queue package counting facility is greater than zero.Disk array module 204 mainly realizes the control to hard disk, including The operation such as initialization, read-write to hard disk;CPU module 203 is mainly responsible between access switch, terminal (not shown) Protocol processes, to address table 205 (including descending protocol packet address table, uplink protocol package address table, data packet addressed table) Configuration, and, the configuration to disk array module 204.
Access switch:
As shown in figure 3, mainly including Network Interface Module (downstream network interface module 301, uplink network interface module 302), switching engine module 303 and CPU module 304;
Wherein, the packet (upstream data) that downstream network interface module 301 is come in enters packet detection module 305;Packet detection mould Whether mesh way address (DA), source address (SA), type of data packet and the packet length of the detection packet of block 305 meet the requirements, if met, It then distributes corresponding flow identifier (stream-id), and enters switching engine module 303, otherwise abandon;Uplink network interface mould The packet (downlink data) that block 302 is come in enters switching engine module 303;The data packet that CPU module 204 is come in enters switching engine Module 303;Switching engine module 303 look into the operation of address table 306 to the packet come in, to obtain the navigation information of packet; If the packet into switching engine module 303 is that downstream network interface is gone toward uplink network interface, in conjunction with flow identifier (stream-id) packet is stored in the queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full, It abandons;If the packet into switching engine module 303 is not that downstream network interface is gone toward uplink network interface, according to packet Navigation information is stored in the data packet queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full, Then abandon.
All pack buffer queues of 303 poll of switching engine module, are divided to two kinds of situations in embodiments of the present invention:
If the queue is that downstream network interface is gone toward uplink network interface, meets the following conditions and be forwarded: 1) It is less than that the port sends caching;2) the queue package counting facility is greater than zero;3) token that rate control module generates is obtained;
If the queue is not that downstream network interface is gone toward uplink network interface, meets the following conditions and is forwarded: 1) it is less than to send caching for the port;2) the queue package counting facility is greater than zero.
Rate control module 208 is configured by CPU module 204, to all downlink networks in programmable interval Interface generates token toward the pack buffer queue that uplink network interface is gone, to control the code rate of forwarded upstream.
CPU module 304 is mainly responsible for the protocol processes between node server, the configuration to address table 306, and, Configuration to rate control module 308.
Ethernet association turns gateway:
As shown in figure 4, mainly including Network Interface Module (downstream network interface module 401, uplink network interface module 402), switching engine module 403, CPU module 404, packet detection module 405, rate control module 408, address table 406, Bao Huan Storage 407 and MAC adding module 409, MAC removing module 410.
Wherein, the data packet that downstream network interface module 401 is come in enters packet detection module 405;Packet detection module 405 is examined Ethernet mac DA, ethernet mac SA, Ethernet length or frame type, the view networking destination address of measured data packet DA, whether meet the requirements depending on networking source address SA, depending on networking data Packet type and packet length, corresponding stream is distributed if meeting Identifier (stream-id);Then, MAC DA, MAC SA, length or frame type are subtracted by MAC removing module 410 (2byte), and enter corresponding receive and cache, otherwise abandon;
Downstream network interface module 401 detects the transmission caching of the port, according to the view of packet networking mesh if there is Bao Ze Address D A knows the ethernet mac DA of corresponding terminal, adds the ethernet mac DA of terminal, Ethernet assists the MAC for turning gateway SA, Ethernet length or frame type, and send.
The function that Ethernet association turns other modules in gateway is similar with access switch.
Terminal:
It mainly include Network Interface Module, Service Processing Module and CPU module;For example, set-top box mainly connects including network Mouth mold block, video/audio encoding and decoding engine modules, CPU module;Encoding board mainly includes Network Interface Module, video encoding engine Module, CPU module;Memory mainly includes Network Interface Module, CPU module and disk array module.
The equipment of 1.3 metropolitan area mesh portions can be mainly divided into 2 classes: node server, node switch, metropolitan area server. Wherein, node switch mainly includes Network Interface Module, switching engine module and CPU module;Metropolitan area server mainly includes Network Interface Module, switching engine module and CPU module are constituted.
2, networking data package definition is regarded
2.1 access network data package definitions
Access net data packet mainly include following sections: destination address (DA), source address (SA), reserve bytes, payload(PDU)、CRC。
As shown in the table, the data packet for accessing net mainly includes following sections:
DA SA Reserved Payload CRC
Wherein:
Destination address (DA) is made of 8 bytes (byte), and first character section indicates type (such as the various associations of data packet Discuss packet, multicast packet, unicast packet etc.), be up to 256 kinds of possibility, the second byte to the 6th byte is metropolitan area net address, Seven, the 8th bytes are access net address;
Source address (SA) is also to be made of 8 bytes (byte), is defined identical as destination address (DA);
Reserve bytes are made of 2 bytes;
The part payload has different length according to the type of different datagrams, is if it is various protocol packages 64 bytes are 32+1024=1056 bytes if it is single group unicast packets words, are not restricted to above 2 kinds certainly;
CRC is made of 4 bytes, and calculation method follows the Ethernet CRC algorithm of standard.
2.2 Metropolitan Area Network (MAN) packet definitions
The topology of Metropolitan Area Network (MAN) is pattern, may there is 2 kinds, connection even of more than two kinds, i.e. node switching between two equipment It can all can exceed that 2 kinds between machine and node server, node switch and node switch, node switch and node server Connection.But the metropolitan area net address of metropolitan area network equipment is uniquely, to close to accurately describe the connection between metropolitan area network equipment System, introduces parameter in embodiments of the present invention: label, uniquely to describe a metropolitan area network equipment.
(Multi-Protocol Label Switch, multiprotocol label are handed over by the definition of label and MPLS in this specification Change) label definition it is similar, it is assumed that between equipment A and equipment B there are two connection, then data packet from equipment A to equipment B just There are 2 labels, data packet also there are 2 labels from equipment B to equipment A.Label is divided into label, outgoing label, it is assumed that data packet enters The label (entering label) of equipment A is 0x0000, and the label (outgoing label) when this data packet leaves equipment A may reform into 0x0001.The networking process of Metropolitan Area Network (MAN) is to enter network process under centralized control, also means that address distribution, the label of Metropolitan Area Network (MAN) Distribution be all to be dominated by metropolitan area server, node switch, node server be all passively execute, this point with The label distribution of MPLS is different, and the distribution of the label of MPLS is the result that interchanger, server are negotiated mutually.
As shown in the table, the data packet of Metropolitan Area Network (MAN) mainly includes following sections:
DA SA Reserved Label Payload CRC
That is destination address (DA), source address (SA), reserve bytes (Reserved), label, payload (PDU), CRC.Its In, the format of label, which can refer to, such as gives a definition: label is 32bit, wherein high 16bit retains, only with low 16bit, its position Set is between the reserve bytes and payload of data packet.
Based on the above-mentioned characteristic of view networking, one of the core concepts of the embodiments of the present invention is proposed, it then follows regard the association of networking View is pre-configured with the rule list of the corresponding relationship of the data segment of destination address and the view networking number of server, is set according to terminal The corresponding numerical value of destination address at least one data packet to be sent that standby parsing obtains, matches in preconfigured rule list The view networked server to match out with destination address numerical value, terminal device send at least one data packet and join to corresponding view Network server carries out data relay, realizes the communication of view networked terminals equipment and internet terminal, can carry out multiple terminals and set The standby data between multiple view networked servers are transmitted, and are improved work efficiency, are increased fault-tolerance.
One embodiment of the invention provides a kind of data pack transmission method, for by distributing view the Internet services to terminal device Device realizes the data communication of terminal device and internet.The executing subject of the present embodiment is data packet transfer device, which can To be arranged in Agent client (namely i2v protocol client), Agent is arranged on the terminal device, wherein terminal is set Standby includes various set-top boxes, encoding board, memory etc..
It specifically, is view networked terminals device configuration view networking NAT server (VNAT), a terminal device can be simultaneously A view networking NAT server is used simultaneously with multiple views networking NAT server communication or multiple terminal devices.
It is each to there is unique identification code to regard networking number depending on networking NAT server, networking number is regarded to be made of number 20 digit word strings;
Depending on networking domain name resolution server (VLAS) in advance store view networking NAT server view networking number with The rule list of the corresponding relationship of the data segment of destination IP value.Each terminal device can download rule list from the VLAS, and protect There are terminal device locals.
Fig. 5 is a kind of step flow chart of data pack transmission method embodiment of the invention, as shown in figure 5, this method can To be applied in view networking, it can specifically include following steps:
S501, data packet to be sent is obtained;
Specifically, Fig. 6 is a kind of structural schematic diagram of terminal device of the invention, as shown in fig. 6, terminal device Agent Including acquiring unit 601, resolution unit 602, matching unit 603 and transmission unit 604, wherein obtained by acquiring unit 601 Take data packet to be sent, an available data packet, also available multiple data packets.
S502, analytical Calculation is carried out to the data packet, obtains the first numerical value, wherein first numerical value is the data The corresponding numerical value of the destination address of packet;
The data packet of 602 pairs of resolution unit acquisitions parses, and obtains the destination address of data packet, i.e. purpose IP address; The corresponding numerical value of the purpose IP address, i.e. the first numerical value are calculated according to purpose IP address;If what is obtained is multiple data packets, need Calculate the corresponding numerical value of multiple data packets.
S503, it is matched according to preconfigured rule list, the determining view networking to match with first numerical value takes Business device, wherein the preconfigured rule list includes that the data segment of destination address is corresponding with the view networking number of server Relationship, the view networked server and view networking number correspond;
Specifically, after resolution unit gets corresponding first numerical value of data packet, that is, packet rs destination is got The corresponding IP value in address, matching unit match according to the preconfigured rule list for being stored in terminal device, determination with IP value View network NAT server.
S504, the data packet is sent to the view networked server.
Transmission unit delivers a packet to the view networking NAT server to match, by view networking NAT server Turn to realize the communication of terminal device and internet.
Illustratively, terminal device Agent sends two data packets, data packet 1 and data packet 2 simultaneously, to this two A data packet carries out analytical Calculation, obtains the first IP value of data packet 1, the 2nd IP value of data packet 2;
Matching unit gets the corresponding VNAT1 of the first IP value according to preconfigured rule list, and the 2nd IP value is corresponding VNAT2;
Transmission unit, which passes through data packet 1, is sent to VNAT1 depending on networking, while data packet 2 being passed through and is sent to depending on networking VNAT2 realizes the communication of terminal device and internet by the transfer of VNAT1 and VNAT2.
It is also possible to the terminal device of at least one while data packet occurs, and the IP value that these data packets are calculated is just It is matched to the same view networked server well, the matching process of specific each data packet as it appears from the above, no longer discuss herein.
The embodiment of the present invention provides a kind of data transmission method, by the data segment and server that are pre-configured with destination address View networking number corresponding relationship rule list, according to the mesh at least one data packet to be sent that terminal device parses The corresponding numerical value in address, the view the Internet services to match with destination address numerical value are matched in preconfigured rule list Device, terminal device send at least one data packet and carry out data relay to corresponding view networked server, realize view networking eventually The communication of end equipment and internet terminal, the data that can be carried out between multiple terminal devices and multiple view networked servers pass It is defeated, it improves work efficiency, increases fault-tolerance.
Further embodiment of this invention does further supplementary explanation to method provided by the above embodiment.
On the basis of the above embodiments, optionally, described that analytical Calculation is carried out to the data packet, obtain the first number Value, comprising:
The data packet is parsed, the destination address of the data packet is obtained;
The destination address is converted, the corresponding decimal value of the destination address is obtained;
The decimal value is determined as first numerical value.
Specifically, resolution unit parses the data packet of acquisition, obtains the destination address for including in data packet, also It is purpose IP address;The purpose IP address is converted, the corresponding numerical value of purpose IP address is obtained, can be any system Conversion, such as binary system, octal system, the decimal system or hexadecimal etc..The decimal system is preferably carried out in embodiments of the present invention Conversion, is determined as the first numerical value, that is, IP value for obtained decimal value.
Specifically, described to convert the destination address, the corresponding decimal value of the destination address is obtained, is wrapped It includes:
By the first segment numerical value of the destination address multiplied by the first preset value, second segment numerical value is multiplied by the second preset value, and Three number of segment values obtain the corresponding decimal value of the destination address multiplied by third preset value, the summation of the 4th number of segment value.
Illustratively, such as destination IP be address is 10.0.0.1, is changed into decimal value, algorithm are as follows:
10*(256*256*256)+0*(256*256)+0*256+1;
That is: the second preset value of second segment * of IP sections of+IP sections of the first preset value of first segment * (i.e. 256*256*256) is (i.e. 256*256) the 4th section of+IP sections of+IP sections of third section * third preset value (i.e. 256);
Optionally, described to be matched according to preconfigured rule list, the determining view to match with first numerical value Networked server, comprising:
In preconfigured rule list, the data segment of the destination address locating for first numerical value is determined;
Search view networking number corresponding with the data segment of the destination address;
By it is described depending on networking number it is corresponding view networked server be determined as the view to match with first numerical value network Server.
Illustratively, what is stored in preconfigured rule list is the corresponding relationship of view networking number with IP sections, such as VNAT1, regard networking number be 001 (actually be 20 numerical value, indicated herein with 001), corresponding to IP decimal value Section 1~10000;
VNAT2, regard networking number be 002 (actually be 20 numerical value, indicated herein with 002), corresponding to IP ten Binary value section is 16589135~16599136;
Fig. 7 is a kind of structural block diagram of data transmission of the invention, as shown in Figure 7, the specific steps are as follows:
S701, Agent obtain data packet to be sent and parse to it, obtain IP value
S702, the matching rule of number of being networked by the view of IP value and VNAT, find corresponding VNAT server.
Illustratively, terminal device carries out analytical Calculation to the data packet of acquisition, and it is corresponding metric to obtain data packet Numerical value, that is, IP value be 500, then searched in rule list, the IP decimal data value section that 500 looked for are located at be 1~ 10000, and the IP sections of corresponding networking number that regards is 001, then selects to regard and network number as 001 corresponding VNAT1;By data Packet realizes the data communication of terminal device and internet by the transfer of VNAT1 by being sent to VNAT1 depending on networking.
Data transfer mode provided in an embodiment of the present invention makes view networking more adapt to the working method of internet, protects simultaneously The technical characterstic for staying view to network distributes VNAT for each different view networked terminals equipment, the parallel fortune of whole system may be implemented Row increases working efficiency, increases fault-tolerance.
Referring to Fig. 8, a kind of structural schematic diagram of data packet transfer device embodiment of the invention is shown, which can be with Applied in view networking, following module can specifically include: obtaining module 801, parsing module 802, matching module 803 and send Module 804, in which:
Module 801 is obtained for obtaining at least one data packet to be sent;
Parsing module 802 is used to carry out analytical Calculation to the data packet, the first numerical value is obtained, wherein first numerical value For the corresponding numerical value of destination address of the data packet;
For being matched according to preconfigured rule list, determination matches matching module 803 with first numerical value View networked server, wherein the preconfigured rule list include destination address data segment and server view network The corresponding relationship of number, the view networked server and view networking number correspond;
Sending module 804 is for sending at least one described data packet to the corresponding view networked server.
It should be noted that the modules in the embodiment of the present invention respectively correspond each unit in embodiment of the method.
Data transmission device provided in an embodiment of the present invention, by the data segment and server that are pre-configured with destination address Depending on the rule list of the corresponding relationship for number of networking, according to the purpose at least one data packet to be sent that terminal device parses The corresponding numerical value in address matches the view networked server to match with destination address numerical value in preconfigured rule list, Terminal device sends at least one data packet and carries out data relay to corresponding view networked server, and realization is set depending on networked terminals The standby communication with internet terminal, the data that can be carried out between multiple terminal devices and multiple view networked servers are transmitted, are mentioned High working efficiency, increases fault-tolerance.
Further embodiment of this invention does further supplementary explanation to device provided by the above embodiment.
On the basis of the above embodiments, optionally, the parsing module is used for:
The data packet is parsed, the destination address of the data packet is obtained;
The destination address is converted, the corresponding decimal value of the destination address is obtained;
The decimal value is determined as first numerical value.
Optionally, the parsing module is specifically used for:
By the first segment numerical value of the destination address multiplied by the first preset value, second segment numerical value is multiplied by the second preset value, and Three number of segment values obtain the corresponding decimal value of the destination address multiplied by third preset value, the summation of the 4th number of segment value.
Optionally, the matching module is used for:
In preconfigured rule list, the data segment of the destination address locating for first numerical value is determined;
Search view networking number corresponding with the data segment of the destination address;
By it is described depending on networking number it is corresponding view networked server be determined as the view to match with first numerical value network Server.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
It should be noted that each enforceable mode can individually be implemented in the present embodiment, it can also be in the feelings not conflicted It is combined in any combination under condition and implements the application without limitation.
Data transmission device provided in an embodiment of the present invention, by the data segment and server that are pre-configured with destination address Depending on the rule list of the corresponding relationship for number of networking, according to the purpose at least one data packet to be sent that terminal device parses The corresponding numerical value in address matches the view networked server to match with destination address numerical value in preconfigured rule list, Terminal device sends at least one data packet and carries out data relay to corresponding view networked server, and realization is set depending on networked terminals The standby communication with internet terminal, the data that can be carried out between multiple terminal devices and multiple view networked servers are transmitted, are mentioned High working efficiency, increases fault-tolerance.
Yet another embodiment of the invention provides a kind of terminal device, for executing method provided by the above embodiment.
Fig. 9 is a kind of structural schematic diagram of terminal device of the invention, as shown in figure 9, being equipped on the terminal device Agent client, the terminal device include various set-top boxes, and encoding board, memory etc., which includes: at least one Processor 91 and memory 92;The memory stores computer program;At least one described processor executes the memory The computer program of storage, to realize method provided by the above embodiment.
Terminal device provided in this embodiment, the view networking number of data segment and server by being pre-configured with destination address The destination address of the rule list of the corresponding relationship of code, at least one data packet to be sent parsed according to terminal device corresponds to Numerical value, the view networked server to match with destination address numerical value, terminal device are matched in preconfigured rule list It sends at least one data packet and carries out data relay to corresponding view networked server, realize view networked terminals equipment and interconnection The communication of network termination, the data that can be carried out between multiple terminal devices and multiple view networked servers are transmitted, and work is improved Efficiency increases fault-tolerance.
The another embodiment of the application provides a kind of computer readable storage medium, stores in the computer readable storage medium There is computer program, the computer program is performed the method for realizing that any of the above-described embodiment provides.
According to the computer readable storage medium of the present embodiment, by the data segment and server that are pre-configured with destination address View networking number corresponding relationship rule list, according to the mesh at least one data packet to be sent that terminal device parses The corresponding numerical value in address, the view the Internet services to match with destination address numerical value are matched in preconfigured rule list Device, terminal device send at least one data packet and carry out data relay to corresponding view networked server, realize view networking eventually The communication of end equipment and internet terminal, the data that can be carried out between multiple terminal devices and multiple view networked servers pass It is defeated, it improves work efficiency, increases fault-tolerance.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Above to a kind of data transmission method provided by the present invention and a kind of data transmission device, detailed Jie has been carried out It continues, used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only It is to be used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, according to this hair Bright thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not manage Solution is limitation of the present invention.

Claims (10)

1. a kind of data pack transmission method, which is characterized in that the method is applied in view networking, comprising:
Obtain at least one data packet to be sent;
Analytical Calculation is carried out to the data packet, obtains the first numerical value, wherein first numerical value is the purpose of the data packet The corresponding numerical value in address;
It is matched according to preconfigured rule list, the determining view networked server to match with first numerical value, wherein The preconfigured rule list includes pair of the data segment of packet rs destination address and the view networking number of view networked server It should be related to, the view networked server and view networking number correspond;
At least one described data packet is sent to the corresponding view networked server.
2. obtaining the method according to claim 1, wherein described carry out analytical Calculation to the data packet One numerical value, comprising:
The data packet is parsed, the destination address of the data packet is obtained;
The destination address is converted, the corresponding decimal value of the destination address is obtained;
The decimal value is determined as first numerical value.
3. according to the method described in claim 2, obtaining described it is characterized in that, described convert the destination address The corresponding decimal value of destination address, comprising:
By the first segment numerical value of the destination address multiplied by the first preset value, second segment numerical value is multiplied by the second preset value, third section Numerical value obtains the corresponding decimal value of the destination address multiplied by third preset value, the summation of the 4th number of segment value.
4. the method according to claim 1, wherein described matched according to preconfigured rule list, really The fixed view networked server to match with first numerical value, comprising:
In preconfigured rule list, the data segment of the destination address locating for first numerical value is determined;
Search view networking number corresponding with the data segment of the destination address;
By the view the Internet services for being determined as depending on networked server matching with first numerical value corresponding depending on networking number Device.
5. a kind of data packet transfer device, which is characterized in that described device is applied in view networking, comprising:
Module is obtained, for obtaining at least one data packet to be sent;
Parsing module obtains the first numerical value, wherein first numerical value is described for carrying out analytical Calculation to the data packet The corresponding numerical value of the destination address of data packet;
Matching module, for being matched according to preconfigured rule list, the determining view to match with first numerical value joins Network server, wherein the preconfigured rule list includes the data segment of destination address and the view networking number of server Corresponding relationship, the view networked server and view networking number correspond;
Sending module, for sending at least one described data packet to the corresponding view networked server.
6. device according to claim 5, which is characterized in that the parsing module is used for:
The data packet is parsed, the destination address of the data packet is obtained;
The destination address is converted, the corresponding decimal value of the destination address is obtained;
The decimal value is determined as first numerical value.
7. device according to claim 6, which is characterized in that the parsing module is specifically used for:
By the first segment numerical value of the destination address multiplied by the first preset value, second segment numerical value is multiplied by the second preset value, third section Numerical value obtains the corresponding decimal value of the destination address multiplied by third preset value, the summation of the 4th number of segment value.
8. device according to claim 5, which is characterized in that the matching module is used for:
In preconfigured rule list, the data segment of the destination address locating for first numerical value is determined;
Search view networking number corresponding with the data segment of the destination address;
By the view the Internet services for being determined as depending on networked server matching with first numerical value corresponding depending on networking number Device.
9. a kind of terminal device characterized by comprising at least one processor and memory;
The memory stores computer program;At least one described processor executes the computer journey of the memory storage Sequence, to realize method of any of claims 1-4.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer journey in the computer readable storage medium Sequence, the computer program, which is performed, realizes method of any of claims 1-4.
CN201910717828.1A 2019-08-05 2019-08-05 Data packet transmission method and device Active CN110519009B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910717828.1A CN110519009B (en) 2019-08-05 2019-08-05 Data packet transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910717828.1A CN110519009B (en) 2019-08-05 2019-08-05 Data packet transmission method and device

Publications (2)

Publication Number Publication Date
CN110519009A true CN110519009A (en) 2019-11-29
CN110519009B CN110519009B (en) 2022-01-11

Family

ID=68625090

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910717828.1A Active CN110519009B (en) 2019-08-05 2019-08-05 Data packet transmission method and device

Country Status (1)

Country Link
CN (1) CN110519009B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131398A (en) * 2019-12-02 2020-05-08 视联动力信息技术股份有限公司 Method, device, electronic equipment and medium based on direct communication of video network
CN111224968A (en) * 2019-12-31 2020-06-02 北京同舟医联网络科技有限公司 Secure communication method for randomly selecting transfer server
CN111556374A (en) * 2020-03-18 2020-08-18 视联动力信息技术股份有限公司 Method and device for accessing application server and video networking system
CN113612963A (en) * 2021-07-27 2021-11-05 深圳市捷视飞通科技股份有限公司 Data forwarding method and device, computer equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120007119A (en) * 2010-07-14 2012-01-20 주식회사 오픈비지니스솔루션코리아 Video streaming control method using network
US20140348076A1 (en) * 2013-05-27 2014-11-27 Quanta Computer Inc. Communication system and method
CN105933437A (en) * 2016-06-15 2016-09-07 乐视控股(北京)有限公司 Server recommending method and device
CN106572197A (en) * 2015-10-10 2017-04-19 阿里巴巴集团控股有限公司 Network address conversion method, apparatus and system thereof
US20170272274A1 (en) * 2016-03-21 2017-09-21 Thomson Licensing Method and apparatus for interconnection between networks
CN107968928A (en) * 2016-10-19 2018-04-27 北京视联动力国际信息技术有限公司 A kind of method and apparatus of terminal communication
CN108063741A (en) * 2016-11-07 2018-05-22 北京视联动力国际信息技术有限公司 A kind of transport protocol conversion method and apparatus
CN108390954A (en) * 2018-03-26 2018-08-10 新华三信息安全技术有限公司 A kind of message transmitting method and equipment
CN108737768A (en) * 2017-04-13 2018-11-02 北京视联动力国际信息技术有限公司 A kind of monitoring method and monitoring device based on monitoring system
CN109547417A (en) * 2018-10-30 2019-03-29 视联动力信息技术股份有限公司 Code stream transmission method and device
CN109788314A (en) * 2018-12-18 2019-05-21 视联动力信息技术股份有限公司 A kind of method and apparatus of video stream data transmission

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120007119A (en) * 2010-07-14 2012-01-20 주식회사 오픈비지니스솔루션코리아 Video streaming control method using network
US20140348076A1 (en) * 2013-05-27 2014-11-27 Quanta Computer Inc. Communication system and method
CN106572197A (en) * 2015-10-10 2017-04-19 阿里巴巴集团控股有限公司 Network address conversion method, apparatus and system thereof
US20170272274A1 (en) * 2016-03-21 2017-09-21 Thomson Licensing Method and apparatus for interconnection between networks
CN105933437A (en) * 2016-06-15 2016-09-07 乐视控股(北京)有限公司 Server recommending method and device
CN107968928A (en) * 2016-10-19 2018-04-27 北京视联动力国际信息技术有限公司 A kind of method and apparatus of terminal communication
CN108063741A (en) * 2016-11-07 2018-05-22 北京视联动力国际信息技术有限公司 A kind of transport protocol conversion method and apparatus
CN108737768A (en) * 2017-04-13 2018-11-02 北京视联动力国际信息技术有限公司 A kind of monitoring method and monitoring device based on monitoring system
CN108390954A (en) * 2018-03-26 2018-08-10 新华三信息安全技术有限公司 A kind of message transmitting method and equipment
CN109547417A (en) * 2018-10-30 2019-03-29 视联动力信息技术股份有限公司 Code stream transmission method and device
CN109788314A (en) * 2018-12-18 2019-05-21 视联动力信息技术股份有限公司 A kind of method and apparatus of video stream data transmission

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131398A (en) * 2019-12-02 2020-05-08 视联动力信息技术股份有限公司 Method, device, electronic equipment and medium based on direct communication of video network
CN111131398B (en) * 2019-12-02 2022-12-23 视联动力信息技术股份有限公司 Method, device, electronic equipment and medium based on direct communication of video network
CN111224968A (en) * 2019-12-31 2020-06-02 北京同舟医联网络科技有限公司 Secure communication method for randomly selecting transfer server
CN111224968B (en) * 2019-12-31 2022-01-04 北京安盛联合科技有限公司 Secure communication method for randomly selecting transfer server
CN111556374A (en) * 2020-03-18 2020-08-18 视联动力信息技术股份有限公司 Method and device for accessing application server and video networking system
CN111556374B (en) * 2020-03-18 2023-09-05 视联动力信息技术股份有限公司 Method and device for accessing application server and video networking system
CN113612963A (en) * 2021-07-27 2021-11-05 深圳市捷视飞通科技股份有限公司 Data forwarding method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110519009B (en) 2022-01-11

Similar Documents

Publication Publication Date Title
CN107995069B (en) A kind of method and apparatus of terminal video push
CN110519009A (en) A kind of data pack transmission method and device
CN108063741A (en) A kind of transport protocol conversion method and apparatus
CN108965224A (en) A kind of method and apparatus of video on demand
CN108632238A (en) A kind of method and apparatus of permission control
CN109151058A (en) A kind of data transmission method and device
CN109996086A (en) A kind of view networking service method for inquiring status and device
CN108880851A (en) A kind of method and interactive system that configuration updates
CN110198345A (en) A kind of data request method, system and device and storage medium
CN108989837A (en) A kind of method and apparatus of picture interception
CN110022295A (en) A kind of method and view networked system of data transmission
CN108111474A (en) A kind of sound mixing method and device
CN108307212A (en) A kind of file order method and device
CN109743265A (en) A kind of method and apparatus obtaining certificate information
CN109347930A (en) A kind of task processing method and device
CN109358760A (en) A kind of mouse control method and device
CN109194901A (en) A kind of method for processing video frequency and device based on view networking
CN110430168A (en) A kind of method and apparatus of data compression
CN110445837A (en) High concurrent group system and building method, high concurrent request processing method and device
CN109525635A (en) A kind of acquisition methods and system of memory usage
CN109698859A (en) A kind of date storage method and device based on view networking
CN109067895A (en) A kind of method and apparatus remotely controlled
CN108881140A (en) A kind of document down loading method and device based on view networking
CN110049069A (en) A kind of data capture method and device
CN109787837A (en) The configuration method and device of a kind of view networking port

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant