CN109039904B - Application routing method and device - Google Patents

Application routing method and device Download PDF

Info

Publication number
CN109039904B
CN109039904B CN201810866249.9A CN201810866249A CN109039904B CN 109039904 B CN109039904 B CN 109039904B CN 201810866249 A CN201810866249 A CN 201810866249A CN 109039904 B CN109039904 B CN 109039904B
Authority
CN
China
Prior art keywords
intelligent terminal
local area
area network
file
direct connection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810866249.9A
Other languages
Chinese (zh)
Other versions
CN109039904A (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.)
Wuhan Greenet Information Service Co Ltd
Original Assignee
Wuhan Greenet Information Service 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 Wuhan Greenet Information Service Co Ltd filed Critical Wuhan Greenet Information Service Co Ltd
Priority to CN201810866249.9A priority Critical patent/CN109039904B/en
Publication of CN109039904A publication Critical patent/CN109039904A/en
Application granted granted Critical
Publication of CN109039904B publication Critical patent/CN109039904B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/302Route determination based on requested QoS
    • H04L45/306Route determination based on the nature of the carried application
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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

Landscapes

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

Abstract

The invention relates to the technical field of computer networks, and provides an application routing method and device. Analyzing a receiving end of the streaming data packet, and determining that a second intelligent terminal serving as the receiving end of the streaming data packet and the first intelligent terminal are in the same local area network range; acquiring a file access log sent by a first intelligent terminal, and determining that the content recorded in the file access log is matched with the related information of the streaming data packet in the determined local area network range; and establishing a local area network direct connection channel between the first intelligent terminal and the second intelligent terminal, and completing the transmission process of the file through the local area network direct connection channel. The invention improves the compatibility between the common communication software based on server connection and the large file transmission realized by the local area network, and reduces the redundancy of the manual intervention operation of the user.

Description

