CN110166518A - Transmission method, device, storage medium and the electronic device of session information - Google Patents

Transmission method, device, storage medium and the electronic device of session information Download PDF

Info

Publication number
CN110166518A
CN110166518A CN201811354286.8A CN201811354286A CN110166518A CN 110166518 A CN110166518 A CN 110166518A CN 201811354286 A CN201811354286 A CN 201811354286A CN 110166518 A CN110166518 A CN 110166518A
Authority
CN
China
Prior art keywords
destination
session information
session
information
router
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
CN201811354286.8A
Other languages
Chinese (zh)
Other versions
CN110166518B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201811354286.8A priority Critical patent/CN110166518B/en
Publication of CN110166518A publication Critical patent/CN110166518A/en
Application granted granted Critical
Publication of CN110166518B publication Critical patent/CN110166518B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/30Routing of multiclass traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/38Flow based routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2483Traffic characterised by specific attributes, e.g. priority or QoS involving identification of individual flows
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Abstract

The invention discloses a kind of transmission method of session information, device, storage medium and electronic devices.Wherein, this method comprises: detecting the object run executed to destination client, wherein object run is used to establish target session between the destination server corresponding with destination client of destination client by destination router;Obtain the session information of target session;Session information is sent to destination router, wherein session information is used to indicate destination router and is preferentially forwarded to the data for carrying session information.The present invention solves technical problem lower to the recognition accuracy of service traffics in the related technology.

Description

