CN109889516A - A kind of method for building up and device of session channel - Google Patents
A kind of method for building up and device of session channel Download PDFInfo
- Publication number
- CN109889516A CN109889516A CN201910114353.7A CN201910114353A CN109889516A CN 109889516 A CN109889516 A CN 109889516A CN 201910114353 A CN201910114353 A CN 201910114353A CN 109889516 A CN109889516 A CN 109889516A
- Authority
- CN
- China
- Prior art keywords
- server
- host
- view networking
- request message
- sent
- 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
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Telephonic Communication Services (AREA)
Abstract
This application provides a kind of method for building up of session channel and devices, user terminal, which is received, by view networking Core server passes through the conversation request message that the first host is sent, second host receives the conversation request message that view networking Core server is sent, second host generates the conversational response message for being directed to conversation request message, and session response message is sent to view networking Core server, first host receives the conversational response message that view networking Core server is sent, with the session channel established between the second host, it can be by directly being communicated depending on networking to realize sip client and sip server, improve the convenience of data communication between different hosts, the ease for use and scalability of product are improved simultaneously.
Description
Technical field
This application involves view networking data processing technology field, a kind of method for building up more particularly to session channel and
Device and a kind of computer readable storage medium.
Background technique
It is the important milestone of network Development depending on networking, is the more advanced form of internet, is a real-time network, it can
It realizes the whole network HD video real-time Transmission that current internet cannot achieve, pushes numerous Internet applications to HD video,
High definition is face-to-face.It will finally realize that the world without distance, realizes that the distance of person to person in global range is the distance of a screen.
Include many hosts in the case where regarding networked environment, such as regards networked clients, view networking command dispatching system, view networking stream
Media server and view networking monitoring Resource Server etc..Currently, depending on networked clients and depending on passing through between networked server
It is deployed in the same local area network, while the two also accesses view networking, realizes between view networked clients and view networked server
Communication.But when regarding networked clients and view networked server not in the same local area network, depending on networked clients and view
Networked server can not conversate the foundation in channel.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present application and overcomes the above problem or at least partly in order to provide one kind
A kind of method for building up of the session channel to solve the above problems, a kind of session channel establish device and a kind of computer can
Read storage medium.
To solve the above-mentioned problems, the embodiment of the present application discloses a kind of method for building up of session channel, and the method is answered
It networks for regarding, the view networking is connect with the Ethernet, wherein include the first host, view networking core in the view networking
Central server and the second host include user terminal in the Ethernet;The user terminal and first main-machine communication
Connection, which comprises
It is described to receive the user terminal depending on networking Core server and disappeared by the session request that first host is sent
Breath;
Second host receives the conversation request message that the view networking Core server is sent;
Second host generates the conversational response message for being directed to the conversation request message, and the conversational response is disappeared
Breath is sent to the view networking Core server;
First host receives the conversational response message that the view networking Core server is sent, to establish and described the
Session channel between two hosts.
It preferably, include view networking sip client and the first forwarding server, the view networking core in first host
Central server receives the conversation request message that the user terminal is sent by first host, comprising:
The user terminal sends the conversation request message to view networking sip client;
First forwarding server is converted to the conversation request message received depending on networking sip client
The view networking Core server is sent to based on the first protocol data of view networking protocol, and by first protocol data.
It preferably, include view networking sip server and the second forwarding server, second host in second host
Receive the conversation request message that the view networking Core server is sent, comprising:
Second forwarding server parses first protocol data that the view networking Core server is sent, and obtains
The conversation request message;
It is described that the conversation request message that second forwarding server is sent is received depending on networking sip server.
Preferably, second host generates the conversational response message for being directed to the conversation request message, and by the meeting
Words response message is sent to the view networking Core server, comprising:
It is described to be sent to described second for the conversational response message of the conversation request message depending on networking sip server
Forwarding server;
The conversational response message is converted to the second protocol number based on view networking protocol by second forwarding server
According to, and the second protocol data are sent to the view networking Core server.
Preferably, first host receives the conversational response message that the view networking Core server is sent, to establish
With the session channel between second host, comprising:
First forwarding server receives the conversational response message that the view networking Core server is sent;
The conversational response message that the first forwarding server sender is received depending on networking sip client, with
Establish the session channel between the view networking sip server.
The embodiment of the present application also discloses a kind of device of establishing of session channel, and described device is applied to view networking, described
It is connect depending on networking with the Ethernet, wherein include the first host, view networking Core server and second in the view networking
Host includes user terminal in the Ethernet;The user terminal is connect with first main-machine communication, described device packet
It includes:
Conversation request message sending module receives the user terminal described in for view networking Core server
The conversation request message that first host is sent;
Conversation request message receiving module receives the institute that the view networking Core server is sent for second host
State conversation request message;
Conversational response message transmission module generates the session sound for the conversation request message for second host
Message is answered, and the conversational response message is sent to the view networking Core server;
Session channel establishes module, receives the session that the view networking Core server is sent for first host and rings
Message is answered, with the session channel established between second host.
It preferably, include view networking sip client and the first forwarding server, the session request in first host
Message transmission module includes:
First request message sending submodule sends the conversation request message to the view for the user terminal and joins
Net sip client;
Second request message sending submodule terminates view networking sip client for first forwarding server
The conversation request message received is converted to the first protocol data based on view networking protocol, and by first protocol data
It is sent to the view networking Core server.
It preferably, include view networking sip server and the second forwarding server, the session request in second host
Message reception module includes:
First analyzing sub-module parses the institute that the view networking Core server is sent for second forwarding server
The first protocol data is stated, the conversation request message is obtained;
First receiving submodule receives the institute that second forwarding server is sent depending on networking sip server for described
State conversation request message.
The embodiment of the present application also discloses a kind of device, comprising:
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, are executed when by one or more of processors
When, so that described device executes the method for building up of one or more session channels as described in the embodiment of the present application.
The embodiment of the present application also discloses a kind of computer readable storage medium, and the computer program of storage to handle
Device executes the method for building up of the session channel as described in the embodiment of the present application.
The embodiment of the present application includes the following advantages:
In the embodiment of the present application, user terminal is received by view networking Core server and passes through the meeting that the first host is sent
Request message is talked about, the second host receives the conversation request message that view networking Core server is sent, and the second host, which generates, is directed to meeting
The conversational response message of request message is talked about, and session response message is sent to view networking Core server, the first host receives
Depending on the conversational response message that networking Core server is sent, with the session channel established between the second host, to realize
Sip client and sip server can improve between different hosts data communication just by directly being communicated depending on networking
Benefit, while improving the ease for use and scalability of product.
Detailed description of the invention
Fig. 1 is a kind of networking schematic diagram of view networking of the application;
Fig. 2 is a kind of hardware structural diagram of node server of the application;
Fig. 3 is a kind of hardware structural diagram of access switch of the application;
Fig. 4 is that a kind of Ethernet association of the application turns the hardware structural diagram of gateway;
Fig. 5 is a kind of step flow chart of the method for building up embodiment of session channel of the embodiment of the present application;
Fig. 6 is a kind of structural schematic diagram for establishing Installation practice of session channel of the embodiment of the present application.
Specific embodiment
In order to make the above objects, features, and advantages of the present application more apparent, with reference to the accompanying drawing and it is specific real
Applying mode, the present application will be further described in detail.
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 such as high in a network platform by required service
Clear video session, Intellectualized monitoring analysis, emergency command, digital broadcast television, delay TV, the Web-based instruction, shows video monitoring
Field live streaming, VOD program request, TV Mail, individual character records (PVR), Intranet (manages) channel by oneself, intelligent video Broadcast Control, information publication
All be incorporated into a system platform etc. services such as tens of kinds of videos, voice, picture, text, communication, data, by TV or
Computer realizes that high-definition quality video plays.
To make those skilled in the art more fully understand the embodiment of the present application, it is introduced below to depending on networking:
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 the embodiment of the present application 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 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, 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 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 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 the embodiment of the present application: 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.
With reference to Fig. 5, the step of showing a kind of embodiment of the method one of the foundation of session channel of the embodiment of the present application stream
Cheng Tu, the method are applied to view networking, and view networking is connect with the Ethernet, wherein the view network in including the
One host regards networking Core server and the second host, includes user terminal in the Ethernet;The user terminal and institute
State the connection of the first main-machine communication, which comprises
Step 501, user terminal is received depending on networking Core server pass through the conversation request message that the first host is sent;
There are many hosts, including view networked clients, view networking command dispatching system, view networking under depending on networked environment
Streaming media server and view networking monitoring Resource Server etc., wherein needing depending on networked clients through sip protocol and view connection
Net monitoring Resource Server is communicated, and traditional solution is to allow regard networked clients and view networking monitoring Resource Server
It is deployed in the same local area network, while the two has all accessed view networking again, however when view networked clients and view networking monitoring
When Resource Server is not in a local area network, it is necessary to be forwarded between client and server-side using depending on networking protocol
Sip (Session Initiation Protocol, session initiation protocol) protocol data.
In the embodiment of the present application, it will be deployed in same host depending on networking sip client and the first forwarding server,
It will be deployed in same host depending on networking sip server and the second forwarding server, wherein view networking sip client and the
It is communicated between one forwarding server by udp protocol (User Datagram Protocol, User Datagram Protocol), depending on
It is communicated between networking sip server and the second forwarding server by udp protocol, the first forwarding server and the second forwarding
By being communicated depending on networking protocol between server.
In the case where regarding networked environment, view networking Core server is also deployed, routing can be served as depending on networking Core server
The function of device and interchanger is forwarded to what is received depending on networking data.
In the embodiment of the present application, data are carried out using Internet protocol between user terminal and view networking sip client
Transmission, deployment view networking in forwarding server and view networking Core server using view networking protocol carry out data biography
It is defeated.For needing to enter the user terminal of view networking, it is desirable to provide a virtual terminal number and the virtual address mac, for identifying
The user terminal.
In the embodiment of the present application, user terminal can send session establishment request message by view networking sip client,
Then session establishment request message can be sent to the first forwarding server depending on networking sip client, is serviced by the first forwarding
Session establishment request message is sent to view networking Core server by device.
In the concrete realization, positioned at the view networking sip client of same host and the first forwarding server in host-initiated
When, it can establish UDP connection.The accessible view networking sip client in same local area network of user terminal, when user's end
It holds to when regarding networking sip client transmission session establishment request message, user terminal transmission can be directed to depending on networking sip client
Session establishment request message, by UDP connect to the first forwarding server initiate sip registration message, the first forwarding server
After receiving registration message, the sip registration message of internet protocol-based is converted into the first agreement based on view networking protocol
Data, and it is sent to view networking Core server.
Step 502, the second host receives the conversation request message that view networking Core server is sent;
In the concrete realization, positioned at the view networking sip server of same host and the second forwarding server in host-initiated
When, it can establish UDP connection.After second forwarding server receives the first protocol data that view networking Core server is sent,
The registration message of internet protocol-based can will be converted to based on the first protocol data depending on networking protocol, then the second forwarding
Server is sent to the corresponding udp port of view networking sip server by itself udp port, by registration message, so that view joins
It nets sip server and obtains registration message.
Step 503, the second host generates the conversational response message for being directed to conversation request message, and session response message is sent out
It send to view networking Core server;
In the embodiment of the present application, after the second host receives the conversation request message that view networking Core server is sent,
The conversational response message for conversation request message can be generated, and session response message is sent to view networking kernel service
Device.
In the concrete realization, the view networking sip server being deployed in the second host obtains view networking sip client and sends
Registration message after, carry out sip registration, and generate be directed to conversation request message conversational response message, then pass through UDP connection
It is sent to the second forwarding server, the second forwarding server is converted to the conversational response message of internet protocol-based based on view
The second protocol data of networking protocol, and it is sent to view networking Core server.
Step 504, the first host receives the conversational response message that view networking Core server is sent, main with second with foundation
Session channel between machine.
In the embodiment of the present application, session response message can be by being sent to by the second host depending on networking Core server
First host to set up the session channel between the first host and the second host, and then realizes view networking sip client
Sip protocol data transmission between view networking sip server.
In the concrete realization, the first forwarding server receives the second protocol data that view networking Core server is sent
Afterwards, conversational response message Internet-based can will be converted to based on the second protocol data depending on networking protocol, and passes through UDP
Connection is sent to view networking sip client, to establish the session between view networking sip client and view networking sip server
Channel allows user terminal to be located at the exchange that the session channel in view networking carries out sip protocol data by this.
In a kind of example of the embodiment of the present application, depending between networked clients and the first forwarding server pass through UDP into
Row connection can register the sip after the first forwarding server receives the sip registration message that view networked clients are sent
Message is encapsulated into view networking protocol, generates the first protocol data, and by being sent to the second forwarding depending on networking Core server
Server, the second forwarding server are attached by UDP connection with depending on networking monitoring Resource Server, then the second forwarding service
Device can parse the first protocol data received, and sip registration message is sent to view networking monitoring resource service
Device, so as to regard networking monitoring Resource Server according to sip registration message, returning response message, to establish view networked clients
With view networking monitoring Resource Server between session channel, so as to depending on networked clients with can depending on networking monitoring Resource Server
To complete the exchange of sip protocol data by view networking.
In the embodiment of the present application, user terminal is received by view networking Core server and passes through the meeting that the first host is sent
Request message is talked about, the second host receives the conversation request message that view networking Core server is sent, and the second host, which generates, is directed to meeting
The conversational response message of request message is talked about, and session response message is sent to view networking Core server, the first host receives
Depending on the conversational response message that networking Core server is sent, with the session channel established between the second host, to realize
Sip client and sip server can improve between different hosts data communication just by directly being communicated depending on networking
Benefit, while improving the ease for use and scalability of product.
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, the embodiment of the present application is not limited by the described action sequence, because according to
According to the embodiment of the present application, 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 related movement not necessarily the application is implemented
Necessary to example.
With reference to Fig. 6, a kind of structural schematic diagram for establishing device of session channel of the embodiment of the present application, the dress are shown
It sets and is applied to view networking, the view networking is connect with the Ethernet, wherein include the first host, view connection in the view networking
Net Core server and the second host include user terminal in the Ethernet;The user terminal and first host
Communication connection, described device include:
Conversation request message sending module 601 passes through for described depending on the networking Core server reception user terminal
The conversation request message that first host is sent;
Conversation request message receiving module 602 receives the view networking Core server for second host and sends
The conversation request message;
Conversational response message transmission module 603 generates the meeting for being directed to the conversation request message for second host
Response message is talked about, and the conversational response message is sent to the view networking Core server;
Session channel establishes module 604, receives the meeting that the view networking Core server is sent for first host
Response message is talked about, with the session channel established between second host.
In a kind of preferred embodiment of the embodiment of the present application, in first host include view networking sip client and
First forwarding server, the conversation request message sending module include:
First request message sending submodule sends the conversation request message to the view for the user terminal and joins
Net sip client;
Second request message sending submodule terminates view networking sip client for first forwarding server
The conversation request message received is converted to the first protocol data based on view networking protocol, and by first protocol data
It is sent to the view networking Core server.
In a kind of preferred embodiment of the embodiment of the present application, in second host include view networking sip server and
Second forwarding server, the conversation request message receiving module include:
First analyzing sub-module parses the institute that the view networking Core server is sent for second forwarding server
The first protocol data is stated, the conversation request message is obtained;
First receiving submodule receives the institute that second forwarding server is sent depending on networking sip server for described
State conversation request message.
In a kind of preferred embodiment of the embodiment of the present application, the conversational response message transmission module includes:
First response message sending submodule will be directed to the conversation request message depending on networking sip server for described
Conversational response message be sent to second forwarding server;
Second response message sending submodule is converted to the conversational response message for second forwarding server
The view networking Core server is sent to based on the second protocol data of view networking protocol, and by the second protocol data.
In a kind of preferred embodiment of the embodiment of the present application, the session channel establishes module and includes:
Second analyzing sub-module receives the institute that the view networking Core server is sent for first forwarding server
State conversational response message;
Session channel setting up submodule receives first forwarding server for view networking sip client and sends
The conversational response message of side, with the session channel established between the view networking sip server.
For session channel establish Installation practice for, since it is basic with the method for building up embodiment of session channel
Similar, so being described relatively simple, related place illustrates referring to the part of the method for building up embodiment of session channel.
The embodiment of the present application also provides a kind of devices, comprising:
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, are executed when by one or more of processors
When, so that described device executes the method for building up of one or more session channels as described in the embodiment of the present application.
The embodiment of the present application also provides the computer programs of a kind of computer readable storage medium, storage to handle
Device executes the method for building up of the session channel as described in the embodiment of the present application.
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 embodiments of the present application may be provided as method, apparatus or calculating
Machine program product.Therefore, the embodiment of the present application 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 application 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 application is referring to according to the method for the embodiment of the present application, 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 preferred embodiments of the embodiments of the present application have 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 all change and modification within the scope of the embodiments of the present application.
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.
Device and one are established to the method for building up of session channel provided herein a kind of, a kind of session channel above
Kind of computer readable storage medium is described in detail, used herein principle and embodiment party of the specific case to the application
Formula is expounded, the description of the example is only used to help understand the method for the present application and its core ideas;Meanwhile it is right
In those of ordinary skill in the art, according to the thought of the application, change is had in specific embodiments and applications
Place, in conclusion the contents of this specification should not be construed as limiting the present application.
Claims (10)
1. a kind of method for building up of session channel, which is characterized in that the method is applied to view networking, the view network with it is described
Ethernet connection, wherein include that the first host, view are networked Core server and the second host in view networking, it is described with
It include very much user terminal in net;The user terminal is connect with first main-machine communication, which comprises
It is described that the conversation request message that the user terminal is sent by first host is received depending on networking Core server;
Second host receives the conversation request message that the view networking Core server is sent;
Second host generates the conversational response message for being directed to the conversation request message, and the conversational response message is sent out
It send to view networking Core server;
First host receives the conversational response message that the view networking Core server is sent, main with described second with foundation
Session channel between machine.
2. the method according to claim 1, wherein in first host include view networking sip client and
First forwarding server, it is described that the session that the user terminal is sent by first host is received depending on networking Core server
Request message, comprising:
The user terminal sends the conversation request message to view networking sip client;
It is described view networking sip client send for the conversation request message sip registration message to it is described first forwarding clothes
Business device;
The sip registration message is converted to the first protocol data based on view networking protocol by first forwarding server, and
First protocol data is sent to the view networking Core server.
3. according to the method described in claim 2, it is characterized in that, in second host include view networking sip server and
Second forwarding server, second host receive the conversation request message that the view networking Core server is sent, packet
It includes:
Second forwarding server parses first protocol data that the view networking Core server is sent, and obtains described
Conversation request message;
It is described that the conversation request message that second forwarding server is sent is received depending on networking sip server.
4. according to the method described in claim 3, it is characterized in that, second host, which generates, is directed to the conversation request message
Conversational response message, and the conversational response message is sent to the view and is networked Core server, comprising:
It is described to be sent to second forwarding for the conversational response message of the conversation request message depending on networking sip server
Server;
The conversational response message is converted to the second protocol data based on view networking protocol by second forwarding server, and
The second protocol data are sent to the view networking Core server.
5. according to the method described in claim 4, it is characterized in that, first host receives the view networking Core server
The conversational response message of transmission, with the session channel established between second host, comprising:
First forwarding server receives the conversational response message that the view networking Core server is sent;
The conversational response message that the first forwarding server sender is received depending on networking sip client, to establish
With the session channel between the view networking sip server.
6. a kind of session channel establishes device, which is characterized in that described device is applied to view networking, the view network with it is described
Ethernet connection, wherein include that the first host, view are networked Core server and the second host in view networking, it is described with
It include very much user terminal in net;The user terminal is connect with first main-machine communication, and described device includes:
Conversation request message sending module receives the user terminal for view networking Core server and passes through described first
The conversation request message that host is sent;
Conversation request message receiving module receives the meeting that the view networking Core server is sent for second host
Talk about request message;
Conversational response message transmission module disappears for second host generation for the conversational response of the conversation request message
Breath, and the conversational response message is sent to the view networking Core server;
Session channel establishes module, receives the conversational response sent depending on networking Core server for first host and disappears
Breath, with the session channel established between second host.
7. device according to claim 6, which is characterized in that in first host include view networking sip client and
First forwarding server, the conversation request message sending module include:
First request message sending submodule sends the conversation request message to the view for the user terminal and networks
Sip client;
Second request message sending submodule is received described depending on networking sip client for first forwarding server
The conversation request message be converted to based on view networking protocol the first protocol data, and will first protocol data transmission
To view networking Core server.
8. device according to claim 7, which is characterized in that in second host include view networking sip server and
Second forwarding server, the conversation request message receiving module include:
First analyzing sub-module parses described that the view networking Core server is sent for second forwarding server
One protocol data obtains the conversation request message;
First receiving submodule receives the meeting that second forwarding server is sent depending on networking sip server for described
Talk about request message.
9. a kind of device characterized by comprising
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, when being executed by one or more of processors, are made
Obtain the method for building up for one or more session channels that described device is executed as described in claim 1 to 5.
10. a kind of computer readable storage medium, which is characterized in that its computer program stored executes processor as weighed
Benefit requires the method for building up of 1 to 5 described in any item session channels.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910114353.7A CN109889516B (en) | 2019-02-14 | 2019-02-14 | Method and device for establishing session channel |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910114353.7A CN109889516B (en) | 2019-02-14 | 2019-02-14 | Method and device for establishing session channel |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109889516A true CN109889516A (en) | 2019-06-14 |
CN109889516B CN109889516B (en) | 2021-10-08 |
Family
ID=66928077
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910114353.7A Active CN109889516B (en) | 2019-02-14 | 2019-02-14 | Method and device for establishing session channel |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109889516B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112565059A (en) * | 2020-12-03 | 2021-03-26 | 城云科技(中国)有限公司 | Message transmission method and system based on instant messaging private cloud architecture |
CN113098864A (en) * | 2021-03-31 | 2021-07-09 | 杭州海康威视系统技术有限公司 | Data transmission system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100085959A1 (en) * | 2008-10-01 | 2010-04-08 | Avistar Communications Corporation | System and method for achieving interoperability between endpoints operating under different protocols |
US20130212646A1 (en) * | 2011-06-24 | 2013-08-15 | Keith A. McFarland | Usage authentication via intercept and challege for network services |
CN107888542A (en) * | 2016-09-29 | 2018-04-06 | 北京视联动力国际信息技术有限公司 | A kind of method and system depending on establishing communication between networked terminals and commander's equipment |
CN107888544A (en) * | 2016-09-29 | 2018-04-06 | 北京视联动力国际信息技术有限公司 | A kind of method and system depending on establishing communication between networked terminals and communication apparatus |
CN108418778A (en) * | 2017-02-09 | 2018-08-17 | 北京视联动力国际信息技术有限公司 | A kind of internet and method, apparatus and interactive system regarding connected network communication |
CN108881149A (en) * | 2017-12-29 | 2018-11-23 | 北京视联动力国际信息技术有限公司 | A kind of cut-in method and system of videophone device |
-
2019
- 2019-02-14 CN CN201910114353.7A patent/CN109889516B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100085959A1 (en) * | 2008-10-01 | 2010-04-08 | Avistar Communications Corporation | System and method for achieving interoperability between endpoints operating under different protocols |
US20130212646A1 (en) * | 2011-06-24 | 2013-08-15 | Keith A. McFarland | Usage authentication via intercept and challege for network services |
CN107888542A (en) * | 2016-09-29 | 2018-04-06 | 北京视联动力国际信息技术有限公司 | A kind of method and system depending on establishing communication between networked terminals and commander's equipment |
CN107888544A (en) * | 2016-09-29 | 2018-04-06 | 北京视联动力国际信息技术有限公司 | A kind of method and system depending on establishing communication between networked terminals and communication apparatus |
CN108418778A (en) * | 2017-02-09 | 2018-08-17 | 北京视联动力国际信息技术有限公司 | A kind of internet and method, apparatus and interactive system regarding connected network communication |
CN108881149A (en) * | 2017-12-29 | 2018-11-23 | 北京视联动力国际信息技术有限公司 | A kind of cut-in method and system of videophone device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112565059A (en) * | 2020-12-03 | 2021-03-26 | 城云科技(中国)有限公司 | Message transmission method and system based on instant messaging private cloud architecture |
CN112565059B (en) * | 2020-12-03 | 2022-06-28 | 城云科技(中国)有限公司 | Message transmission method and system based on instant messaging private cloud architecture |
CN113098864A (en) * | 2021-03-31 | 2021-07-09 | 杭州海康威视系统技术有限公司 | Data transmission system |
Also Published As
Publication number | Publication date |
---|---|
CN109889516B (en) | 2021-10-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108881133B (en) | A kind of communication means and device of media data | |
CN108810456B (en) | A kind of monitoring video flow transfers method and system | |
CN108012106B (en) | A kind of method and system regarding networking monitoring source synchronous | |
CN110190973A (en) | A kind of presence detection method and device | |
CN110113299A (en) | Data transmission method, device, signal server and computer-readable medium | |
CN109120879A (en) | A kind of processing method and system of video conference | |
CN109547163A (en) | A kind of control method and device of message transmission rate | |
CN109963109A (en) | A kind of processing method and system of video conference | |
CN109068086A (en) | A kind of processing method and system of visual telephone service | |
CN110049346A (en) | A kind of method and system of net cast | |
CN110049273A (en) | A kind of meeting method for recording and transfer server based on view networking | |
CN109788369A (en) | Terminal control method and device | |
CN110177023A (en) | A kind of communication connection detection method and device based on view networking | |
CN109873864A (en) | A kind of communication connection method for building up and system based on view networking | |
CN109491783A (en) | A kind of acquisition methods and system of memory usage | |
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 | |
CN109889516A (en) | A kind of method for building up and device of session channel | |
CN110278244A (en) | A kind of method of network entry and view networked terminals based on view networking | |
CN109769012A (en) | A kind of access method and device of Web server | |
CN109617766A (en) | A kind of heartbeat treating method and apparatus | |
CN109525635A (en) | A kind of acquisition methods and system of memory usage | |
CN110113559A (en) | A kind of monitor video method for stream processing and system based on view networking | |
CN110401807A (en) | A kind of communication means and device of video-phone system | |
CN109819197A (en) | Depending on networking connection method and device |
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 |