CN110417792A - Communication means, system, gateway and storage medium - Google Patents

Communication means, system, gateway and storage medium Download PDF

Info

Publication number
CN110417792A
CN110417792A CN201910712646.5A CN201910712646A CN110417792A CN 110417792 A CN110417792 A CN 110417792A CN 201910712646 A CN201910712646 A CN 201910712646A CN 110417792 A CN110417792 A CN 110417792A
Authority
CN
China
Prior art keywords
view
gateway
internet
network packet
port
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
CN201910712646.5A
Other languages
Chinese (zh)
Other versions
CN110417792B (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 CN201910712646.5A priority Critical patent/CN110417792B/en
Publication of CN110417792A publication Critical patent/CN110417792A/en
Application granted granted Critical
Publication of CN110417792B publication Critical patent/CN110417792B/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
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Landscapes

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

Abstract

The present invention provides a kind of communication means, system, gateway and storage mediums.Wherein, if communication means includes: that gateway receives the first view networking message that view networked terminals are sent, first set of words information then is added for the first view networking message, obtains the first interconnection network packet, the first interconnection network packet is sent by internet;If gateway receives the second interconnection network packet from internet, the second socket information in the second interconnection network packet is deleted, obtains the second view networking message, is sent to the view networked terminals depending on networking message for described second;It is in non-view networked environment depending on networked terminals.The present invention carries out the protocol conversion between internet and view networking by gateway, to realize in non-depending on can also be communicated by internet depending on networked terminals in networked environment, the limitation for reducing view networked terminals has widened the use scope of view networked terminals.

Description

Communication means, system, gateway and storage medium
Technical field
The present invention relates to fields of communication technology, are situated between more particularly to a kind of communication means, system, gateway and storage Matter.
Background technique
It is the important milestone of network Development depending on networking, is a real-time network, can be realized HD video real-time Transmission, Push numerous Internet applications to HD video, high definition is face-to-face.Real-time high-definition video switching technology is used depending on networking, it can be with By required service in a network platform, as HD video meeting, video monitoring, Intellectualized monitoring analysis, emergency command, Digital broadcast television, delay TV, the Web-based instruction, live broadcast, VOD program request, TV Mail, individual character record (PVR), Intranet The services such as tens of kinds of videos, voice, picture, text, communication, the data such as (managing by oneself) channel, intelligent video Broadcast Control, information publication It all is incorporated into a system platform, realizes that high-definition quality video plays by TV or computer.
In view networking, need depending on networked terminals by being communicated depending on networking.But belong to dedicated network depending on networking, It is usually covering internet in the region of family etc, and is not to be available view networked terminals to carry out in internet environment Communication, therefore the use limitation for regarding networked terminals is larger, affects the universal use of view networked terminals.
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 communication means, system, gateway and the storage medium to solve the above problems.
In a first aspect, the method is applied in communication system, described the embodiment of the invention discloses a kind of communication means Communication system includes that view networked terminals and gateway, the view networked terminals are in non-view networked environment;The method packet It includes:
It is described first if the gateway receives the first view networking message that the view networked terminals are sent First set of words information is added depending on networking message, the first interconnection network packet is obtained, first internet is sent by internet Message;
If the gateway receives the second interconnection network packet from internet, second internet is deleted The second socket information in message obtains the second view networking message, is sent to the view depending on networking message for described second and joins Network termination.
Second aspect, the embodiment of the invention discloses a kind of communication means, and the method is applied in communication system, described Communication system includes view networked terminals, the first gateway, the second gateway and view networked server, the view networked terminals In non-view networked environment;The described method includes:
It is described if first gateway receives the first view networking message that the view networked terminals are sent First view networking message adds first set of words information, obtains the first interconnection network packet, is interconnected by internet by described first Network packet is sent to second gateway;
If second gateway receives the first interconnection network packet, the first interconnection network packet is deleted In the first set of words information, obtain it is described first view networking message, by described first view networking message be sent to described in Depending on networked server;
If second gateway receives the second view networking message that the view networked server is sent, for institute It states the second view networking message and adds the second socket information, obtain the second interconnection network packet, it is mutual by described second by internet Networking message is sent to first gateway;
If first gateway receives the second interconnection network packet, the second interconnection network packet is deleted In second socket information, obtain it is described second view networking message, by described second view networking message be sent to described in Depending on networked terminals.
Optionally, the first set of words information includes the IP address and port numbers of second gateway;Described Two socket informations include the IP address and port numbers of first gateway.
Optionally, first gateway includes the first view networking port and the first Internet Port;The method is also Include: the first gateway creation first port listening thread, and initializes the first port listening thread;Described One gateway starts the first port listening thread, monitors the first view networking port respectively and receives view networking message, First Internet Port receives interconnection network packet.
Optionally, the step of initialization first port listening thread, comprising: be directed to first internet end Mouthful, configure the IP address and port numbers of second gateway;For the first view networking port, the view networking is configured The view networking MAC Address and port numbers of terminal.
Optionally, second gateway includes the second view networking port and the second Internet Port;The method is also Include: the second gateway creation second port listening thread, and initializes the second port listening thread;Described Two gateways start the second port listening thread, monitor the second view networking port respectively and receive view networking message, Second Internet Port receives interconnection network packet.
Optionally, the step of initialization second port listening thread, comprising: for the second view networking end Mouthful, configure the view networking MAC Address and port numbers of the view networked server.
The third aspect, the embodiment of the invention discloses a kind of gateways, comprising:
First conversion module, if the first view networking message sent for receiving view networked terminals, is described the One view networking message adds first set of words information, obtains the first interconnection network packet, sends first interconnection by internet Network packet;
Second conversion module, if deleting described second for receiving the second interconnection network packet from internet The second socket information in network packet is interconnected, the second view networking message is obtained, is sent to institute depending on networking message for described second State view networked terminals;
Wherein, the view networked terminals are in non-view networked environment.
Fourth aspect, the embodiment of the invention discloses a kind of communication system, the communication system includes view networked terminals, the One gateway, the second gateway and view networked server, the view networked terminals are in non-view networked environment;
First gateway includes: the first conversion processing module, if for receiving the view networked terminals hair The the first view networking message sent, then add first set of words information for the first view networking message, obtain the first internet report The first interconnection network packet is sent to second gateway by internet by text;
Second gateway includes: the second conversion processing module, if for receiving first internet report Text then deletes the first set of words information in the first interconnection network packet, the first view networking message is obtained, by institute It states first and is sent to the view networked server depending on networking message;Third conversion processing module, if for receiving the view The second view networking message that networked server is sent, then add the second socket information for the second view networking message, obtain The second interconnection network packet is sent to first gateway by internet by the second interconnection network packet;
First gateway further include: the 4th conversion processing module, if for receiving second internet Message then deletes second socket information in the second interconnection network packet, obtains the second view networking message, will Described second is sent to the view networked terminals depending on networking message.
5th aspect, the embodiment of the invention discloses a kind of gateways, comprising: one or more processors;Thereon It is stored with one or more machine readable medias of instruction;When described instruction is executed by one or more of processors, make The processor is obtained to perform the steps of
If receiving the first view networking message that view networked terminals are sent, for the first view networking message addition the One socket information obtains the first interconnection network packet, sends the first interconnection network packet by internet;
If receiving the second interconnection network packet from internet, second in the second interconnection network packet is deleted Socket information, obtains the second view networking message, is sent to the view networked terminals depending on networking message for described second;
Wherein, the view networked terminals are in non-view networked environment.
6th aspect, the embodiment of the invention discloses a kind of computer readable storage mediums, are stored thereon with computer journey Sequence, the program perform the steps of when being executed by processor
If receiving the first view networking message that view networked terminals are sent, for the first view networking message addition the One socket information obtains the first interconnection network packet, sends the first interconnection network packet by internet;
If receiving the second interconnection network packet from internet, second in the second interconnection network packet is deleted Socket information, obtains the second view networking message, is sent to the view networked terminals depending on networking message for described second;
Wherein, the view networked terminals are in non-view networked environment.
In the embodiment of the present invention, in a communications system includes view networked terminals and gateway, be in non-depending on networked terminals Depending in networked environment.It is the if gateway receives the first view networking message that view networked terminals are sent in communication One view networking message adds first set of words information, obtains the first interconnection network packet, sends the first internet report by internet Text;If gateway receives the second interconnection network packet from internet, second in the second interconnection network packet is deleted Socket information, obtains the second view networking message, is sent to view networked terminals depending on networking message for second.It follows that this hair By the protocol conversion between gateway progress internet and view networking in bright embodiment, to realize in non-view networking ring Can also be communicated by internet in border depending on networked terminals reduces the limitation of view networked terminals, has widened view connection The use scope of network termination.
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 communication means of the embodiment of the present invention one;
Fig. 6 is a kind of architecture diagram of communication system of the embodiment of the present invention two;
Fig. 7 is a kind of step flow chart of communication means of the embodiment of the present invention two;
Fig. 8 is a kind of step flow chart of communication means of the embodiment of the present invention three;
Fig. 9 is a kind of processing schematic of port snoop thread of the embodiment of the present invention three;
Figure 10 is a kind of structural block diagram of gateway of the embodiment of the present invention four;
Figure 11 is a kind of structural block diagram of communication system of the embodiment of the present invention five.
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.
Embodiment in order to enable those skilled in the art to better understand the present invention is introduced to depending on networking below:
Depending on networking, applied portion of techniques is as described below:
Network technology (Network Technology)
Traditional ethernet (Ethernet) is improved depending on the network technology innovation networked, with potential huge on network First video flow.It is exchanged different from simple network packet packet switch (Packet Switching) or lattice network (Circuit Switching) meets Streaming demand using Packet Switching depending on networking technology.Depending on skill of networking Art has flexible, the simple and low price of packet switch, is provided simultaneously with the quality and safety assurance of circuit switching, realizes the whole network friendship Change the seamless connection of formula virtual circuit and data format.
Switching technology (Switching Technology)
Two advantages of asynchronous and packet switch that Ethernet is used depending on networking eliminate Ethernet under the premise of complete compatible and lack It falls into, has the end-to-end seamless connection of the whole network, direct user terminal, directly carrying IP data packet.User data is in network-wide basis It is not required to any format conversion.It is the more advanced form of Ethernet depending on networking, is a real-time exchange platform, can be realized at present mutually The whole network large-scale high-definition realtime video transmission that networking cannot achieve pushes numerous network video applications to high Qinghua, unitizes.
Server technology (Server Technology)
It is different from traditional server, its Streaming Media depending on the server technology in networking and unified video platform Transmission be built upon it is connection-oriented on the basis of, data-handling capacity is unrelated with flow, communication time, single network layer energy Enough transmitted comprising signaling and data.For voice and video business, handled depending on networking and unified video platform Streaming Media Complexity many simpler than data processing, efficiency substantially increase hundred times or more than traditional server.
Reservoir technology (Storage Technology)
The ultrahigh speed reservoir technology of unified video platform in order to adapt to the media content of vast capacity and super-flow and Using state-of-the-art real time operating system, the programme information in server instruction is mapped to specific hard drive space, media Content is no longer pass through server, and moment is directly delivered to user terminal, and user waits typical time less than 0.2 second.It optimizes Sector distribution greatly reduces the mechanical movement of hard disc magnetic head tracking, and resource consumption only accounts for the 20% of the internet ad eundem IP, but The concurrent flow greater than 3 times of traditional disk array is generated, overall efficiency promotes 10 times or more.
Network security technology (Network Security Technology)
Depending on the structural design networked by servicing independent licence system, equipment and the modes such as user data is completely isolated every time The network security problem that puzzlement internet has thoroughly been eradicated from structure, does not need antivirus applet, firewall generally, has prevented black The attack of visitor and virus, structural carefree secure network is provided for user.
It services innovative technology (Service Innovation Technology)
Business and transmission are fused together by unified video platform, whether single user, private user or a net The sum total of network is all only primary automatic connection.User terminal, set-top box or PC are attached directly to unified video platform, obtain rich The multimedia video service of rich colorful various forms.Unified video platform is traditional to substitute with table schema using " menu type " Complicated applications programming, considerably less code, which can be used, can be realized complicated application, realize the new business innovation of " endless ".
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 association turns gateway), terminal (including various set-top boxes, encoding board, memory etc.).Metropolitan Area Network (MAN) can be divided on the whole depending on networking (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 association turns 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 module, are forwarded: 1) end if meeting the following conditions It is less than that mouth sends caching;2) the queue package counting facility is greater than zero.Disk array module 204 mainly realizes the control to hard disk, packet Include the operation such as initialization, read-write to hard disk;CPU module 203 be mainly responsible for access switch, terminal (not shown) it Between 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 304 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, may include two kinds of situations:
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 308 is configured by CPU module 304, 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 mesh way 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.
Embodiment one
The communication system of the embodiment of the present invention may include view networked terminals and gateway, wherein being in depending on networked terminals In non-view networked environment.Wherein, the non-networked environment that regards can be internet environment, such as IP (Internet Protocol, net The agreement interconnected between network) network.
The embodiment of the present invention mainly solving the technical problems that how to realize view networked terminals in non-view networked environment into Row communication.By the way that gateway is arranged, the protocol conversion between view networking protocol and Internet protocol is may be implemented in gateway, To realize the fusion of view networking and internet.
Regarding networked terminals can be various meeting set-top boxes, videophone set-top box, educational surgery demonstration set-top box etc..Gateway is set Standby can be VPN-Hub (Virtual Private Network-Hub, Virtual Private Network hub, abbreviation VHub), CPE (Customer Premise Equipment, customer premises equipment) etc..
Referring to Fig. 5, a kind of step flow chart of communication means of the embodiment of the present invention one is shown.
The communication means of the embodiment of the present invention may comprise steps of:
It step 501, is described if gateway receives the first view networking message that the view networked terminals are sent First view networking message adds first set of words information, obtains the first interconnection network packet, sends described first mutually by internet Networking message.
Gateway is direct-connected by cable with view networked terminals, and the first view connection can be sent to gateway depending on networked terminals Network packet.Since gateway accesses internet, gateway is converted to the first internet depending on networking message first Message is later sent the first interconnection network packet by internet.The view networking message of networked terminals will be regarded to realize The purpose sent by internet.
In a kind of optional embodiment, gateway can be carried out in internet by socket (socket) mode Communication.Therefore, it may include: as described that gateway, which regards the step of networking message is converted to the first interconnection network packet for first, One view networking message adds first set of words information, obtains the first interconnection network packet.First set of words information may include The IP address and port numbers for the target device that first interconnection network packet is sent to by gateway, the IP of foundation target device Location and port numbers can be using the first view networking messages as one of the first interconnection network packet load transmission into target device.
Step 502, if gateway receives the second interconnection network packet from internet, described second is deleted mutually Network message in the second socket information, obtain the second view networking message, by described second view networking message be sent to described in Depending on networked terminals.
Equipment in internet is if it is intended to be sent to view networked terminals for the second interconnection network packet, then first based on internet First interconnection network packet is sent in the gateway of view networked terminals connection.If gateway is received from interconnection Second interconnection network packet, then be converted to the second view networking message, the second view networked later by the second interconnection network packet of net Message is sent to view networked terminals.It is sent to what is carried in the interconnection network packet from internet depending on networking message to realize Depending on the purpose of networked terminals.
In a kind of optional embodiment, the equipment in internet can interconnect network packet for second by socket mode It is sent to gateway.Therefore, the second interconnection network packet is converted to second and can wrap depending on the step of networking message by gateway It includes: deleting the second socket information in the second interconnection network packet, obtain the second view networking message.Second socket information It may include the IP address and port numbers of gateway, the equipment in internet can according to the IP address and port numbers of gateway Using will carry the second view networking message as load the second internet message transmissions into gateway.
The protocol conversion between internet and view networking is carried out by gateway in the embodiment of the present invention, thus at realization In non-depending on can also be communicated by internet in networked environment depending on networked terminals, the limitation of view networked terminals is reduced Property, widen the use scope of view networked terminals.
Embodiment two
In view networking, various view networking services are managed collectively by view networked server.It is various to carry out regarding networking service Equipment will be registered to depending on that can carry out regular traffic in networked server.The backsight networked server that succeeds in registration is setting for registration Back-up is with information such as view networking number, view networking MAC (Media Access Control, media access control) addresses.Depending on connection Network server itself also has view networking MAC Address.
In the embodiment of the present invention, view networked server, In are accessed in internet environment in order to enable to regard networked terminals Depending on networked terminals and depending on the first gateway and the second gateway are arranged between networked server.Referring to Fig. 6, this hair is shown A kind of architecture diagram of communication system of bright embodiment two.It will be appreciated from fig. 6 that view networked terminals are connect with the first gateway, depending on connection Network server and the connection of the second gateway, the first gateway and the second gateway access internet.First gateway is set It is standby internet to be accessed by cable.Second gateway can access internet, interchanger and the second net by interchanger It closes and firewall is set between equipment.First gateway and the second gateway pass through internet communication.
Wherein, it can be registered to depending on networked terminals, the first gateway, the second gateway in view networked server, It registers backsight networked server and distributes the information such as view networking number, view networking MAC Address as it.First gateway is as client The gateway at end, gateway of second gateway as server-side.
Referring to Fig. 7, a kind of step flow chart of communication means of the embodiment of the present invention two is shown.
The communication means of the embodiment of the present invention may comprise steps of:
Step 701, if the first gateway receives the first view networking message that the view networked terminals are sent, for The first view networking message adds first set of words information, the first interconnection network packet is obtained, by internet by described first Interconnection network packet is sent to second gateway.
First gateway is direct-connected by cable with view networked terminals, can send to the first gateway depending on networked terminals First view networking message.Since the first gateway is communicated with the second gateway by internet, the first gateway Equipment is converted to the first interconnection network packet depending on networking message first, is later sent the first interconnection network packet by internet To the second gateway.
In a kind of optional embodiment, socket mode can be passed through between the first gateway and the second gateway It is communicated.Therefore, regarding the step of networking message is converted to the first interconnection network packet for described first may include: as described the One view networking message adds first set of words information, obtains the first interconnection network packet.First set of words information includes second The IP address and port numbers of gateway, IP address and port numbers according to the second gateway can be by the first view networking messages As a kind of load transmission into the second gateway.
Step 702, if the second gateway receives the first interconnection network packet, first internet is deleted The first set of words information in message obtains the first view networking message, described first is sent to depending on networking message The view networked server.
Second gateway can receive the first interconnection network packet that above-mentioned first gateway is sent by internet. Second gateway is communicated with being networked depending on networked server by view, therefore the second gateway is also the first internet Message is converted to the first view networking message again, later by being sent to view the Internet services depending on networking message for first depending on networking Device.
In a kind of optional embodiment, the first interconnection network packet is converted to described first can depending on the step of networking message To include: the first set of words information deleted in the first interconnection network packet, the first view networking message is obtained.
Step 701 and step 702 realize the communication from view networked terminals to view networked server direction.
Step 703, if the second gateway receives the second view networking message that the view networked server is sent, The second socket information is added for the second view networking message, obtains the second interconnection network packet, by internet by described the Two interconnection network packets are sent to first gateway.
The second view networking message can be sent to the second gateway depending on networked server.Due to the second gateway and the One gateway is communicated by internet, therefore the second gateway is converted to the second interconnection depending on networking message second Second interconnection network packet is sent to the first gateway by internet later by network packet.
In a kind of optional embodiment, socket mode can be passed through between the second gateway and the first gateway It is communicated.Therefore, regarding the step of networking message is converted to the second interconnection network packet for described second may include: as described the Two view networking messages add the second socket information, obtain the second interconnection network packet.Second socket information includes described The IP address and port numbers of first gateway, IP address and port numbers according to the first gateway can network the second view Message is as a kind of load transmission into the first gateway.
Step 704, if the first gateway receives the second interconnection network packet, second internet is deleted Second socket information in message obtains the second view networking message, described second is sent to depending on networking message The view networked terminals.
First gateway can receive the second interconnection network packet that above-mentioned second gateway is sent by internet. Second interconnection network packet is also converted to the second view networking message by the first gateway again, later by the second view networking message It is sent to view networked terminals.
In a kind of optional embodiment, the second interconnection network packet is converted to described second can depending on the step of networking message To include: second socket information deleted in the second interconnection network packet, the second view networking message is obtained.
Step 703 and step 704 realize the communication from view networked server to view networked terminals direction.
In the embodiment of the present invention, between view networked terminals and view networked server, with the first gateway and the second net Equipment is closed as bridge, can be interacted by internet between the first gateway and the second gateway, therefore regards connection Network termination and the data depending on interacting between networked server can be via the Internet transmissions, therefore can also be in internet environment Using view networked terminals access view networked server, the limitation of view networked terminals is reduced, having widened makes depending on networked terminals Use range.
Embodiment three
Referring to Fig. 8, a kind of step flow chart of communication means of the embodiment of the present invention three is shown.
The communication means of the embodiment of the present invention may comprise steps of:
Step 801, the first gateway creates first port listening thread, and initializes the first port listening-in line Journey.
First gateway includes two network ports, the respectively first view networking port and the first Internet Port.The One gateway is communicated by the first view networking port with depending on networked terminals, connects internet by the first Internet Port.
First port listening thread can be created in the first gateway, which can be used for pair First is monitored depending on networking port and the first Internet Port.First gateway can create first port prison after actuation Listen thread.
First gateway initializes first port listening thread.The step of initialization may include: for institute The first Internet Port is stated, the IP address and port numbers of second gateway are configured;Networking port is regarded for described first, Configure the view networking MAC Address and port numbers of the view networked terminals.First gateway is based on by the first Internet Port Internet is communicated with the second gateway, thus for the first Internet Port configure the second gateway IP address and Port numbers.First gateway is communicated depending on networking port with depending on networked terminals by first, therefore for the first view networking The view networking MAC Address and port numbers of port configuration view networked terminals.
Step 802, the second gateway creates second port listening thread, and initializes the second port listening-in line Journey.
Second gateway includes two network ports, the respectively second view networking port and the second Internet Port.The Two gateways are communicated by the second view networking port with depending on networked server, connect internet by the second Internet Port.
Second port listening thread can be created in the second gateway, which can be used for pair Second is monitored depending on networking port and the second Internet Port.Second gateway can create second port prison after actuation Listen thread.
Second gateway initializes second port listening thread.The step of initialization may include: for institute The second view networking port is stated, the view networking MAC Address and port numbers of the view networked server are configured.Second gateway passes through Second Internet Port is based on internet and is communicated with the first gateway, and the first gateway belongs to client, the second net It closes equipment and belongs to server-side, therefore the first gateway actively connects the second gateway, the second gateway without matching in advance Set the IP address and port numbers of the first gateway.Second gateway by second view networking port and view networked server into Row communication, therefore for the view networking MAC Address and port numbers of the second view networking port configuration view networked server.
Do not limit above-mentioned steps 801 and step 802 in the embodiment of the present invention executes sequence.
Step 803, the first gateway starts the first port listening thread, monitors the first view networking end respectively Mouth receives view networking message, and first Internet Port, which receives, interconnects network packet.
First gateway can start the first port listening thread after creating first port listening thread, can also be with Detect with connect depending on networked terminals after start the first port listening thread, etc..First port listening thread can divide Not Jian Ting first depending on networking port whether receive view networking message and the first Internet Port whether receive internet report Text.
Step 804, the second gateway starts the second port listening thread, monitors the second view networking end respectively Mouth receives view networking message, and second Internet Port, which receives, interconnects network packet.
Second gateway can start the second port listening thread after creating second port listening thread, can also be with Detect with connect depending on networked server after start the second port listening thread, etc..Second port listening thread can be with Whether monitoring second receives view networking message depending on networking port respectively and whether the second Internet Port receives internet Message.
Do not limit above-mentioned steps 803 and step 804 in the embodiment of the present invention executes sequence.
Step 805, if the first gateway, which listens to first, receives the view networked terminals transmission depending on networking port First view networking message, then be it is described first view networking message add first set of words information, obtain the first interconnection network packet, Internet is based on by the first Internet Port, and the first interconnection network packet is sent to second gateway.
When wanting to send data to view networked server depending on networked terminals, can be based on encapsulating data depending on networking protocol Networking message is regarded for first, and first is sent to depending on networking message the first view networking port of the first gateway.First view The view networking MAC Address that view networked server can be carried in networking message, is shown to be the view connection that issue view networked server Network packet.
After the first of first gateway receives the first view networking message depending on networking port, first port prison is put it into It listens in the corresponding circle queue of thread.If first port listening thread listens to first and receives view networking eventually depending on networking port There is the first view in the first view networking message namely circle queue that end is sent to network message, then takes out the from circle queue One view networking message adds first set of words information for the first view networking message, obtains the first interconnection network packet.First gateway is set It is standby that first interconnection network packet is sent to based on internet by the second gateway by the first Internet Port.
Step 806, if the second gateway listens to the second Internet Port and receives the first interconnection network packet, The first set of words information in the first interconnection network packet is then deleted, the first view networking message is obtained, by the Two are sent to the view networked server depending on networking message for described first depending on networking port.
After second Internet Port of the second gateway receives the first interconnection network packet, second port prison is put it into Listen the corresponding circle queue of thread.If second port listening thread listens to the second Internet Port and receives the first internet There are the first interconnection network packets in message namely circle queue, then take out the first interconnection network packet from circle queue, delete the The first set of words information in one interconnection network packet obtains the first view networking message.Second gateway passes through the second view Networking port is sent to view networked server depending on networking message for first.
In a kind of optional embodiment, by described first depending on networking message be sent to the view networked server it Before, the first view networking message can also be parsed, judges that described first takes depending on whether carrying the view networking in networking message Be engaged in device view network MAC Address, if carry view networked server depending on networking MAC Address if illustrate its be to be sent to view join The view networking message of network server.Therefore, judging described first depending on carrying the view networked server in networking message When depending on networking MAC Address, the view networked server is sent to depending on networking message by described first.Otherwise, the first view is filtered out Networking message.
Step 807, if the second gateway, which listens to second, receives the view networked server hair depending on networking port The the second view networking message sent, then add the second socket information for the second view networking message, obtain the second internet report Text is based on internet by the second Internet Port and the second interconnection network packet is sent to first gateway.
When wanting to send data to view networked terminals depending on networked server, can be based on encapsulating data depending on networking protocol Networking message is regarded for second, and second is sent to depending on networking message the second view networking port of the second gateway.Second view The view networking MAC Address that view networked terminals can be carried in networking message is shown to be the view networking report that issue view networked terminals Text.
After the second of second gateway receives the second view networking message depending on networking port, second port prison is put it into It listens in the corresponding circle queue of thread.If second port listening thread listens to second and receives view networking clothes depending on networking port It is engaged in then taking out from circle queue in the second view networking message namely circle queue that device is sent there are the second view networking message Second view networking message adds the second socket information for the second view networking message, obtains the second interconnection network packet.Second gateway Equipment is based on internet by the second Internet Port and the second interconnection network packet is sent to the first gateway.
Step 808, if the first gateway listens to the first Internet Port and receives the second interconnection network packet, Second socket information in the second interconnection network packet is then deleted, the second view networking message is obtained, by the One is sent to the view networked terminals depending on networking message for described second depending on networking port.
After first Internet Port of the first gateway receives the second interconnection network packet, first port prison is put it into Listen the corresponding circle queue of thread.If first port listening thread listens to the first Internet Port and receives the second internet There are the second interconnection network packets in message namely circle queue, then take out the second interconnection network packet from circle queue, delete the Second socket information in two interconnection network packets obtains the second view networking message.First gateway passes through the first view Networking port is sent to view networked terminals depending on networking message for second.
In a kind of optional embodiment, before being sent to the view networked terminals depending on networking message for described second, The second view networking message can also be parsed, judge that the described second view networks whether to carry in message and described regards networked terminals Depending on network MAC Address, if carry view networked terminals view network MAC Address if illustrate its to be sent to regard networked terminals Depending on message of networking.Therefore, judging the described second view networking MAC Address depending on carrying the view networked terminals in networking message When, the view networked terminals are sent to depending on networking message by described second.Otherwise, the second view networking message is filtered out.
Step 809, the first gateway discharges the first port listening thread when restarting.
First gateway is restarted after going wrong or user reconfigures.It can be released when restarting Put first port listening thread.
Step 810, the second gateway discharges the second port listening thread when restarting.
Second gateway is restarted after going wrong.Second port listening-in line can be discharged when restarting Journey.
Do not limit above-mentioned steps 809 and step 810 in the embodiment of the present invention executes sequence.
In conclusion mainly being handled by port snoop thread in the embodiment of the present invention.Fig. 9 is the embodiment of the present invention A kind of processing schematic of three port snoop thread.Fig. 9 is illustrated so that gateway is Vhub as an example.As shown in figure 9, place Reason process includes: creation Vhub example (namely creation Vhub port snoop thread), and corresponding sentence is VmsVHub_init;It opens Port snoop thread, corresponding sentence are Connect_startThread;Protocol conversion is carried out in port snoop thread, will be regarded Networking message is converted to interconnection network packet, and interconnection network packet is converted to view networking message;Release monitoring handle (namely release end Mouth listening thread), corresponding sentence is Vms_destory.First gateway and the second gateway can be using shown in Fig. 9 Process handled, detailed process is referring to the above-mentioned associated description to Fig. 8.
The embodiment of the present invention can will be applied in the small ranges such as family region depending on networked terminals, and it is same not need arrangement special line Sample can access in view networked server, widen the sales range of view networked terminals.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented Necessary to example.
Example IV
Referring to Fig.1 0, show a kind of structural block diagram of gateway of the embodiment of the present invention four.
The gateway 100 includes:
First conversion module 1001, if the first view networking message sent for receiving view networked terminals, for institute The first view networking message addition first set of words information is stated, the first interconnection network packet is obtained, sends described first by internet Interconnect network packet.
Second conversion module 1002, if for receive from internet second interconnection network packet, delete described in The second socket information in second interconnection network packet obtains the second view networking message, and the second view networking message is sent To the view networked terminals.
Wherein, it is in non-view networked environment depending on networked terminals.
The protocol conversion between internet and view networking is carried out by gateway in the embodiment of the present invention, thus at realization In non-depending on can also be communicated by internet in networked environment depending on networked terminals, the limitation of view networked terminals is reduced Property, widen the use scope of view networked terminals.
Embodiment five
Referring to Fig.1 1, show a kind of structural block diagram of communication system of the embodiment of the present invention five.Communication system includes view Networked terminals 1101, the first gateway 1102, the second gateway 1103 and view networked server 1104.Depending on networked terminals 1101 in non-view networked environment.
First gateway 1102 includes: the first conversion processing module 11021, if for receiving the view networking eventually The first view networking message that end is sent, then add first set of words information for the first view networking message, obtain the first interconnection The first interconnection network packet is sent to second gateway by internet by network packet.
Second gateway 1103 includes: the second conversion processing module 11031, if for receiving first interconnection Network packet then deletes the first set of words information in the first interconnection network packet, obtains the first view networking message, The view networked server is sent to depending on networking message by described first;Third conversion processing module 11032, if for receiving The the second view networking message sent to the view networked server, then add the second socket letter for the second view networking message Breath, obtains the second interconnection network packet, and the second interconnection network packet is sent to first gateway by internet.
First gateway 1102 further include: the 4th conversion processing module 11022, if for receiving described second mutually Networking message then deletes second socket information in the second interconnection network packet, obtains the second view networking report Text is sent to the view networked terminals depending on networking message for described second.
In a kind of optional embodiment, the first set of words information include second gateway IP address and Port numbers.
In a kind of optional embodiment, second socket information include first gateway IP address and Port numbers.
In a kind of optional embodiment, second gateway 1103 further include: first judgment module, for parsing The first view networking message judges the described first view networking depending on whether carrying the view networked server in networking message MAC Address;Second conversion processing module, specifically for judging that described first joins depending on carrying the view in networking message When the view networking MAC Address of network server, the view networked server is sent to depending on networking message by described first.
In a kind of optional embodiment, first gateway 1102 further include: the second judgment module, for parsing The second view networking message judges the described second view networking MAC depending on whether carrying the view networked terminals in networking message Address;4th conversion processing module, specifically for judging that described second networks depending on carrying the view in networking message When the view networking MAC Address of terminal, the view networked terminals are sent to depending on networking message by described second.
In a kind of optional embodiment, first gateway 1102 includes the first view networking port and the first interconnection Net port;First gateway 1102 further include: the first creation module, for creating first port listening thread, and just The beginningization first port listening thread;First monitoring module monitors institute for starting the first port listening thread respectively It states the first view networking port and receives view networking message, first Internet Port receives interconnection network packet.
In a kind of optional embodiment, first creation module includes: the first configuration unit, for for described the One Internet Port configures the IP address and port numbers of second gateway;For the first view networking port, configuration Depending on the view networking MAC Address and port numbers of networked terminals.
In a kind of optional embodiment, first gateway 1102 further include: the first release module, in weight Qi Shi discharges the first port listening thread.
In a kind of optional embodiment, second gateway 1103 includes the second view networking port and the second interconnection Net port;Second gateway 1103 further include: the second creation module, for creating second port listening thread, and just The beginningization second port listening thread;Second monitoring module monitors institute for starting the second port listening thread respectively It states the second view networking port and receives view networking message, second Internet Port receives interconnection network packet.
In a kind of optional embodiment, second creation module includes: the second configuration unit, for for described the Two view networking ports configure the view networking MAC Address and port numbers of the view networked server.
In a kind of optional embodiment, second gateway 1103 further include: the second release module, in weight Qi Shi discharges the second port listening thread.
In the embodiment of the present invention, between view networked terminals and view networked server, with the first gateway and the second net Equipment is closed as bridge, can be interacted by internet between the first gateway and the second gateway, therefore regards connection Network termination and the data depending on interacting between networked server can be via the Internet transmissions, therefore can also be in internet environment Using view networked terminals access view networked server, the limitation of view networked terminals is reduced, having widened makes depending on networked terminals Use range.
For system embodiments, 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.
In an embodiment of the present invention, a kind of gateway is additionally provided.The gateway may include one or more Processor, and one or more machine readable medias of instruction are stored thereon with, instruct such as application program.Work as described instruction When being executed by one or more of processors, so that the processor performs the steps of
If receiving the first view networking message that view networked terminals are sent, for the first view networking message addition the One socket information obtains the first interconnection network packet, sends the first interconnection network packet by internet;
If receiving the second interconnection network packet from internet, second in the second interconnection network packet is deleted Socket information, obtains the second view networking message, is sent to the view networked terminals depending on networking message for described second;
Wherein, the view networked terminals are in non-view networked environment.
In an embodiment of the present invention, additionally provide that a kind of non-transitory for being stored with computer program is computer-readable to deposit Storage media, the memory for example including computer program, the program perform the steps of when being executed by processor
If receiving the first view networking message that view networked terminals are sent, for the first view networking message addition the One socket information obtains the first interconnection network packet, sends the first interconnection network packet by internet;
If receiving the second interconnection network packet from internet, second in the second interconnection network packet is deleted Socket information, obtains the second view networking message, is sent to the view networked terminals depending on networking message for described second;
Wherein, the view networked terminals are in non-view networked environment.
For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD- ROM, tape, floppy disk and optical data storage devices etc..
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 communication means provided by the present invention, system, gateway and storage medium, 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 (11)