Application routing method and device
[ technical field ] A method for producing a semiconductor device
The present invention relates to the field of computer network technologies, and in particular, to an application routing method and apparatus.
[ background of the invention ]
In the prior art, various chat tools usually support file transmission, such as QQ, MSN, nailing and the like, however, most of them are based on a server to complete chat and file transmission channel establishment, that is, their file transmission is completed based on server relay. Therefore, the transmission speed in the conventional local area network also lingers in the range of 900K-3M, which is also a transmission capability performance in the scenario where the bandwidth is 10M.
The file transmission tool which is similar to a flying pigeon and specially designed for a local area network also appears earlier, but the file transmission tool is inconvenient to use, the flying pigeon matching of a sending end and a receiving end needs to be completed in advance, the meaning of an online neighbor is actually found, and then the transmission of the local area network can be initiated.
In view of the above, overcoming the drawbacks of the prior art is an urgent problem in the art.
[ summary of the invention ]
The technical problem to be solved by the invention is how to realize a chat tool which is compatible with the existing chat tools and can intelligently improve the file transmission efficiency between intelligent terminals within the range of a local area network.
The invention adopts the following technical scheme:
in a first aspect, the present invention provides an application routing method, for monitoring a stream data packet sent by a first intelligent terminal, including:
analyzing a receiving end of the streaming data packet, and determining that a second intelligent terminal serving as the receiving end of the streaming data packet and the first intelligent terminal are in the same local area network range;
acquiring a file access log sent by a first intelligent terminal, and determining that the content recorded in the file access log is matched with the related information of the streaming data packet in the determined local area network range;
and establishing a local area network direct connection channel between the first intelligent terminal and the second intelligent terminal, and completing the transmission process of the file through the local area network direct connection channel.
Preferably, the file transfer log is implemented by a first driver installed at the first intelligent terminal side, specifically:
the first driver is used for monitoring a specified folder, a specified file or a data object with a specified size in the first intelligent terminal;
and when the first driver confirms that the monitored specified folder, specified file or data object with specified size is accessed, the first driver sends a corresponding file access log to the router through the first intelligent terminal, so that the router determines that the content recorded in the file access log is matched with the related information of the stream data packet in the range of the determined local area network.
Preferably, the file access log is obtained by parsing, by the first driver, a corresponding application identifier according to a process of accessing the file, and performing associated storage on two or more of the application identifier, a file name, a file size, a file number, a file address, and access time.
Preferably, the establishing a local area network direct connection channel between the first intelligent terminal and the second intelligent terminal specifically includes:
after determining that the content recorded in the file access log is matched with the related information of the stream data packet in the range of the determined local area network, the router sends direct connection requests to the first intelligent terminal and the second intelligent terminal respectively;
the direct connection request carries a file identifier and related information of the first intelligent terminal or related information of the second intelligent terminal, so that a first driver in the first intelligent terminal presents the direct connection request on the first intelligent terminal, and a second driver in the second intelligent terminal presents the direct connection request on the second intelligent terminal;
and after receiving the direct connection agreement returned by the first intelligent terminal and the second intelligent terminal, the router completes the subsequent establishment of the local area network direct connection channel between the first intelligent terminal and the second intelligent terminal, and completes the transmission process of the file through the local area network direct connection channel.
Preferably, the determining that the content recorded in the file access log matches with the related information of the stream data packet in the determined local area network range specifically includes:
the file name recorded in the log is matched with the file name analyzed from the stream data packet, and the difference distance between the access time recorded in the log and the time tag analyzed from the stream data packet is within a preset range.
Preferably, after the local area network direct connection channel between the first intelligent terminal and the second intelligent terminal is established, packet loss or timeout processing is performed on the stream data packet used for determining that the first intelligent terminal and the second intelligent terminal are located within the range of the local area network.
In a second aspect, the present invention further provides an application routing method, which monitors a stream data packet sent by a first intelligent terminal, and includes:
analyzing a receiving end of the streaming data packet, and determining that a second intelligent terminal serving as the receiving end of the streaming data packet and the first intelligent terminal are in the same local area network range;
sending a local area network direct connection channel establishment request to a first intelligent terminal and a second intelligent terminal;
after response messages of the first intelligent terminal and the second intelligent terminal for confirming establishment of the local area network direct connection channel are obtained, the local area network direct connection channel of the first intelligent terminal and the second intelligent terminal is established, and data stream transmission between the first intelligent terminal and the second intelligent terminal is completed through the local area network direct connection channel.
Preferably, the router periodically sends heartbeat messages to the first intelligent terminal and the second intelligent terminal, and determines whether to continuously maintain the local area network related information of the first intelligent terminal and the second intelligent terminal stored in the router according to the response of the heartbeat messages; the first intelligent terminal and the second intelligent terminal local area network related information are used for directly establishing local area network direct connection channels of the first intelligent terminal and the second intelligent terminal through the maintained local area network related information when the router receives a local area network direct connection file sending request in the follow-up process.
Preferably, the router determines that the second intelligent terminal and the first intelligent terminal are within the range of the local area network, and the router returns an indication message to the first intelligent terminal, wherein the indication message is used for the first intelligent terminal to confirm that the second intelligent terminal and the first intelligent terminal are in the same local area network, and in a corresponding timely communication window of the first intelligent terminal, an account corresponding to the second intelligent terminal is given a local area network identifier and a corresponding local area network direct connection channel trigger button, so that the first intelligent terminal actively initiates a local area network direct connection request with the second intelligent terminal.
In a third aspect, the present invention further provides an application routing apparatus, configured to implement the application routing method in the first aspect, where the apparatus includes:
at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor and programmed to perform the application routing method of the first aspect.
In a fourth aspect, the present invention also provides a non-transitory computer storage medium storing computer-executable instructions for execution by one or more processors for performing the application routing method of the first aspect.
The invention provides a method for confirming the attribution of a streaming data packet by combining a file access log at a first intelligent terminal side with an application conclusion of the attribution of the streaming data packet obtained by analyzing by a router, thereby realizing the confirmation that the first intelligent terminal sending the streaming data packet and a second intelligent terminal receiving the streaming data packet belong to the same local area network, establishing a direct connection channel of the local area networks of the first intelligent terminal and the second intelligent terminal, and further completing the transmission of a file through the direct connection channel of the local area network according to the confirmed file name in the file access log. The compatibility between common communication software based on server connection and large file transmission realized by a local area network is improved, and the redundancy of manual intervention operation of a user is reduced.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below. It is obvious that the drawings described below are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a schematic flowchart of an application routing method according to an embodiment of the present invention;
FIG. 2 is a diagram of a chat window of a prior art instant messenger;
fig. 3 is a schematic diagram illustrating an effect of presenting a lan direct connection transmission interface in an existing instant messaging software interface according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of establishing a local area network direct connection channel in an application routing method according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of another application routing method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an application routing apparatus according to an embodiment of the present invention.
[ detailed description ] embodiments
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
Example 1:
the embodiment 1 of the invention provides an application routing method, which is mainly characterized in that the direct connection transmission of a local area network provided by the invention is newly added in the customized environment under the condition that the existing instant communication tool exists. Specifically, the router listens to a stream packet sent by the first intelligent terminal, as shown in fig. 1, the method includes:
in step 201, the router parses the receiving end of the streaming data packet, and determines that the second intelligent terminal as the receiving end of the streaming data packet is in the same lan range as the first intelligent terminal.
While the general router process is analyzed to the data link layer to complete the basic data routing task, for the application route proposed by the embodiment of the present invention, it is necessary to coordinate the second intelligent terminal of the opposite end obtained by the internet layer and the data link layer to be within the same range of the local area network as the first intelligent terminal. Further parsing to the transport layer (TCP/UDP) identifies the size, file name, application name, etc. of the transferred file for matching analysis with the file access log obtained in step 202.
In step 202, the router acquires the file access log sent by the first intelligent terminal, and determines that the content recorded in the file access log matches with the related information of the stream data packet in the determined local area network range.
The file name recorded in the log is matched with the file name analyzed from the stream data packet, and the difference distance between the access time recorded in the log and the time tag analyzed from the stream data packet is within a preset range.
In step 203, the router establishes a local area network direct connection channel between the first intelligent terminal and the second intelligent terminal, and completes the file transmission process through the local area network direct connection channel.
In the embodiment of the present invention, in view of the interchangeability of the process of the first intelligent terminal user using the method according to the embodiment of the present invention, it is preferable that the router establishes the lan direct connection channel between the first intelligent terminal and the second intelligent terminal, and at the same time, presents a lan direct connection transmission interface on the first intelligent terminal side, and correspondingly, needs to set an associated operation button on the lan direct connection transmission interface, including: cancel transfer, continue transfer, select transfer object, etc. As shown in fig. 2, an effect schematic diagram of common instant messaging software is presented on an interface of an existing personal PC when the personal PC is used as a first intelligent terminal, and further, an effect schematic diagram of an effect after the local area network direct-connection transmission interface according to the embodiment of the present invention is combined is shown in fig. 3.
The embodiment of the invention provides a conclusion of application to which a streaming data packet belongs by combining a file access log at a first intelligent terminal side and analysis of a router, so that confirmation that the first intelligent terminal sending the streaming data packet and a second intelligent terminal receiving the streaming data packet belong to the same local area network is realized, a direct connection channel of the local area networks of the first intelligent terminal and the second intelligent terminal is established, and further, the confirmed file name in the file access log is used for enabling the file to be transmitted through the direct connection channel of the local area network. The compatibility between common communication software based on server connection and large file transmission realized by a local area network is improved, and the redundancy of manual intervention operation of a user is reduced.
In the embodiment of the present invention, after the local area network direct connection channel between the first intelligent terminal and the second intelligent terminal is established, a packet loss or timeout processing is performed on a stream data packet used for determining that the first intelligent terminal and the second intelligent terminal are within the range of the local area network. Although this processing method will have a certain effect on the original use of the instant messenger, it is also in an incompatible mode (i.e. an un-customized method), and it is clear for the user why the transmission channel has been transferred to the newly established lan direct channel, so that the original use of the instant messenger to transmit the file to display the transmission failure is one of the display results that can be received in the user's view.
In the embodiment of the present invention, there is a preferred implementation manner, in which, without modifying program codes of existing server-based online instant messaging software (also referred to as a chat tool in the embodiments of the present invention), the generation of the file transfer log and the sending of the file transfer log to the router are implemented by a first driver installed on the first intelligent terminal side, specifically:
the first driver is used for monitoring a specified folder, a specified file or a data object with a specified size in the first intelligent terminal; the specified folder comprises all files under the folder, the size of the folder, the number of files under the folder and the like; the specified document contains specific file types, generation time and the like; and a data object of a specified size generally refers to a predetermined interval to which a single file size belongs.
And when the first driver confirms that the monitored specified folder, specified file or data object with specified size is accessed, the first driver sends a corresponding file access log to the router through the first intelligent terminal, so that the router determines that the content recorded in the file access log is matched with the related information of the stream data packet in the range of the determined local area network. Wherein, the access mode comprises finding the target object (including a file or a folder) by opening; the target object can also be dragged to the instant communication software in a dragging mode.
Therefore, in a specific implementation process, the first driver may be a process that runs in a background of the first intelligent terminal and is accessed by monitoring the specified folder, the specified file, or the data object of the specified size, and may also adopt another alternative implementation manner, and also may provide the file access log to the router, specifically:
the first driver monitors application processes on the first intelligent terminal side and data packets sent by the application processes, confirms that a first application running on the first intelligent terminal is sending a file by analyzing the corresponding data packets, and records a corresponding analysis result into a file access log so as to send the file to a router in a subsequent mode to be used as one of analysis bases for whether a local area network direct connection channel is established.
In the embodiment of the present invention, the expression form of the file access log specifically is that the first driver parses out a corresponding application identifier according to a process of accessing the file, and performs associated storage on two or more of the application identifier, a file name, a file size, a file number, a file address, and access time. The simplest storage mode is to store the application program identifier, the file name and the access time in an associated manner, so that the requirements of conditions required for subsequently determining to establish a direct connection channel of the local area network and finding a corresponding file object can be met. Furthermore, if the number of files and the file addresses are recorded in the file access log, feedback of transmission progress can be further improved after the direct connection channel of the local area network is established, and the positioning speed of the file objects is improved at the initial transmission time.
In this embodiment of the present invention, for the establishing of the local area network direct connection channel between the first intelligent terminal and the second intelligent terminal in step 203, a specific implementation manner is further provided, as shown in fig. 4, specifically including:
in step 301, after determining that the content recorded in the file access log matches with the related information of the streaming data packet in the range of the determined local area network, the router sends a direct connection request to the first intelligent terminal and the second intelligent terminal, respectively.
In step 302, the direct connection request carries a file identifier and related information of the first intelligent terminal or related information of the second intelligent terminal, so that a first driver in the first intelligent terminal presents the direct connection request on the first intelligent terminal, and a second driver in the second intelligent terminal presents the direct connection request on the second intelligent terminal.
In step 303, after receiving the agreement on direct connection returned by the first intelligent terminal and the second intelligent terminal, the router completes subsequent establishment of a local area network direct connection channel between the first intelligent terminal and the second intelligent terminal, and completes the transmission process of the file through the local area network direct connection channel.
Example 2
After the embodiment 1 provides an application routing method with low compatibility with the existing instant messaging software, the embodiment of the present invention designs an application routing method from a customization perspective, that is, a method for establishing a direct connection channel of a local area network related in the embodiment 1 of the present invention and a method for making the instant messaging software into a compatible manner are implemented. In a specific implementation, the method monitors a stream data packet sent by the first intelligent terminal, as shown in fig. 5, and includes:
in step 401, the router parses the receiving end of the streaming data packet, and determines that the second intelligent terminal serving as the receiving end of the streaming data packet is in the same lan range as the first intelligent terminal.
While the general router process is analyzed to the data link layer to complete the basic data routing task, for the application route proposed by the embodiment of the present invention, it is necessary to coordinate the second intelligent terminal of the opposite end obtained by the internet layer and the data link layer to be within the same range of the local area network as the first intelligent terminal.
In step 402, the router sends a request for establishing a direct connection channel of the local area network to the first intelligent terminal and the second intelligent terminal.
Compared with the embodiment 1, the embodiment of the invention integrates the improved point with the existing instant communication software, and the router does not need to generate a file access log any more, because the relevant information of the file to be sent by the instant communication software can be fed back to the router by the instant communication software.
In step 403, after acquiring a response message confirming establishment of the lan direct connection channel between the first intelligent terminal and the second intelligent terminal, the router establishes the lan direct connection channel between the first intelligent terminal and the second intelligent terminal, and completes transmission of a data stream between the first intelligent terminal and the second intelligent terminal through the lan direct connection channel.
The embodiment of the invention provides a conclusion of application to which a streaming data packet belongs by combining a file access log at a first intelligent terminal side and analysis of a router, so that confirmation that the first intelligent terminal sending the streaming data packet and a second intelligent terminal receiving the streaming data packet belong to the same local area network is realized, a direct connection channel of the local area networks of the first intelligent terminal and the second intelligent terminal is established, and further, the confirmed file name in the file access log is used for enabling the file to be transmitted through the direct connection channel of the local area network. The compatibility between common communication software based on server connection and large file transmission realized by a local area network is improved, and the redundancy of manual intervention operation of a user is reduced.
Therefore, in step 401 and 402 of the embodiment of the present invention, when the first intelligent terminal and the second intelligent terminal generate the first streaming data packet, the network link between the first intelligent terminal and the second intelligent terminal is established in a local area network manner based on the local area network analysis result of the router, and for the first intelligent terminal, the network link except the second intelligent terminal is represented as a normal internet connection manner; and when the router receives the indication message of the first intelligent terminal and indicates that a third intelligent terminal is added between the first intelligent terminal and the second intelligent terminal to form a chat group, the router ends the direct connection channel of the local area network between the first intelligent terminal and the second intelligent terminal, so that the first intelligent terminal and the second intelligent terminal are in a normal internet connection mode. In order to ensure that the first intelligent terminal and the second intelligent terminal can be in a normal internet connection state during the lan direct connection transmission process, it is preferable that two parallel channel links (a lan direct connection channel and an internet connection channel) are maintained between the router and the first intelligent terminal, and whether the lan direct connection channel is maintained or not can be further maintained in the following heartbeat message manner. Specifically, the method comprises the following steps:
the router periodically sends heartbeat messages to the first intelligent terminal and the second intelligent terminal, and determines whether to continuously maintain the local area network related information of the first intelligent terminal and the second intelligent terminal stored by the router according to the response of the heartbeat messages (namely, the router sends the heartbeat messages through a local area network protocol, and if the timely feedback of the first intelligent terminal and/or the second intelligent terminal is not received, the local area network direct connection channel between the first intelligent terminal and the second intelligent terminal is determined to be terminated); the first intelligent terminal and the second intelligent terminal local area network related information are used for directly establishing local area network direct connection channels of the first intelligent terminal and the second intelligent terminal through the maintained local area network related information when the router receives a local area network direct connection file sending request in the follow-up process.
In combination with the embodiment of the present invention, there is also a preferred implementation scheme that, for the router, it is determined that the second intelligent terminal and the first intelligent terminal are within the range of the local area network, the router returns an indication message to the first intelligent terminal, where the indication message is used for the first intelligent terminal to confirm that the second intelligent terminal and the first intelligent terminal are in the same local area network, and in a corresponding instant communication window of the first intelligent terminal, an account corresponding to the second intelligent terminal is given with a local area network identifier and a corresponding local area network direct connection channel trigger button, so that the first intelligent terminal actively initiates a local area network direct connection request with the second intelligent terminal.
Example 3:
how the first driver involved in embodiments 1 and 2 of the present invention implements monitoring of target objects (including files and folders), extracting core functions therein is described as follows:
in the embodiment of the present invention, a folder is used as a description object, and the corresponding file monitoring mode may be completed with reference to the following implementation contents of the folder, which is not described herein again.
Before realizing the corresponding function, firstly, the related trigger action of the file is defined as follows:
and (2) ACCESS: triggered by reading the contents of a document, e.g. by streaming
When traversing the content in the folder, storing all File filePath directories into mFilePaths, firstly judging whether the path parameter of the oneevent event is the ACCESS event, if not, using the path to create a File object, if so, determining the File object is the FilePath of the newly-created folder, and performing required operation.
When the file information in a subfolder under a certain folder monitored by the FileObserver is changed, the provided path is only the path of the subfolder and is not the path of a specific file, so that when monitoring the operation of all files, preferably, FileObserver monitoring is set for each folder, and each file can be specifically read, so that the situation that certain applications cannot monitor the files after reading the files is avoided; for example, the homefile directory is monitored, when Gallery reads/homex/xxxx, the homefile directory is monitored, and when Gallery operates/homet/test/xxxx, the homefile directory is not monitored, so that when the embodiment of the present invention is implemented, FileObserver monitoring is respectively set for the two directories of homee and homet/test, so that the above problem can be solved.
The following specifically takes monitoring directory read events of the Home as an example:
newly establishing a similar HomeListener to inherit FileObserver, wherein reference codes are as follows:
Figure BDA0001751003610000111
the oneevent is a callback, the event is triggered after the system monitors the event, the parameter event is the event type mentioned above, corresponding processing can be carried out according to the type, and the parameter path is a directory of the triggering event.
2. How to use it, the reference codes are as follows:
HomeListener listener=new HomeListener("/HOME");
// Start listening
listener.startWatching();
/**
The method is used for writing the conventional file access log content, can be used for consulting the existing log writing method, and does not perform excessive content presentation.
*/
// stop listening last
listener.stopWatching();
Example 4:
fig. 6 is a schematic structural diagram of an application routing apparatus according to an embodiment of the present invention. The application routing means of the present embodiment comprises one or more processors 21 and a memory 22. In fig. 6, one processor 21 is taken as an example.
The processor 21 and the memory 22 may be connected by a bus or other means, such as the bus connection in fig. 6.
The memory 22, which is a non-volatile computer-readable storage medium for an application routing method and apparatus, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the application routing method and corresponding program instructions of embodiment 1. The processor 21 executes various functional applications of the application routing apparatus and data processing, i.e., implements the application routing method of embodiment 1 and/or embodiment 2, by running the nonvolatile software program stored in the memory 22.
The memory 22 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 22 may optionally include memory located remotely from the processor 21, and these remote memories may be connected to the processor 21 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The program instructions are stored in the memory 22, and when executed by the one or more processors 21, perform the application routing method in embodiment 1 and/or embodiment 2 described above, for example, perform the steps shown in fig. 1 and/or fig. 4 described above.
The intelligent devices in embodiments of the present invention may exist in a variety of forms, such as:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) The ultra-mobile personal computer equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play video content, and generally also have mobile internet access features. This type of device comprises: video players, handheld game consoles, and intelligent toys and portable car navigation devices.
(4) A server: the device for providing the computing service comprises a processor, a hard disk, a memory, a system bus and the like, and the server is similar to a general computer architecture, but has higher requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like because of the need of providing high-reliability service.
It should be noted that, because the information interaction and execution process between the units in the apparatus are based on the same concept as the processing method embodiment of the present invention, specific contents may refer to the description in the method embodiment of the present invention, and are not described herein again.
Those of ordinary skill in the art will appreciate that all or part of the steps of the various methods of the embodiments may be implemented by associated hardware as instructed by a program, which may be stored on a computer-readable storage medium, which may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (9)