Transmission method, device, storage medium and the electronic device of session information
Technical field
The present invention relates to computer fields, are situated between in particular to a kind of transmission method of session information, device, storage Matter and electronic device.
Background technique
Currently, the mode of the common QOS identification application layer traffic realized of router, exactly determines clothes by target port Business, such as 80 port TCP, are directly interpreted as webpage flow, i.e. http protocol flow.That is common practice is to pass through target side The application layer type of service of mouth service work, can be used as the flow of identification type of service.It is inaccurate to there is identification in current technology True disadvantage can be in this way if it is common target port.And some are belonged to the business (example of C/S framework Such as: hand swims business) use proprietary protocol, the general port that this mode is realized all be unconventional port numbers (i.e. > 1024).In this case, if identifying type of service flow by way of conventional, Business Stream can not be accurately identified substantially Amount.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of transmission method of session information, device, storage medium and electronic devices, so that It is few to solve technical problem lower to the recognition accuracy of service traffics in the related technology.
According to an aspect of an embodiment of the present invention, a kind of transmission method of session information is provided, comprising: detect pair The object run that destination client executes, wherein the object run is used for through destination router in the destination client Target session is established between destination server corresponding with the destination client;Obtain the session information of the target session; The session information is sent to the destination router, wherein the session information is used to indicate the destination router pair The data for carrying the session information are preferentially forwarded.
According to another aspect of an embodiment of the present invention, a kind of transmitting device of session information is additionally provided, comprising: detection mould Block, for detecting the object run executed to destination client, wherein the object run is used to exist by destination router Target session is established between the destination server corresponding with the destination client of the destination client;Module is obtained, is used for Obtain the session information of the target session;Sending module, for the session information to be sent to the destination router, In, the session information is used to indicate the destination router and is preferentially forwarded to the data for carrying the session information.
According to another aspect of an embodiment of the present invention, a kind of storage medium is additionally provided, which is characterized in that the storage is situated between Computer program is stored in matter, wherein the computer program is arranged to execute described in any of the above-described when operation Method.
According to another aspect of an embodiment of the present invention, a kind of electronic device, including memory and processor are additionally provided, It is characterized in that, computer program is stored in the memory, and the processor is arranged to hold by the computer program Method described in row any of the above-described.
In embodiments of the present invention, using detect to destination client execute object run, wherein object run use Target session is established between the destination server corresponding with destination client of destination client in passing through destination router;It obtains The session information of target session;Session information is sent to destination router, wherein session information is used to indicate destination router To the mode that the data for carrying session information are preferentially forwarded, the object run executed to destination client is being detected When, the session information for the target session that will acquire is sent to destination router, and destination router can be accurately to taking Data with the session information are preferentially forwarded, and are taken so as to improve destination router identification destination client and target The accuracy rate for the data transmitted between business device, so that the technical effect for improving the accuracy rate of the identification to service traffics is realized, And then solves technical problem lower to the recognition accuracy of service traffics in the related technology.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of schematic diagram of the transmission method of optional session information according to an embodiment of the present invention;
Fig. 2 is a kind of application environment schematic diagram of the transmission method of optional session information according to an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram of the transmission method of optional session information of optional embodiment according to the present invention;
Fig. 4 is the signal of the transmission method of the optional session information of another kind of optional embodiment according to the present invention Figure;
Fig. 5 is a kind of schematic diagram of the transmitting device of optional session information according to an embodiment of the present invention;
Fig. 6 is a kind of application scenarios schematic diagram of the transmission method of optional session information according to an embodiment of the present invention; And
Fig. 7 is a kind of schematic diagram of optional electronic device according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
According to an aspect of an embodiment of the present invention, a kind of transmission method of session information is provided, as shown in Figure 1, should Method includes:
S102 detects the object run executed to destination client, wherein object run is for passing through destination router Target session is established between the destination server corresponding with destination client of destination client;
S104 obtains the session information of target session;
S106, it will words information is sent to destination router, wherein session information is used to indicate destination router to carrying There are the data of session information preferentially to be forwarded.
Optionally, in the present embodiment, the transmission method of above-mentioned session information can be applied to target visitor as shown in Figure 2 In the hardware environment that family end 202, destination router 204 and destination server 206 are constituted.As shown in Fig. 2, destination client 202 are connect by destination router 204 with destination server 206, and destination client 202, which detects, holds destination client 202 Capable object run, wherein object run is used for through destination router 204 in destination client 202 and destination server 206 Between establish target session, destination client 202 obtains the session information of target session, and destination client 202 is by session information It is sent to destination router 204, wherein session information is used to indicate destination router 204 to the data for carrying session information Preferentially forwarded.
Optionally, in the present embodiment, the transmission method of above-mentioned session information can be, but not limited to be applied to client to In the scene of router transport session information.Wherein, above-mentioned client can be, but not limited to as various types of applications, for example, Online education application, instant messaging application, community space application, game application, shopping application, browser application, financial application, Multimedia application, live streaming application etc..Specifically, can be, but not limited to be applied to the client in above-mentioned game application to router In the scene of transport session information, or can with but be not limited to be applied to above-mentioned multimedia application client to router pass In defeated scene, to improve the accuracy rate of the identification to service traffics.Above-mentioned is only a kind of example, is not done in the present embodiment to this Any restriction.
Optionally, in the present embodiment, the transmission method of above-mentioned session information can be, but not limited to by destination client The SDK of insertion is executed.SDK with the proprietary protocol that destination router consults with destination router by being communicated.
SDK (Software Development Kit) is Software Development Kit, and usually some software engineers are The set of developing instrument when specific software package, software frame, hardware platform, operating system etc. establish application software.
Optionally, in the present embodiment, the SDK being embedded in destination client is each with destination server in destination client The session information of this session connection can be obtained when establishing session connection, and the session information is sent to destination router, To indicate that destination router carries out QoS forwarding to the data for carrying the session information.
QoS (Quality of Service, service quality) refers to that a network can be specified using various basic technologies Network communication better service ability is provided, be a kind of security mechanism of network, be for solving network delay and obstruction etc. A kind of technology of problem.Under normal circumstances, it if network is served only for specific timeless application system, does not need QoS, such as Web application or E-mail setting etc..But to key application and multimedia application with regard to very necessary.When network mistake When load or congestion, QoS can ensure that important service amount is not postponed or abandoned, while guarantee the efficient operation of network.In this implementation In example, router is made to carry out QoS forwarding to the data transmitted between destination client and destination server using session information, It can effectively make the business of destination client not by postponing to be influenced, be not dropped, ensure that the efficient fortune of destination client Row.
Optionally, in the present embodiment, above-mentioned object run is used for through destination router in destination client and target Target session is established between server.Such as: to destination client execute start-up operation, in destination client resource or The trigger action etc. that the information such as person's icon execute.
Optionally, in the present embodiment, above-mentioned destination router can be, but not limited to include home router etc..
In an optional embodiment, by taking destination client is game client as an example, as shown in figure 3, game is objective The SDK being embedded in the end of family detects the object run executed to game client, wherein object run is used to route by target Device establishes target session between game client game server corresponding with game client, obtains the session of target session Information, it will words information is sent to destination router, wherein session information, which is used to indicate destination router, to be believed session is carried The game data of breath is preferentially forwarded.
As it can be seen that through the above steps, when detecting the object run executed to destination client, the mesh that will acquire The session information of rotating savings words is sent to destination router, and destination router can be accurately to the number for carrying the session information According to preferentially being forwarded, so as to improve the data transmitted between destination router identification destination client and destination server Accuracy rate, to realize the technical effect improved to the accuracy rate of the identification of service traffics, and then solve the relevant technologies In the technical problem lower to the recognition accuracy of service traffics.
As a kind of optional scheme, before the session information for obtaining target session, method further include: pass through target road The application program api interface and destination router provided by device establishes connection;
It includes: that session information is sent to destination router by api interface that session information, which is sent to destination router,.
Optionally, in the present embodiment, destination router can be, but not limited to provide for the SDK being embedded in destination client Api interface, the SDK being embedded in destination client are communicated by the api interface with destination router.
As a kind of optional scheme, the session information for obtaining target session includes:
S1 obtains the version information of destination router by api interface;
S2 verifies api interface in the case where version information is used to indicate the destination router preferential forwarding strategy of support Legitimacy;
S3 obtains the session information of target session in the case where it is legal for verifying the legitimacy of api interface.
Optionally, in the present embodiment, the SDK being embedded in destination client can first to destination router version letter Breath is verified, and verifies whether the destination router supports wired forwarding strategy, if supported, can continue to route target The api interface that device provides carries out the verifying of legitimacy, and the meeting of target session is obtained if the API that destination router provides is legal Talk about information.
Optionally, in the present embodiment, if destination router does not support preferential forwarding strategy, alternatively, destination router The API of offer is illegal, then according to the number between the form transmission objectives client and destination server of the transmission of original data According to alternatively, being known otherwise according to original data to identify the data between destination client and destination server, without right The data transmitted between destination client and destination server carry out the preferential forwarding for meeting the preferential forwarding strategy.
As a kind of optional scheme, the session information for obtaining target session includes:
S1 reads the corresponding network connection of target session;
S2 obtains the five-tuple information of network connection, wherein five-tuple information includes: the source IP address of network connection, net The source port number of network connection, the destination slogan of network connection, passes used in network connection the purpose IP address of network connection Defeated agreement;
Five-tuple information is determined as session information by S3.
Optionally, in the present embodiment, by five yuan of the network connection established between destination client and destination server Group information is sent to destination router as the session information of target session.
Five-tuple is Communication terminology.Typically refer to source IP address, source port, purpose IP address, destination port and transport layer Agreement.
Optionally, in the present embodiment, the five-tuple information of network connection is sent to by the SDK being embedded in destination client Destination router, destination router can think that the data for carrying the five-tuple information are that destination client and target take The data transmitted between business device, also just have identified the data of destination client from the data received, thus to target visitor The data at family end are preferentially forwarded.
In an alternative embodiment, client is swum by hand of destination client, destination router is home router, Session information be five-tuple information for, as shown in figure 4, the transmission process of session information includes the following steps:
Step 1, after hand trip client terminal start-up, initialization hand swims client, including SDK;
Step 2, it is connect by SDK with router API, directly reads the version information of router, judge that the router is The no strategy for supporting to carry out QOS based on SDK identification game flow;If obtaining version failure or router version information not supported QOS strategy then directly jumps QOS and ensures failure;
Step 3, obtain version information success, and meet QOS strategy under the premise of, by between SDK and router API certification, carry out SDK and router legitimacy verifies;
Step 4, the case where after API is authenticated successfully, hand swims client and connects game server, carries out business logic processing Under, SDK reads the newly-built network connection of active client, and obtains the network communicated between hand trip client and server device and connect It connects;If obtaining failure, router QOS ensures failure;
Step 5, if after successfully getting network connection, SDK is by carrying out privately owned communication with the API of router, by five Tuple information reports to router.Router carries out the forwarding of QOS policy priority and ensures according to the five-tuple information got.
As a kind of optional scheme, after session information is sent to destination router, further includes:
S1, destination router receive session information;
Whether S2, the data that the instruction detection of destination router response session information receives carry session information;
S3, destination router carry out the forwarding of highest priority to the data for carrying session information.
Optionally, in the present embodiment, after destination router receives session information, so that it may think to carry the session The data of information are the data transmitted between destination client and destination server, detect to carry from the data received There are the data of the session information, so that the data for carrying session information are carried out with the forwarding of highest priority, to guarantee target The forward efficiency of client data.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Other side according to an embodiment of the present invention additionally provides a kind of for implementing the transmission side of above-mentioned session information The transmitting device of the session information of method, as shown in figure 5, the device includes:
Detection module 52, for detecting the object run executed to destination client, wherein object run is for passing through Destination router establishes target session between the destination server corresponding with destination client of destination client;
Module 54 is obtained, for obtaining the session information of target session;
Sending module 56, for session information to be sent to destination router, wherein session information is used to indicate target road The data for carrying session information are preferentially forwarded by device.
Optionally, in the present embodiment, the transmitting device of above-mentioned session information can be applied to target visitor as shown in Figure 2 In the hardware environment that family end 202, destination router 204 and destination server 206 are constituted.As shown in Fig. 2, destination client 202 are connect by destination router 204 with destination server 206, and destination client 202, which detects, holds destination client 202 Capable object run, wherein object run is used for through destination router 204 in destination client 202 and destination server 206 Between establish target session, destination client 202 obtains the session information of target session, and destination client 202 is by session information It is sent to destination router 204, wherein session information is used to indicate destination router 204 to the data for carrying session information Preferentially forwarded.
Optionally, in the present embodiment, the transmitting device of above-mentioned session information can be, but not limited to be applied to client to In the scene of router transport session information.Wherein, above-mentioned client can be, but not limited to as various types of applications, for example, Online education application, instant messaging application, community space application, game application, shopping application, browser application, financial application, Multimedia application, live streaming application etc..Specifically, can be, but not limited to be applied to the client in above-mentioned game application to router In the scene of transport session information, or can with but be not limited to be applied to above-mentioned multimedia application client to router pass In defeated scene, to improve the accuracy rate of the identification to service traffics.Above-mentioned is only a kind of example, is not done in the present embodiment to this Any restriction.
Optionally, in the present embodiment, the transmitting device of above-mentioned session information can be, but not limited to by destination client The SDK of insertion is executed.SDK with the proprietary protocol that destination router consults with destination router by being communicated.
SDK (Software Development Kit) is Software Development Kit, and usually some software engineers are The set of developing instrument when specific software package, software frame, hardware platform, operating system etc. establish application software.
Optionally, in the present embodiment, the SDK being embedded in destination client is each with destination server in destination client The session information of this session connection can be obtained when establishing session connection, and the session information is sent to destination router, To indicate that destination router carries out QoS forwarding to the data for carrying the session information.
QoS (Quality of Service, service quality) refers to that a network can be specified using various basic technologies Network communication better service ability is provided, be a kind of security mechanism of network, be for solving network delay and obstruction etc. A kind of technology of problem.Under normal circumstances, it if network is served only for specific timeless application system, does not need QoS, such as Web application or E-mail setting etc..But to key application and multimedia application with regard to very necessary.When network mistake When load or congestion, QoS can ensure that important service amount is not postponed or abandoned, while guarantee the efficient operation of network.In this implementation In example, router is made to carry out QoS forwarding to the data transmitted between destination client and destination server using session information, It can effectively make the business of destination client not by postponing to be influenced, be not dropped, ensure that the efficient fortune of destination client Row.
Optionally, in the present embodiment, above-mentioned object run is used for through destination router in destination client and target Target session is established between server.Such as: to destination client execute start-up operation, in destination client resource or The trigger action etc. that the information such as person's icon execute.
Optionally, in the present embodiment, above-mentioned destination router can be, but not limited to include home router etc..
In an optional embodiment, by taking destination client is game client as an example, as shown in figure 3, game is objective The SDK being embedded in the end of family detects the object run executed to game client, wherein object run is used to route by target Device establishes target session between game client game server corresponding with game client, obtains the session of target session Information, it will words information is sent to destination router, wherein session information, which is used to indicate destination router, to be believed session is carried The game data of breath is preferentially forwarded.
As it can be seen that by above-mentioned apparatus, when detecting the object run executed to destination client, the mesh that will acquire The session information of rotating savings words is sent to destination router, and destination router can be accurately to the number for carrying the session information According to preferentially being forwarded, so as to improve the data transmitted between destination router identification destination client and destination server Accuracy rate, to realize the technical effect improved to the accuracy rate of the identification of service traffics, and then solve the relevant technologies In the technical problem lower to the recognition accuracy of service traffics.
As a kind of optional scheme, above-mentioned apparatus further include: establish module, answered for what is provided by destination router Connection is established with program api interface and destination router;
Sending module is used for: session information being sent to destination router by api interface.
Optionally, in the present embodiment, destination router can be, but not limited to provide for the SDK being embedded in destination client Api interface, the SDK being embedded in destination client are communicated by the api interface with destination router.
As a kind of optional scheme, obtaining module includes:
First acquisition unit, for obtaining the version information of destination router by api interface;
Authentication unit, for testing in the case where version information is used to indicate the destination router preferential forwarding strategy of support Demonstrate,prove the legitimacy of api interface;
Second acquisition unit, for obtaining target session in the case where it is legal for verifying the legitimacy of api interface Session information.
Optionally, in the present embodiment, the SDK being embedded in destination client can first to destination router version letter Breath is verified, and verifies whether the destination router supports wired forwarding strategy, if supported, can continue to route target The api interface that device provides carries out the verifying of legitimacy, and the meeting of target session is obtained if the API that destination router provides is legal Talk about information.
Optionally, in the present embodiment, if destination router does not support preferential forwarding strategy, alternatively, destination router The API of offer is illegal, then according to the number between the form transmission objectives client and destination server of the transmission of original data According to alternatively, being known otherwise according to original data to identify the data between destination client and destination server, without right The data transmitted between destination client and destination server carry out the preferential forwarding for meeting the preferential forwarding strategy.
As a kind of optional scheme, obtaining module includes:
Reading unit, for reading the corresponding network connection of target session;
Third acquiring unit, for obtaining the five-tuple information of network connection, wherein five-tuple information includes: that network connects The source port number of the source IP address, network connection that connect, the purpose IP address of network connection, the destination slogan of network connection, net Network connects used transport protocol;
Determination unit, for five-tuple information to be determined as session information.
Optionally, in the present embodiment, by five yuan of the network connection established between destination client and destination server Group information is sent to destination router as the session information of target session.
Five-tuple is Communication terminology.Typically refer to source IP address, source port, purpose IP address, destination port and transport layer Agreement.
Optionally, in the present embodiment, the five-tuple information of network connection is sent to by the SDK being embedded in destination client Destination router, destination router can think that the data for carrying the five-tuple information are that destination client and target take The data transmitted between business device, also just have identified the data of destination client from the data received, thus to target visitor The data at family end are preferentially forwarded.
The application environment of the embodiment of the present invention can be, but not limited to referring to the application environment in above-described embodiment, the present embodiment In this is repeated no more.The embodiment of the invention provides the optional tools of one kind of the connection method for implementing above-mentioned real time communication Body application example.
As a kind of optional embodiment, the transmission method of above-mentioned session information can be, but not limited to be applied to such as Fig. 6 institute That shows is realized in the scene of router QOS based on SDK identification game flow.In this scene, need to do preferentially game flow Forward process, i.e., opponent swims flow and does QOS priority processing on the router.If realizing this demand, solution is first had to Demand: it is exactly the flow for needing to identify hand trip in the router, does the preferential forward process of router QOS.
In the present embodiment, by way of swimming SDK and router communication based on hand, realize that router identification hand swims flow Function.It by the SDK in game client insertion customization, and is communicated between SDK and router, SDK identification is built every time The five-tuple information (SrcIP+SrcPort+DstIP+DstPort+Protocol) of game flow when vertical session connection, five yuan The proprietary protocol that group information is negotiated by SDK and router, is transferred to router, router is allowed to carry out by five-tuple information QOS, router can identify the communication traffic of game client and server end.
In the present embodiment, the API related generally in hand trip client and home router carries out privately owned communication.Hand tourist Family end is when even server, after SDK only needs initialization, obtains when the five-tuple of remote holder tourist family end and server end connects Connect information.And by the five-tuple information, by client SDK and router API communication interface, the five-tuple information reporting is carried out Router.It is tactful in the QOS of router after router obtains the five-tuple information of tourist family in one's hands end and server end, according to The five-tuple carries out highest priority forwarding.To which the game flow of hand trip reaches server for optimal having ensured.
Another aspect according to an embodiment of the present invention additionally provides a kind of for implementing the transmission of above-mentioned session information Electronic device, as shown in fig. 7, the electronic device includes: one or more (only showing one in figure) processor 702, memory 704, sensor 706, encoder 708 and transmitting device 710 are stored with computer program in the memory, the processor quilt It is set as executing the step in any of the above-described embodiment of the method by computer program.
Optionally, in the present embodiment, above-mentioned electronic device can be located in multiple network equipments of computer network At least one network equipment.
Optionally, in the present embodiment, above-mentioned processor can be set to execute following steps by computer program:
S1 detects the object run executed to destination client, wherein object run is used to exist by destination router Target session is established between the destination server corresponding with destination client of destination client;
S2 obtains the session information of target session;
S3, it will words information is sent to destination router, wherein session information is used to indicate destination router to carrying The data of session information are preferentially forwarded.
Optionally, it will appreciated by the skilled person that structure shown in Fig. 7 is only to illustrate, electronic device can also To be smart phone (such as Android phone, iOS mobile phone), tablet computer, palm PC and mobile internet device The terminal devices such as (Mobile Internet Devices, MID), PAD.Fig. 7 it does not cause to the structure of above-mentioned electronic device It limits.For example, electronic device may also include more or less component (such as network interface, display device than shown in Fig. 7 Deng), or with the configuration different from shown in Fig. 7.
Wherein, memory 702 can be used for storing software program and module, such as the session information in the embodiment of the present invention Transmission method and the corresponding program instruction/module of device, the software journey that processor 704 is stored in memory 702 by operation Sequence and module realize the control method of above-mentioned target element thereby executing various function application and data processing.It deposits Reservoir 702 may include high speed random access memory, can also include nonvolatile memory, as one or more magnetic storage fills It sets, flash memory or other non-volatile solid state memories.In some instances, memory 702 can further comprise relative to place The remotely located memory of device 704 is managed, these remote memories can pass through network connection to terminal.The example packet of above-mentioned network Include but be not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 710 is used to that data to be received or sent via a network.Above-mentioned network specific example It may include cable network and wireless network.In an example, transmitting device 710 includes a network adapter (Network Interface Controller, NIC), can be connected by cable with other network equipments with router so as to interconnection Net or local area network are communicated.In an example, transmitting device 710 is radio frequency (Radio Frequency, RF) module, For wirelessly being communicated with internet.
Wherein, specifically, memory 702 is for storing application program.
The embodiments of the present invention also provide a kind of storage medium, computer program is stored in the storage medium, wherein The computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store by executing based on following steps Calculation machine program:
S1 detects the object run executed to destination client, wherein object run is used to exist by destination router Target session is established between the destination server corresponding with destination client of destination client;
S2 obtains the session information of target session;
S3, it will words information is sent to destination router, wherein session information is used to indicate destination router to carrying The data of session information are preferentially forwarded.
Optionally, storage medium is also configured to store for executing step included in the method in above-described embodiment Computer program, this is repeated no more in the present embodiment.
Optionally, in the present embodiment, those of ordinary skill in the art will appreciate that in the various methods of above-described embodiment All or part of the steps be that the relevant hardware of terminal device can be instructed to complete by program, the program can store in In one computer readable storage medium, storage medium may include: flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc..
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product When selling or using, it can store in above-mentioned computer-readable storage medium.Based on this understanding, skill of the invention Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention State all or part of the steps of method.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, and only one Kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (11)