1. a kind of communication means, which is characterized in that the method is applied in communication system, and the communication system includes view networking Terminal and gateway, the view networked terminals are in non-view networked environment;The described method includes:
If the gateway receives the first view networking message that the view networked terminals are sent, for the first view connection Network packet adds first set of words information, obtains the first interconnection network packet, sends the first interconnection network packet by internet;
If the gateway receives the second interconnection network packet from internet, the second interconnection network packet is deleted In the second socket information, obtain the second view networking message, the described second view networking message be sent to view networking end End.
2. a kind of communication means, which is characterized in that the method is applied in communication system, and the communication system includes view networking Terminal, the first gateway, the second gateway and view networked server, the view networked terminals are in non-view networked environment In;The described method includes:
It is described first if first gateway receives the first view networking message that the view networked terminals are sent First set of words information is added depending on networking message, the first interconnection network packet is obtained, by internet by first internet report Text is sent to second gateway;
If second gateway receives the first interconnection network packet, delete in the first interconnection network packet The first set of words information obtains the first view networking message, is sent to the view depending on networking message for described first and joins Network server;
It is described the if second gateway receives the second view networking message that the view networked server is sent Two view networking messages add the second socket informations, the second interconnection network packet are obtained, by internet by second internet Message is sent to first gateway;
If first gateway receives the second interconnection network packet, delete in the second interconnection network packet Second socket information obtains the second view networking message, is sent to the view depending on networking message for described second and joins Network termination.
3. according to the method described in claim 2, it is characterized in that,
The first set of words information includes the IP address and port numbers of second gateway;
Second socket information includes the IP address and port numbers of first gateway.
4. according to the method described in claim 2, it is characterized in that, first gateway include first view networking port and First Internet Port;The method also includes:
First gateway creates first port listening thread, and initializes the first port listening thread;
First gateway starts the first port listening thread, monitors the first view networking port respectively and receives view Networking message, first Internet Port receive interconnection network packet.
5. according to the method described in claim 4, it is characterized in that, the step of the initialization first port listening thread Suddenly, comprising:
For first Internet Port, the IP address and port numbers of second gateway are configured;
For the first view networking port, the view networking MAC Address and port numbers of the view networked terminals are configured.
6. according to the method described in claim 2, it is characterized in that, second gateway include second view networking port and Second Internet Port;The method also includes:
Second gateway creates second port listening thread, and initializes the second port listening thread;
Second gateway starts the second port listening thread, monitors the second view networking port respectively and receives view Networking message, second Internet Port receive interconnection network packet.
7. according to the method described in claim 6, it is characterized in that, the step of the initialization second port listening thread Suddenly, comprising:
For the second view networking port, the view networking MAC Address and port numbers of the view networked server are configured.
8. a kind of gateway characterized by comprising
First conversion module, if the first view networking message sent for receiving view networked terminals, for first view Message of networking adds first set of words information, obtains the first interconnection network packet, sends first internet report by internet Text;
Second conversion module, if deleting second interconnection for receiving the second interconnection network packet from internet The second socket information in network packet, obtains the second view networking message, is sent to the view depending on networking message for described second Networked terminals;
Wherein, the view networked terminals are in non-view networked environment.
9. a kind of communication system, which is characterized in that the communication system includes view networked terminals, the first gateway, the second net Equipment and view networked server are closed, the view networked terminals are in non-view networked environment;
First gateway includes:
First conversion processing module, if the first view networking message sent for receiving the view networked terminals, for institute The first view networking message addition first set of words information is stated, the first interconnection network packet is obtained, it is mutual by described first by internet Networking message is sent to second gateway;
Second gateway includes:
Second conversion processing module, if deleting first internet report for receiving the first interconnection network packet The first set of words information in text obtains the first view networking message, is sent to institute depending on networking message for described first State view networked server;
Third conversion processing module, if the second view networking message sent for receiving the view networked server, for The second view networking message adds the second socket information, the second interconnection network packet is obtained, by internet by described second Interconnection network packet is sent to first gateway;
First gateway further include:
4th conversion processing module, if deleting second internet report for receiving the second interconnection network packet Second socket information in text obtains the second view networking message, is sent to institute depending on networking message for described second State view networked terminals.
10. a kind of gateway characterized by comprising
One or more processors;With
It is stored thereon with one or more machine readable medias of instruction;
When described instruction is executed by one or more of processors, so that the processor performs the steps of
If receiving the first view networking message that view networked terminals are sent, first set is added for the first view networking message Word information is connect, the first interconnection network packet is obtained, the first interconnection network packet is sent by internet;
If receiving the second interconnection network packet from internet, the second socket in the second interconnection network packet is deleted Word information, obtains the second view networking message, is sent to the view networked terminals depending on networking message for described second;
Wherein, the view networked terminals are in non-view networked environment.
11. a kind of computer readable storage medium, which is characterized in that be stored thereon with computer program, the program is by processor It is performed the steps of when execution
If receiving the first view networking message that view networked terminals are sent, first set is added for the first view networking message Word information is connect, the first interconnection network packet is obtained, the first interconnection network packet is sent by internet;
If receiving the second interconnection network packet from internet, the second socket in the second interconnection network packet is deleted Word information, obtains the second view networking message, is sent to the view networked terminals depending on networking message for described second;
Wherein, the view networked terminals are in non-view networked environment.
CN201910712646.5A 2019-08-02 2019-08-02 Communication method, system, gateway device and storage medium Active CN110417792B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910712646.5A CN110417792B (en) 2019-08-02 2019-08-02 Communication method, system, gateway device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910712646.5A CN110417792B (en) 2019-08-02 2019-08-02 Communication method, system, gateway device and storage medium