1. An application routing method is characterized in that a stream data packet sent by a first intelligent terminal is monitored, and the method comprises the following steps:
analyzing a receiving end of the streaming data packet, and determining that a second intelligent terminal serving as the receiving end of the streaming data packet and the first intelligent terminal are in the same local area network range;
acquiring a file access log sent by a first intelligent terminal, and determining that the content recorded in the file access log is matched with the determined related information of the streaming data packets in the same local area network range;
the related information of the stream data packet comprises two or more items of application program identification, file name, file size, file number, file address and access time;
establishing a local area network direct connection channel between the first intelligent terminal and the second intelligent terminal, and completing a file transmission process through the local area network direct connection channel;
the determining that the content recorded in the file access log is matched with the determined related information of the stream data packet in the same local area network range specifically includes:
the file name recorded in the log is matched with the file name analyzed from the stream data packet, and the difference distance between the access time recorded in the log and the time tag analyzed from the stream data packet is within a preset range.
2. The application routing method according to claim 1, wherein the file access log is implemented by a first driver installed at the first intelligent terminal, specifically:
the first driver is used for monitoring a specified folder, a specified file or a data object with a specified size in the first intelligent terminal;
and when the first driver confirms that the monitored specified folder, specified file or data object with specified size is accessed, the first driver sends the corresponding file access log to the router through the first intelligent terminal, so that the router determines that the content recorded in the file access log is matched with the determined related information of the stream data packet in the same local area network range.
3. The application routing method according to claim 2, wherein the file access log is specifically obtained by parsing, by the first driver, a corresponding application identifier according to a process of accessing the file, and storing two or more of the application identifier, a file name, a file size, a file number, a file address, and access time in an associated manner.
4. The application routing method according to claim 1, wherein the establishing of the local area network direct connection channel between the first intelligent terminal and the second intelligent terminal specifically includes:
after determining that the content recorded in the file access log is matched with the determined related information of the stream data packet in the same local area network range, the router respectively sends direct connection requests to the first intelligent terminal and the second intelligent terminal;
the direct connection request carries a file identifier and related information of the first intelligent terminal or related information of the second intelligent terminal, so that a first driver in the first intelligent terminal presents the direct connection request on the first intelligent terminal, and a second driver in the second intelligent terminal presents the direct connection request on the second intelligent terminal;
and after receiving the direct connection agreement returned by the first intelligent terminal and the second intelligent terminal, the router completes the subsequent establishment of the local area network direct connection channel between the first intelligent terminal and the second intelligent terminal, and completes the transmission process of the file through the local area network direct connection channel.
5. The application routing method according to claim 1, wherein after the lan direct channel between the first intelligent terminal and the second intelligent terminal is established, a packet loss or timeout process is performed on a stream packet used for determining that the first intelligent terminal and the second intelligent terminal are within the range of the lan.
6. An application routing method is characterized in that a stream data packet sent by a first intelligent terminal is monitored, and the method comprises the following steps:
analyzing a receiving end of the streaming data packet, and determining that a second intelligent terminal serving as the receiving end of the streaming data packet and the first intelligent terminal are in the same local area network range; specifically, the first intelligent terminal and the second intelligent terminal are confirmed to belong to the same local area network by combining a file access log of the first intelligent terminal and a stream data packet obtained by analyzing by a router;
sending a local area network direct connection channel establishment request to a first intelligent terminal and a second intelligent terminal;
after response messages of the first intelligent terminal and the second intelligent terminal for confirming establishment of the local area network direct connection channel are obtained, the local area network direct connection channel of the first intelligent terminal and the second intelligent terminal is established, and data stream transmission between the first intelligent terminal and the second intelligent terminal is completed through the local area network direct connection channel.
7. The application routing method according to claim 6, wherein the router periodically sends heartbeat messages to the first intelligent terminal and the second intelligent terminal, and determines whether to continue to maintain the local area network related information of the first intelligent terminal and the second intelligent terminal stored in the router according to the response of the heartbeat messages; the first intelligent terminal and the second intelligent terminal local area network related information are used for directly establishing local area network direct connection channels of the first intelligent terminal and the second intelligent terminal through the maintained local area network related information when the router receives a local area network direct connection file sending request in the follow-up process.
8. The application routing method according to claim 7, wherein it is determined for the router that the second intelligent terminal and the first intelligent terminal are within the range of the local area network, the router returns an indication message to the first intelligent terminal, the indication message is used for the first intelligent terminal to confirm that the second intelligent terminal and the first intelligent terminal are in the same local area network, and in a corresponding instant messaging window of the first intelligent terminal, an account corresponding to the second intelligent terminal is given a local area network identifier and a corresponding local area network direct connection channel trigger button, so that the first intelligent terminal actively initiates a local area network direct connection request with the second intelligent terminal.
9. An application routing apparatus comprising at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor and programmed to perform the application routing method of any of claims 1-8.
CN201810866249.9A 2018-08-01 2018-08-01 Application routing method and device Active CN109039904B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810866249.9A CN109039904B (en) 2018-08-01 2018-08-01 Application routing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810866249.9A CN109039904B (en) 2018-08-01 2018-08-01 Application routing method and device