1. a kind of transmission method of session information characterized by comprising
Detect the object run executed to destination client, wherein the object run is used for through destination router in institute It states and establishes target session between the destination server corresponding with the destination client of destination client;
Obtain the session information of the target session;
The session information is sent to the destination router, wherein the session information is used to indicate the target routing Device preferentially forwards the data for carrying the session information.
2. the method according to claim 1, wherein
Before the session information for obtaining the target session, the method also includes: it is provided by the destination router Application program api interface and the destination router establish connection;
It includes: to be sent the session information by the api interface that the session information, which is sent to the destination router, To the destination router.
3. according to the method described in claim 2, it is characterized in that, the session information for obtaining the target session includes:
The version information of the destination router is obtained by the api interface;
In the case where the version information is used to indicate the preferential forwarding strategy of destination router support, the API is verified The legitimacy of interface;
In the case where it is legal for verifying the legitimacy of the api interface, the session information of the target session is obtained.
4. the method according to claim 1, wherein the session information for obtaining the target session includes:
Read the corresponding network connection of the target session;
Obtain the five-tuple information of the network connection, wherein the five-tuple information includes: the source IP of the network connection Location, the source port number of the network connection, the purpose IP address of the network connection, the destination slogan of the network connection, Transport protocol used in the network connection;
The five-tuple information is determined as the session information.
5. the method according to claim 1, wherein the session information is sent to the destination router Later, the method also includes:
The destination router receives the session information;
Whether the data that the instruction detection that the destination router responds the session information receives carry the session letter Breath;
The destination router carries out the forwarding of highest priority to the data for carrying the session information.
6. a kind of transmitting device of session information characterized by comprising
Detection module, for detecting the object run executed to destination client, wherein the object run is for passing through mesh Mark router establishes target session between the destination server corresponding with the destination client of the destination client;
Module is obtained, for obtaining the session information of the target session;
Sending module, for the session information to be sent to the destination router, wherein the session information is used to indicate The destination router preferentially forwards the data for carrying the session information.
7. device according to claim 6, which is characterized in that
Described device further include: establish module, the application program api interface for being provided by the destination router with it is described Destination router establishes connection;
The sending module is used for: the session information being sent to the destination router by the api interface.
8. device according to claim 7, which is characterized in that the acquisition module includes:
First acquisition unit, for obtaining the version information of the destination router by the api interface;
Authentication unit, for being used to indicate the case where destination router supports preferential forwarding strategy in the version information Under, verify the legitimacy of the api interface;
Second acquisition unit, for obtaining the target meeting in the case where it is legal for verifying the legitimacy of the api interface The session information of words.
9. device according to claim 6, which is characterized in that the acquisition module includes:
Reading unit, for reading the corresponding network connection of the target session;
Third acquiring unit, for obtaining the five-tuple information of the network connection, wherein the five-tuple information includes: institute State the source IP address of network connection, the source port number of the network connection, the purpose IP address of the network connection, the network Transport protocol used in the destination slogan of connection, the network connection;
Determination unit, for the five-tuple information to be determined as the session information.
10. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, wherein the computer Program is arranged to execute method described in any one of claim 1 to 5 when operation.
11. a kind of electronic device, including memory and processor, which is characterized in that be stored with computer journey in the memory Sequence, the processor are arranged to execute side described in any one of claim 1 to 5 by the computer program Method.
CN201811354286.8A 2018-11-14 2018-11-14 Session information transmission method, device, storage medium and electronic device Active CN110166518B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811354286.8A CN110166518B (en) 2018-11-14 2018-11-14 Session information transmission method, device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811354286.8A CN110166518B (en) 2018-11-14 2018-11-14 Session information transmission method, device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN110166518A true CN110166518A (en) 2019-08-23
CN110166518B CN110166518B (en) 2021-11-19