Publications (2)

Publication Number Publication Date
CN110417792A true CN110417792A (en) 2019-11-05
CN110417792B CN110417792B (en) 2021-11-09

Family

ID=68365652

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910712646.5A Active CN110417792B (en) 2019-08-02 2019-08-02 Communication method, system, gateway device and storage medium

Country Status (1)

Country Link
CN (1) CN110417792B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110995517A (en) * 2019-12-30 2020-04-10 视联动力信息技术股份有限公司 Data transmission method and device, electronic equipment and storage medium
CN111031260A (en) * 2019-12-25 2020-04-17 普世(南京)智能科技有限公司 High-speed image one-way transmission system method and system based on annular lock-free queue

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030161332A1 (en) * 2002-02-27 2003-08-28 Hitachi, Ltd. Gateway apparatus, address administration method, and audio-video apparatus having gateway function
CN101132293A (en) * 2007-08-24 2008-02-27 华为技术有限公司 Individual information processing method, system and device
CN104754406A (en) * 2013-12-31 2015-07-01 罗斯青 Method and device for playing Internet video and audio contents by use of IPTV set-top box
CN109194660A (en) * 2018-09-12 2019-01-11 视联动力信息技术股份有限公司 The method of network entry and device of mobile terminal
CN109818960A (en) * 2019-01-29 2019-05-28 视联动力信息技术股份有限公司 Data processing method and device
CN110035005A (en) * 2019-02-27 2019-07-19 视联动力信息技术股份有限公司 Data processing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030161332A1 (en) * 2002-02-27 2003-08-28 Hitachi, Ltd. Gateway apparatus, address administration method, and audio-video apparatus having gateway function
CN101132293A (en) * 2007-08-24 2008-02-27 华为技术有限公司 Individual information processing method, system and device
CN104754406A (en) * 2013-12-31 2015-07-01 罗斯青 Method and device for playing Internet video and audio contents by use of IPTV set-top box
CN109194660A (en) * 2018-09-12 2019-01-11 视联动力信息技术股份有限公司 The method of network entry and device of mobile terminal
CN109818960A (en) * 2019-01-29 2019-05-28 视联动力信息技术股份有限公司 Data processing method and device
CN110035005A (en) * 2019-02-27 2019-07-19 视联动力信息技术股份有限公司 Data processing method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111031260A (en) * 2019-12-25 2020-04-17 普世(南京)智能科技有限公司 High-speed image one-way transmission system method and system based on annular lock-free queue
CN111031260B (en) * 2019-12-25 2024-05-28 普世(南京)智能科技有限公司 High-speed image unidirectional transmission system method and system based on annular lock-free queue
CN110995517A (en) * 2019-12-30 2020-04-10 视联动力信息技术股份有限公司 Data transmission method and device, electronic equipment and storage medium
CN110995517B (en) * 2019-12-30 2022-10-28 视联动力信息技术股份有限公司 Data transmission method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110417792B (en) 2021-11-09