Publications (2)

Publication Number Publication Date
CN109039904A CN109039904A (en) 2018-12-18
CN109039904B true CN109039904B (en) 2020-12-22

Family

ID=64648595

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810866249.9A Active CN109039904B (en) 2018-08-01 2018-08-01 Application routing method and device

Country Status (1)

Country Link
CN (1) CN109039904B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605138A (en) * 2009-07-14 2009-12-16 中兴通讯股份有限公司 Document transmission method and terminal
CN102724138A (en) * 2012-06-28 2012-10-10 奇智软件(北京)有限公司 Information sharing method and device for instant messaging
CN102833337A (en) * 2012-08-30 2012-12-19 北京星网锐捷网络技术有限公司 FTP (File Transfer Protocol) file uploading, downloading method and device
US8732140B2 (en) * 2011-05-24 2014-05-20 Red Lambda, Inc. Methods for storing files in a distributed environment
CN105430642A (en) * 2015-10-23 2016-03-23 小米科技有限责任公司 File transmission method and apparatus
CN105554062A (en) * 2015-11-30 2016-05-04 东莞酷派软件技术有限公司 Method, associated device and system of file transmission
CN105872039A (en) * 2016-03-29 2016-08-17 乐视控股(北京)有限公司 Method for transmitting file between terminal devices, terminal device and a file transmission system
CN106534296A (en) * 2016-11-09 2017-03-22 江麓机电集团有限公司 Distributed file transfer method and transfer platform

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605138A (en) * 2009-07-14 2009-12-16 中兴通讯股份有限公司 Document transmission method and terminal
US8732140B2 (en) * 2011-05-24 2014-05-20 Red Lambda, Inc. Methods for storing files in a distributed environment
CN102724138A (en) * 2012-06-28 2012-10-10 奇智软件(北京)有限公司 Information sharing method and device for instant messaging
CN102833337A (en) * 2012-08-30 2012-12-19 北京星网锐捷网络技术有限公司 FTP (File Transfer Protocol) file uploading, downloading method and device
CN105430642A (en) * 2015-10-23 2016-03-23 小米科技有限责任公司 File transmission method and apparatus
CN105554062A (en) * 2015-11-30 2016-05-04 东莞酷派软件技术有限公司 Method, associated device and system of file transmission
CN105872039A (en) * 2016-03-29 2016-08-17 乐视控股(北京)有限公司 Method for transmitting file between terminal devices, terminal device and a file transmission system
CN106534296A (en) * 2016-11-09 2017-03-22 江麓机电集团有限公司 Distributed file transfer method and transfer platform

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
《Distributed programming in more efficient remote shell environment with direct data forwarding and lazy connection release》;Soo-Mee Yang;《Proceedings International Phoenix Conference on Computers and Communications》;19951231;全文 *
《一种基于局域网的文件传输技术》;姚占东;《计算机应用》;20040630;全文 *
《基于局域网的文件传输功能设计与实现》;陈娟;《计算机光盘软件与应用》;20150331;全文 *