Family

ID=67645253

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811354286.8A Active CN110166518B (en) 2018-11-14 2018-11-14 Session information transmission method, device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN110166518B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115776507A (en) * 2023-02-09 2023-03-10 广州三七极耀网络科技有限公司 Information distribution method, device, equipment and medium based on session link
CN116302618A (en) * 2023-05-17 2023-06-23 上海云脉芯联科技有限公司 Session information processing method and device

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1874217A (en) * 2005-09-27 2006-12-06 华为技术有限公司 Method for determining route
CN102811471A (en) * 2011-05-31 2012-12-05 华为终端有限公司 Internetwork transferring method for priority session accessing and user equipment
CN103023670A (en) * 2011-09-20 2013-04-03 中兴通讯股份有限公司 Message service type identifying method and message service type identifying device based on data processing installation (DPI)
CN103200152A (en) * 2012-01-04 2013-07-10 中国移动通信集团公司 Conversation processing method, server and client-side
CN104348638A (en) * 2013-07-29 2015-02-11 中国移动通信集团公司 Method for identifying service type of session flow and system and equipment thereof
CN104468384A (en) * 2014-12-22 2015-03-25 武汉绿色网络信息服务有限责任公司 System and method for achieving multi-service priorities
CN106254560A (en) * 2016-10-12 2016-12-21 腾讯科技(北京)有限公司 Information transferring method and device
CN106572461A (en) * 2016-10-11 2017-04-19 乐视控股(北京)有限公司 Data transmission control method and related device
CN106686676A (en) * 2015-11-06 2017-05-17 华为技术有限公司 Session switching method, equipment and system thereof
CN107734517A (en) * 2016-08-10 2018-02-23 中兴通讯股份有限公司 A kind of data transmission method, device and system
US20180213010A1 (en) * 2015-03-27 2018-07-26 At&T Intellectual Property I, L.P. Method and system for providing media services in a communication system
US20180324576A1 (en) * 2016-04-29 2018-11-08 Motorola Mobility Llc Procedures to support network slicing in a wireless communication system

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1874217A (en) * 2005-09-27 2006-12-06 华为技术有限公司 Method for determining route
CN102811471A (en) * 2011-05-31 2012-12-05 华为终端有限公司 Internetwork transferring method for priority session accessing and user equipment
CN103023670A (en) * 2011-09-20 2013-04-03 中兴通讯股份有限公司 Message service type identifying method and message service type identifying device based on data processing installation (DPI)
CN103200152A (en) * 2012-01-04 2013-07-10 中国移动通信集团公司 Conversation processing method, server and client-side
CN104348638A (en) * 2013-07-29 2015-02-11 中国移动通信集团公司 Method for identifying service type of session flow and system and equipment thereof
CN104468384A (en) * 2014-12-22 2015-03-25 武汉绿色网络信息服务有限责任公司 System and method for achieving multi-service priorities
US20180213010A1 (en) * 2015-03-27 2018-07-26 At&T Intellectual Property I, L.P. Method and system for providing media services in a communication system
CN106686676A (en) * 2015-11-06 2017-05-17 华为技术有限公司 Session switching method, equipment and system thereof
US20180324576A1 (en) * 2016-04-29 2018-11-08 Motorola Mobility Llc Procedures to support network slicing in a wireless communication system
CN107734517A (en) * 2016-08-10 2018-02-23 中兴通讯股份有限公司 A kind of data transmission method, device and system
CN106572461A (en) * 2016-10-11 2017-04-19 乐视控股(北京)有限公司 Data transmission control method and related device
CN106254560A (en) * 2016-10-12 2016-12-21 腾讯科技(北京)有限公司 Information transferring method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
EUNSOOK KIM, SHIN GAK KANG: ""A Router-Assisted Session Tree Configuration Mechanism for Reliable Multicast "", 《IEEE COMMUNICATIONS LETTERS》 *
曹海涛: ""基于集群节点间即时拷贝的会话同步技术研究"", 《计算机系统应用》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115776507A (en) * 2023-02-09 2023-03-10 广州三七极耀网络科技有限公司 Information distribution method, device, equipment and medium based on session link
CN116302618A (en) * 2023-05-17 2023-06-23 上海云脉芯联科技有限公司 Session information processing method and device
CN116302618B (en) * 2023-05-17 2023-09-12 上海云脉芯联科技有限公司 Session information processing method and device