Similar Documents

Publication Publication Date Title
CN108075920B (en) A kind of management method and system regarding networked terminals
CN108012106B (en) A kind of method and system regarding networking monitoring source synchronous
CN108462589B (en) A kind of method for connecting network and device of terminal
CN107888401B (en) A kind of method and system of real time monitoring view networked terminals cpu busy percentage
CN108965224A (en) A kind of method and apparatus of video on demand
CN109167960A (en) A kind of processing method and system of video stream data
CN108965040A (en) A kind of business monitoring method and device of view networking
CN108206752A (en) A kind of management method and device regarding networked devices
CN109617956A (en) A kind of data processing method and device
CN108881799A (en) A kind of system and method carrying out view networked video meeting
CN109120879A (en) A kind of processing method and system of video conference
CN109889779A (en) A kind for the treatment of method and apparatus of packet out-ordering
CN108881895A (en) A kind of malfunction elimination method and apparatus based on view networking
CN109743526A (en) A kind of communication connection method for building up and system based on view networking
CN110048903A (en) A kind of association turns gateway status monitoring method and device
CN109698930A (en) It is a kind of to attend a meeting method and system depending on networking
CN109743284A (en) A kind of method for processing video frequency and system based on view networking
CN109005378A (en) A kind of processing method and system of video conference
CN109491783A (en) A kind of acquisition methods and system of memory usage
CN109347930A (en) A kind of task processing method and device
CN110417792A (en) Communication means, system, gateway and storage medium
CN108989850A (en) A kind of video playing control method and control system
CN108881791B (en) A kind of conference control method and Conference control device based on view networking
CN110266577A (en) A kind of tunnel establishing method and view networked system
CN109525635A (en) A kind of acquisition methods and system of memory usage

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