Also Published As

Publication number Publication date
CN109039904A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
US9128952B2 (en) File folder transmission on network
EP3297213A1 (en) Method and apparatus for identifying application information in network traffic
US9774642B2 (en) Method and device for pushing multimedia resource and display terminal
JP2018531527A6 (en) Method and apparatus for identifying application information in network traffic
CN115004673B (en) Message pushing method, device, electronic equipment and computer readable medium
CN104462033B (en) The method and apparatus of edit operation is realized in equipment room
CN103916294A (en) Identification method and device for protocol type
CN109561054B (en) Data transmission method, controller and access device
CN111917562B (en) Broadcast message forwarding method, device, equipment and storage medium
CN104661191A (en) Local area network communication method, system and terminal, and information sharing device
JP2013504806A (en) Method, apparatus and system for file transfer based on file directory
CN107528767B (en) Session processing method and device
CN111541555A (en) Group chat optimization method and related product
CN109660496B (en) Method and device for acquiring verification information, method and device for verifying and releasing resources and electronic equipment
CN114500633B (en) Data forwarding method, related device, program product and data transmission system
CN112398754B (en) Data transmission method, device, medium, electronic equipment and network access equipment
CN113242462A (en) Screen projection method and device for realizing convergence terminal
CN109039904B (en) Application routing method and device
CN113630418A (en) Network service identification method, device, equipment and medium
CN106453663B (en) Improved storage expansion method and device based on cloud service
CN102025730B (en) Data transmission device based on HTTP protocol and implementation method thereof
CN110166487B (en) Local area network equipment information transmission method, main equipment, storage medium and intelligent equipment
CN111600808A (en) Information processing method and device for instant messaging
CN115348333B (en) Data transmission method, system and equipment based on UDP double-end communication interaction
US9634963B2 (en) Method and system for handling message on instant messaging open platform

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