Also Published As

Publication number Publication date
CN110166518B (en) 2021-11-19

Similar Documents

Publication Publication Date Title
CN108234235B (en) Method, network device and computer-readable storage medium for data monitoring
CN105765946B (en) Support the method and system of the service chaining in data network
CN101218575B (en) Techniques for migrating a point to point protocol to a protocol for an access network
CN100585565C (en) Collection relates to the method and the data communications equipment of the information of network path
CN104067591B (en) Equipment, system and method for the communication of global real time remote
CN108833238A (en) Equipment matches network method
JP6674007B1 (en) In-vehicle communication device, communication control method, and communication control program
CN109076018A (en) Utilize IS-IS exposure maximum node and/or the technology of Link Fragmentation identifier depth
CN104468368B (en) Configure the method and device of bgp neighbor
CN105704206B (en) The implementation method of ethernet communication is carried out with LED display control card
CN105474602A (en) Method, device and equipment of identifying attack flow in software defined network
US9515926B2 (en) Communication system, upper layer switch, control apparatus, switch control method, and program
US9722919B2 (en) Tying data plane paths to a secure control plane
CN103840976B (en) Communication means, light device and the network equipment
KR102066978B1 (en) Method and apparatus for data plane for monitoring differentiated service code point (DSCP) and explicit congestion notification (ECN)
CN103414725A (en) Method and device used for detecting and filtering data message
CN109691026A (en) Method and apparatus for updating multiple multiprotocol label switching (MPLS) two-way converting detection (BFD) sessions
CN106470213A (en) A kind of source tracing method of attack message and device
CN110166518A (en) Transmission method, device, storage medium and the electronic device of session information
CN108141409A (en) Communication system, address notice device, communication control unit, terminal, communication means and program
CN105591967B (en) A kind of data transmission method and device
US10177973B2 (en) Communication apparatus, communication method, and communication system
JP2008048131A (en) P2p traffic monitoring and control system, and method therefor
CN107786386A (en) To for verifying that the two-way converting of multicast connection detects(BFD)The selectivity transmission of message
CN106254252A (en) The delivery method of a kind of Flow spec route 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