CN109039904A - A kind of application method for routing and device - Google Patents
A kind of application method for routing and device Download PDFInfo
- Publication number
- CN109039904A CN109039904A CN201810866249.9A CN201810866249A CN109039904A CN 109039904 A CN109039904 A CN 109039904A CN 201810866249 A CN201810866249 A CN 201810866249A CN 109039904 A CN109039904 A CN 109039904A
- Authority
- CN
- China
- Prior art keywords
- intelligent terminal
- area network
- local area
- file
- stream packets
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/302—Route determination based on requested QoS
- H04L45/306—Route determination based on the nature of the carried application
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup 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 present invention relates to technical field of the computer network, a kind of application method for routing and device are provided.Wherein method includes parsing the receiving end of the stream packets, and the second intelligent terminal and first intelligent terminal for being determined as the receiving end of the stream packets are within the scope of same local area network;The file access log that the first intelligent terminal sends over is obtained, determines the correlated information match of the stream packets within the scope of the local area network for the content and above-mentioned determination recorded in file access log;The local area network direct channel of first intelligent terminal Yu second intelligent terminal is established, and completes the transmission process of the file by the local area network direct channel.The present invention improves the compatibility between the big file transmission that the common communication software based on server connection and local area network are realized, reduces the operational redundancy of user's artificial intervention.
Description
[technical field]
The present invention relates to technical field of the computer network, more particularly to a kind of application method for routing and device.
[background technique]
In the prior art, various chat tools usually all be support file transmit, such as QQ, MSN, nail follow closely etc.,
However, they are all based on server mostly to complete chat and the foundation of file transmission channel, that is to say, that they pass file
Defeated be built upon on the basis of transit server is completed.Therefore, the transmission speed in conventional local area network is also in 900K-3M range
It hovers, this still transmittability performance in the case where bandwidth is the scene of 10M.
Previously also occurred similar to flying pigeon etc., specifically for the file transfer conveyance of design of local area network, still, using very
It is not convenient, it needs to be previously-completed the flying pigeon matching of transmitting terminal and receiving end, is actually equivalent to find the meaning of network neighbor,
Then the transmission of local area network could be initiated, this usage mode is not only not convenient, moreover, user can be brought to use redundancy on tool
The problem of.
In consideration of it, overcoming defect present in the prior art is the art urgent problem to be solved.
[summary of the invention]
How the technical problem to be solved by the present invention is to realize that one kind is compatible with existing chat tool, and can be intelligent
The efficiency of file transmission between the intelligent terminal of change improved within the scope of local area network.
The present invention adopts the following technical scheme:
In a first aspect, applying method for routing the present invention provides a kind of, the flow data issued by the first intelligent terminal is monitored
Packet, method include:
The receiving end for parsing the stream packets, be determined as the second intelligent terminal of the receiving end of the stream packets with
First intelligent terminal is within the scope of same local area network;
Obtain the file access log that the first intelligent terminal sends over, determine the content recorded in file access log with
The correlated information match of stream packets within the scope of the local area network of above-mentioned determination;
The local area network direct channel of first intelligent terminal Yu second intelligent terminal is established, and passes through the local
Net direct channel completes the transmission process of the file.
Preferably, the file transmission log is realized by the first driver for being mounted on the first intelligent terminal side, specifically
:
First driver is used to monitor the file specified in the first intelligent terminal, specified file or specified
The data object of size;
First driver is confirming its specified file, specified file or the specified size monitored
When data object is accessed, corresponding file access log just is sent to router via first intelligent terminal, with toilet
State the relevant information that router determines the content recorded in file access log and the stream packets within the scope of the local area network of determination
Matching.
Preferably, the file access log, specifically by first driver according to access the file into
Journey, parse corresponding application program identification, and by application program identification, filename, file size, quantity of documents, file
Two in location and access time or multinomial it is associated storage.
Preferably, the local area network direct channel for establishing first intelligent terminal Yu second intelligent terminal, tool
Body includes:
Flow data within the scope of the local area network of content and above-mentioned determination that router is recorded in determining file access log
After the correlated information match of packet, direct-connected request is sent to the first intelligent terminal and the second intelligent terminal respectively;
File identification and the first intelligent terminal relevant information or the second intelligent terminal phase are carried in the direct-connected request
Information is closed, so that the first driver in the first intelligent terminal is presented the direct-connected request on the first intelligent terminal, second
The direct-connected request is presented in the second driver in intelligent terminal on the second intelligent terminal;
The router is completed subsequent after the agreement for receiving the first intelligent terminal and the return of the second intelligent terminal is direct-connected
The local area network direct channel for establishing first intelligent terminal Yu second intelligent terminal, and pass through the local area network
Direct channel completes the transmission process of the file.
Preferably, the fluxion within the scope of the local area network of the content and above-mentioned determination recorded in the determining file access log
According to the correlated information match of packet, specifically include:
The filename recorded in log and the filename parsed in the stream packets match, also, in log
The time tag parsed in the access time of record and stream packets differs distance within a preset range.
Preferably, after establishing the local area network direct channel of first intelligent terminal and second intelligent terminal,
For be used for determining stream packets that the first intelligent terminal and the second intelligent terminal are within the scope of local area network then do packet loss or
Person's timeout treatment.
Second aspect applies method for routing the present invention also provides a kind of, monitors the fluxion issued by the first intelligent terminal
According to packet, method includes:
The receiving end for parsing the stream packets, be determined as the second intelligent terminal of the receiving end of the stream packets with
First intelligent terminal is within the scope of same local area network;
It sends local area network direct channel and establishes request to the first intelligent terminal and the second intelligent terminal;
Getting the first intelligent terminal and the second intelligent terminal builds the response message of vertical local area network direct channel really
Afterwards, the local area network direct channel of first intelligent terminal Yu second intelligent terminal is established, and straight by the local area network
Communication channel completes the transmission of data flow between the two.
Preferably, router periodically sends heartbeat message to first intelligent terminal and the second intelligent terminal, and
According to heartbeat message in response to determining that whether continuing to safeguard the first intelligent terminal and the second intelligent terminal local area network that itself is stored
Relevant information;Wherein, first intelligent terminal and the second intelligent terminal local area network relevant information, for router in rear continued access
When receiving the direct-connected transmission file request of local area network, the first intelligent terminal is directly established by the local area network relevant information of maintenance
With the local area network direct channel of the second intelligent terminal.
Preferably, the second intelligent terminal and the first intelligent terminal, which are within the scope of local area network, to be determined for router, road
From device to the first intelligent terminal return instruction message, the instruction message for the first intelligent terminal confirm the second intelligent terminal with
Its own is in same local area network, also, in the first intelligent terminal accordingly timely communication window, gives the second intelligent terminal institute
Corresponding account is with LAN ID and corresponding local area network direct channel trigger button, actively to be sent out by the first intelligent terminal
Play the direct-connected request of local area network with the second intelligent terminal.
The third aspect applies route device the present invention also provides a kind of, for realizing road is applied described in first aspect
By method, described device includes:
At least one processor;And the memory being connect at least one described processor communication;Wherein, described to deposit
Reservoir is stored with the instruction that can be executed by least one described processor, and described instruction is arranged to carry out first aspect institute by program
That states applies method for routing.
Fourth aspect, the present invention also provides a kind of nonvolatile computer storage media, the computer storage medium
Computer executable instructions are stored with, which is executed by one or more processors, for completing first
Method for routing is applied described in aspect.
The present invention provides the streams that a kind of file access log of the first intelligent terminal of combination side and router parse
The conclusion of the belonged to application of data packet, to realize the of the first intelligent terminal and receiving stream-oriented data packet that send stream packets
Two intelligent terminals belong to the confirmation of same local area network, and the local area network for setting up the first intelligent terminal and the second intelligent terminal is direct-connected
Channel, and further enable the file to pass through the local area network with regard to the file name confirmed in file access log
Direct channel completes transmission.The big file that the common communication software based on server connection and local area network are realized is improved to transmit
Between compatibility, reduce the operational redundancy of user's artificial intervention.
[Detailed description of the invention]
In order to illustrate the technical solution of the embodiments of the present invention more clearly, will make below to required in the embodiment of the present invention
Attached drawing is briefly described.It should be evident that drawings described below is only some embodiments of the present invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of flow diagram using method for routing provided in an embodiment of the present invention;
Fig. 2 is a kind of chat window schematic diagram of existing timely communication software;
Fig. 3 is presentation direct-connected transmission circle of local area network provided in an embodiment of the present invention in existing timely communication software interface
The effect diagram in face;
Fig. 4 is provided in an embodiment of the present invention a kind of using the process signal for establishing local area network direct channel in method for routing
Figure;
Fig. 5 is another flow diagram for applying method for routing provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram using route device provided in an embodiment of the present invention.
[specific embodiment]
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
In addition, as long as technical characteristic involved in the various embodiments of the present invention described below is each other not
Constituting conflict can be combined with each other.
Embodiment 1:
The embodiment of the present invention 1 provide it is a kind of using method for routing, the method mainly from have existed it is existing and
When communication tool in the case where, how under the formulation environment, increase the direct-connected biography of local area network proposed by the invention newly
It is defeated.Specifically, router monitors the stream packets issued by the first intelligent terminal, as shown in Figure 1, method includes:
In step 201, router parses the receiving end of the stream packets, is determined as the reception of the stream packets
Second intelligent terminal and first intelligent terminal at end are within the scope of same local area network.
The processing of common router be data link layer is resolved to complete the data router tasks on basis, and for
For the application routing that the embodiment of the present invention is proposed, need to cooperate by the second intelligence of opposite end of internetwork layer and data link layer acquisition
Energy terminal and first intelligent terminal are within the scope of same local area network.It is further resolved to transportation level (TCP/UDP), thus
Identify by the size of transmission file, filename, Apply Names etc., for the file access log that is obtained in step 202
Carry out the matching analysis.
In step 202, router obtains the file access log that the first intelligent terminal sends over, and determines file access
The correlated information match of stream packets within the scope of the local area network of the content and above-mentioned determination recorded in log.
Wherein, the filename recorded in log and the filename parsed in the stream packets match, also, day
The access time recorded in will and the time tag parsed in stream packets differ distance within a preset range.
In step 203, router establish first intelligent terminal and second intelligent terminal local area network it is direct-connected
Channel, and complete by the local area network direct channel transmission process of the file.
In embodiments of the present invention, it is contemplated that the first intelligent terminal user using present invention method process can
Interactivity, it is preferred that router is direct-connected logical in the local area network for establishing first intelligent terminal and second intelligent terminal
While road, the direct-connected transport interface of local area network can also be presented in the first intelligent terminal side, correspondingly, straight in the local area network
It even in transport interface also needs that operation associated button is arranged, comprising: cancel transmission continues transmission, selection transmission object etc..Such as
Shown in Fig. 2, for it is existing using personal PC as the first intelligent terminal when, the effect of common communication software in time is presented on interface
Schematic diagram, further, after combining the direct-connected transport interface of local area network described in the embodiment of the present invention, the effect of effect is illustrated
Figure as shown in figure 3, the direct-connected transport interface of the local area network can be independently of except traditional timely communication software interface, and with
Simplify display, it is only necessary to which the interface for completing file transmission is design object.
The embodiment of the invention provides a kind of file access logs of the first intelligent terminal of combination side and router to parse
To the belonged to application of stream packets conclusion, thus realize send stream packets the first intelligent terminal and receiving stream-oriented data
Second intelligent terminal of packet belongs to the confirmation of same local area network, and sets up the local of the first intelligent terminal and the second intelligent terminal
Net direct channel, and further the file is passed through described with regard to the file name confirmed in file access log
Local area network direct channel completes transmission.Improve the big text that the common communication software based on server connection and local area network are realized
Compatibility between part transmission, reduces the operational redundancy of user's artificial intervention.
In embodiments of the present invention, usually in the local area network for establishing first intelligent terminal Yu second intelligent terminal
After direct channel, for being used for determining that the first intelligent terminal and the second intelligent terminal are in the flow data within the scope of local area network
Bao Ze does packet loss or timeout treatment.What although this processing mode can be certain using generation for the timely communication software of script
It influences, still, this is also to have no alternative but for it in a kind of non-compatible mode (i.e. the mode of non-customizedization), for using user
Speech, is clearly to know why transmission channel has had been shifted to newly-established local area network direct channel therefore to use originally
Instant message applications transmission file display transmission is unsuccessfully one of the display result that user's reasonable can receive.
In embodiments of the present invention, there are a kind of preferred implementations, wherein is based on server it is not necessary to modify existing
Online timely communication software (chat tool is also known as in various embodiments of the present invention) program code, but pass through installation
The first driver in the first intelligent terminal side realizes the generation and file transmission log of the file transmission log
It is specific to the transmission of router:
First driver is used to monitor the file specified in the first intelligent terminal, specified file or specified
The data object of size;Wherein, specified file, contain this document folder under All Files, the size of file, file
The quantity of documents that includes under folder is how many etc.;And specified text includes specific file type, generation time etc.;And it is specified big
Small data object is often referred to the pre-set interval that single file size is belonged to.
First driver is confirming its specified file, specified file or the specified size monitored
When data object is accessed, corresponding file access log just is sent to router via first intelligent terminal, with toilet
State the relevant information that router determines the content recorded in file access log and the stream packets within the scope of the local area network of determination
Matching.Wherein, access mode includes that target object (including file or file) is searched out with " opening ";It can also be to drag
Target object is dragged in timely communication software by the mode dragged.
Therefore, during specific implementation, after first driver is in addition to can be and operate in the first intelligent terminal
Platform, the data object by monitoring the specified file, specified file or specified size are accessed outside process, may be used also
To be equally capable of providing above-mentioned file access log to router, specifically using another substitution implementation:
The data that first driver monitors the application process of the first intelligent terminal side and each application process is sent
Packet, and confirm that run on the first intelligent terminal first applies in the transmission for carrying out file by parsing corresponding data packet, and
Corresponding analysis result is recorded in file access log, so that the subsequent router that is sent to is as whether to establish local area network straight
One of analysis foundation of communication channel.
In embodiments of the present invention, the form of expression of the file access log, specifically by first driver
According to the process for accessing the file, corresponding application program identification is parsed, and by application program identification, filename, file
Size, quantity of documents, file address and two in access time multinomial are associated storage.Wherein, the most brief
Storage mode is that application program identification, filename and access time are associated storage, actually can be expired in this way
When local area network direct channel is established in the subsequent determination of foot, and condition requirement needed for searching out corresponding file object.And into
One step, if quantity of documents, file address are recorded together in file access log, local is established by can be further improved
Raising after net direct channel, when giving the feedback of transmission progress, and transmit initial for file object locating speed.
In embodiments of the present invention, first intelligent terminal and described the are established for described involved in step 203
The local area network direct channel of two intelligent terminals, additionally provides a kind of specific implementation, as shown in figure 4, specifically including:
In step 301, the local area network model of router is recorded in determining file access log content and above-mentioned determination
After the correlated information match of stream packets in enclosing, direct-connected request is sent to the first intelligent terminal and the second intelligent terminal respectively.
In step 302, file identification and the first intelligent terminal relevant information or are carried in the direct-connected request
Two intelligent terminal relevant informations, so as to the first driver in the first intelligent terminal presented on the first intelligent terminal it is described straight
It even requests, the direct-connected request is presented in the second driver in the second intelligent terminal on the second intelligent terminal.
In step 303, the router is straight in the agreement for receiving the first intelligent terminal and the return of the second intelligent terminal
Lian Hou completes the subsequent local area network direct channel for establishing first intelligent terminal Yu second intelligent terminal, and
The transmission process of the file is completed by the local area network direct channel.
Embodiment 2
It is provided between a kind of and existing instant message applications after the lower application method for routing of compatibility in embodiment 1,
The embodiment of the present invention then applies method for routing from the angle design of customization is a kind of, i.e., will be involved in the embodiment of the present invention 1
The mode for establishing local area network direct channel and timely communication software be fabricated to compatibility mode realization.When specific implementation, monitor by
The stream packets that first intelligent terminal issues, as shown in figure 5, method includes:
In step 401, router parses the receiving end of the stream packets, is determined as the reception of the stream packets
Second intelligent terminal and first intelligent terminal at end are within the scope of same local area network.
The processing of common router be data link layer is resolved to complete the data router tasks on basis, and for
For the application routing that the embodiment of the present invention is proposed, need to cooperate by the second intelligence of opposite end of internetwork layer and data link layer acquisition
Energy terminal and first intelligent terminal are within the scope of same local area network.
In step 402, router sends local area network direct channel and establishes request to the first intelligent terminal and the second intelligence
Terminal.
The embodiment of the present invention compares for embodiment 1, due to carrying out improvement and existing timely communication software
Integration no longer needs to the generation for carrying out file access log, because to be sent out with timely communication software for router
The relevant information of the file sent can feed back to router by the timely communication software.
In step 403, router is getting the first intelligent terminal and the second intelligent terminal builds vertical local area network really
After the response message of direct channel, the local area network direct channel of first intelligent terminal Yu second intelligent terminal is established,
And the transmission of data flow between the two is completed by the local area network direct channel.
The embodiment of the invention provides a kind of file access logs of the first intelligent terminal of combination side and router to parse
To the belonged to application of stream packets conclusion, thus realize send stream packets the first intelligent terminal and receiving stream-oriented data
Second intelligent terminal of packet belongs to the confirmation of same local area network, and sets up the local of the first intelligent terminal and the second intelligent terminal
Net direct channel, and further the file is passed through described with regard to the file name confirmed in file access log
Local area network direct channel completes transmission.Improve the big text that the common communication software based on server connection and local area network are realized
Compatibility between part transmission, reduces the operational redundancy of user's artificial intervention.
Therefore, step of embodiment of the present invention 401-402 may be considered the first intelligent terminal and the second intelligent terminal generates
When first stream packets, just the local area network analysis based on the router is as a result, eventually by the first intelligent terminal and the second intelligence
Network link between end is established by local net mode, and for the first intelligent terminal, remove second intelligent terminal
Except network link show as normal the Internet connection type again;Also, router is in the finger for receiving the first intelligent terminal
Show message, when showing that third intelligent terminal composition chat group to be added between the first intelligent terminal and the second intelligent terminal, road
Local area network direct channel between first intelligent terminal and the second intelligent terminal will be terminated by device, so that the two is included into normally mutually
Networking connections.Wherein, in order to guarantee the first intelligent terminal and the second intelligent terminal carry out the direct-connected transmission process of local area network
In, and can externally show as normal internet connection status, then preferably, tieed up between the router and the first intelligent terminal
Hold two parallel channel links (local area network direct channel and internet interface channel), and wherein local area network direct channel
Maintain whether, then can by further by following heartbeat message in a manner of safeguarded.It is specific:
Router periodically sends heartbeat message to first intelligent terminal and the second intelligent terminal, and according to heartbeat
Message in response to determining that whether continuing to safeguard the first intelligent terminal and the second intelligent terminal local area network relevant information of itself storage
(i.e. router sends heartbeat message by LAN protocol, if not receiving the first intelligent terminal and/or the second intelligent terminal
It timely feedbacks, then confirms the local area network direct channel terminated between the first intelligent terminal and the second intelligent terminal);Wherein, described
First intelligent terminal and the second intelligent terminal local area network relevant information, for router in the direct-connected transmission of subsequently received local area network
When file request, the office of the first intelligent terminal and the second intelligent terminal is directly established by the local area network relevant information of maintenance
Domain net direct channel.
In conjunction with the embodiment of the present invention, there is also a kind of preferred implementations, determine the second intelligent terminal for router
It is within the scope of local area network with the first intelligent terminal, router returns to instruction message to the first intelligent terminal, and the instruction disappears
Breath confirms that the second intelligent terminal is in same local area network with its own for the first intelligent terminal, also, in the first intelligent terminal
In corresponding communication window in time, it is direct-connected with LAN ID and corresponding local area network to give account corresponding to the second intelligent terminal
Channel trigger button, actively to initiate the direct-connected request of local area network with the second intelligent terminal by the first intelligent terminal.
Embodiment 3:
How first driver involved in Example 1 and Example 2 of the present invention is realized to target object (packet
Include file and file) it is monitored, core function therein is extracted and is described as follows:
In embodiments of the present invention, by the object using file as description, and the listening mode of corresponding file can be with
It is completed with reference to the realization content of following files, details are not described herein.
Before realizing corresponding function, the associated trigger movement of file is defined as follows first:
ACCESS: there is file content to be read out triggering, such as file content is read by stream
When content in traverse folder, by all file f ilePath catalogue deposit mFilePaths, first
Whether the path parameter for judging onEvent event is above-mentioned ACCESS event, if not then use path create File object,
If it is judged that File object is catalogue, then this is the FilePath of new folder, the operation needed.
When the file information in sub-folder under a certain file that FileObserver is monitored is changed, provide
Path is the path of the sub-folder, is not the path of specific file, so when monitoring the operation of All Files, preferably
Be setting to each file FileObserver monitor, can be specific to the reading of each file, to avoid
Certain applications can be monitored after being read out to file less than;Such as monitored HOME file directory, when Gallery it is right/HOME/
When xxx such as is read out at the operation, can listen to, when Gallery it is right/HOME/test/xxxx operate when will not be monitored
It arrives, therefore, when the embodiment of the present invention is realized, right/HOME and/HOME/test two literary catalogues are respectively set
FileObserver monitoring can solve the above problems.
Lower mask body is by taking the catalogue reading event for monitoring Home as an example:
A newly-built class HomeListener inherits FileObserver, and identifying code is as follows:
OnEvent is readjustment, and system can trigger this event after listening to event, and parameter event is exactly thing described above
Part type, according to type, we can do corresponding processing, and parameter path is exactly the catalogue of trigger event.
2. how to use it, identifying code is as follows:
HomeListener listener=new HomeListener ("/HOME ");
// begin listening for
listener.startWatching();
/**
Here for conventional file access log content to be written, existing log wiring method can be used for reference, is not done herein
Excessive content is presented.
*/
// finally cease listening for
listener.stopWatching();
Embodiment 4:
It is the configuration diagram using route device of the embodiment of the present invention such as Fig. 6.The present embodiment applies route device
Including one or more processors 21 and memory 22.Wherein, in Fig. 6 by taking a processor 21 as an example.
Processor 21 can be connected with memory 22 by bus or other modes, to be connected as by bus in Fig. 6
Example.
Memory 22 is used as a kind of application method for routing and device non-volatile computer readable storage medium storing program for executing, can be used for depositing
Non-volatile software program, non-volatile computer executable program and module are stored up, as applied method for routing in embodiment 1
And corresponding program instruction.The non-volatile software program that processor 21 is stored in memory 22 by operation, to hold
Row applies the various function application and data processing of route device, i.e. the application routing of realization embodiment 1 and/or embodiment 2
Method.
Memory 22 may include high-speed random access memory, can also include nonvolatile memory, for example, at least
One disk memory, flush memory device or other non-volatile solid state memory parts.In some embodiments, memory 22
Optional includes the memory remotely located relative to processor 21, these remote memories can pass through network connection to processor
21.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Described program instruction is stored in the memory 22, when being executed by one or more of processors 21,
Method for routing is applied in execution above-described embodiment 1 and/or embodiment 2, for example, executing Fig. 1 and/or Fig. 4 institute described above
The each step shown.
Intelligent apparatus in various embodiments of the present invention can exist in a variety of forms, such as:
(1) mobile communication equipment: the characteristics of this kind of equipment is that have mobile communication function, and to provide speech, data
Communication is main target.This Terminal Type includes: smart phone (such as iPhone), multimedia handset, functional mobile phone and low
Hold mobile phone etc..
(2) super mobile personal computer equipment: this kind of equipment belongs to the scope of personal computer, there is calculating and processing function
Can, generally also have mobile Internet access characteristic.This Terminal Type includes: PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device: this kind of equipment can show and play video content, generally also have mobile Internet access spy
Property.Such equipment includes: video player, handheld device and intelligent toy and portable car-mounted navigation equipment.
(4) server: providing the equipment of the service of calculating, and the composition of server includes that processor, hard disk, memory, system are total
Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, in processing energy
Power, stability, reliability, safety, scalability, manageability etc. are more demanding.
It is worth noting that the contents such as information exchange, implementation procedure between unit in above-mentioned apparatus, due to this hair
Bright processing method embodiment is based on same design, and for details, please refer to the description in the embodiment of the method for the present invention, herein not
It repeats again.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of embodiment is can to lead to
Program is crossed to instruct relevant hardware and complete, which can be stored in a computer readable storage medium, storage medium
It may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access
Memory), disk or CD etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.
Claims (10)
1. a kind of apply method for routing, which is characterized in that monitor the stream packets issued by the first intelligent terminal, method includes:
The receiving end for parsing the stream packets, be determined as the second intelligent terminal of the receiving end of the stream packets with it is described
First intelligent terminal is within the scope of same local area network;
Obtain the file access log that the first intelligent terminal sends over, determine the content recorded in file access log with it is above-mentioned
The correlated information match of stream packets within the scope of determining local area network;
The local area network direct channel of first intelligent terminal Yu second intelligent terminal is established, and straight by the local area network
Communication channel completes the transmission process of the file.
2. according to claim 1 apply method for routing, which is characterized in that the file transmission log is by being mounted on first
First driver of intelligent terminal side is realized, specific:
First driver is used to monitor file, specified file or the specified size specified in the first intelligent terminal
Data object;
First driver is in the data for confirming its specified file, specified file or the specified size monitored
When object is accessed, corresponding file access log just is sent to router via first intelligent terminal, so as to the road
The correlated information match of the stream packets within the scope of the content recorded in file access log and the local area network determined is determined by device.
3. according to claim 2 apply method for routing, which is characterized in that the file access log, specifically by institute
The first driver is stated according to the process for accessing the file, parses corresponding application program identification, and by application program mark
Knowledge, filename, file size, quantity of documents, file address and two in access time multinomial are associated storage.
4. according to claim 1 apply method for routing, which is characterized in that described to establish first intelligent terminal and institute
The local area network direct channel for stating the second intelligent terminal, specifically includes:
The content that router is recorded in determining file access log and the stream packets within the scope of the local area network of above-mentioned determination
After correlated information match, direct-connected request is sent to the first intelligent terminal and the second intelligent terminal respectively;
File identification and the first intelligent terminal relevant information or the second intelligent terminal correlation letter are carried in the direct-connected request
Breath, so that the direct-connected request, the second intelligence is presented in the first driver in the first intelligent terminal on the first intelligent terminal
The direct-connected request is presented in the second driver in terminal on the second intelligent terminal;
The router completes subsequent institute after the agreement for receiving the first intelligent terminal and the return of the second intelligent terminal is direct-connected
The local area network direct channel for establishing first intelligent terminal Yu second intelligent terminal is stated, and direct-connected by the local area network
Complete the transmission process of the file in channel.
5. according to claim 1 apply method for routing, which is characterized in that recorded in the determining file access log
The correlated information match of content and the stream packets within the scope of the local area network of above-mentioned determination, specifically includes:
The filename recorded in log and the filename parsed in the stream packets match, also, record in log
Access time and stream packets in the time tag that parses differ distance within a preset range.
6. it is according to claim 1 apply method for routing, which is characterized in that establish first intelligent terminal with it is described
After the local area network direct channel of second intelligent terminal, for being used for determining that the first intelligent terminal is in the second intelligent terminal
Stream packets within the scope of local area network then do packet loss or timeout treatment.
7. a kind of apply method for routing, which is characterized in that monitor the stream packets issued by the first intelligent terminal, method includes:
The receiving end for parsing the stream packets, be determined as the second intelligent terminal of the receiving end of the stream packets with it is described
First intelligent terminal is within the scope of same local area network;
It sends local area network direct channel and establishes request to the first intelligent terminal and the second intelligent terminal;
After getting the first intelligent terminal and the second intelligent terminal builds the response message of vertical local area network direct channel really, build
The local area network direct channel of first intelligent terminal Yu second intelligent terminal is found, and passes through the local area network direct channel
Complete the transmission of data flow between the two.
8. according to claim 7 apply method for routing, which is characterized in that router is periodically to first intelligence
Whether terminal and the second intelligent terminal send heartbeat message, and according to heartbeat message in response to determining that continuing to safeguard itself storage
First intelligent terminal and the second intelligent terminal local area network relevant information;Wherein, first intelligent terminal and the second intelligent terminal
Local area network relevant information, for router in the direct-connected transmission file request of subsequently received local area network, by described in maintenance
Local area network relevant information directly establishes the local area network direct channel of the first intelligent terminal and the second intelligent terminal.
9. it is according to claim 8 apply method for routing, which is characterized in that for router determine the second intelligent terminal with
First intelligent terminal is within the scope of local area network, and router returns to instruction message, the instruction message to the first intelligent terminal
Confirm that the second intelligent terminal is in same local area network with its own for the first intelligent terminal, also, in the first intelligent terminal phase
It answers in timely communication window, it is direct-connected logical with LAN ID and corresponding local area network to give account corresponding to the second intelligent terminal
Road trigger button, actively to initiate the direct-connected request of local area network with the second intelligent terminal by the first intelligent terminal.
10. a kind of apply route device, which is characterized in that including at least one processor;And with it is described at least one processing
The memory of device communication connection;Wherein, the memory is stored with the instruction that can be executed by least one described processor, described
Instruction is arranged to carry out any application method for routing of claim 1-9 by program.
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 true CN109039904A (en) | 2018-12-18 |
CN109039904B 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)
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 |
-
2018
- 2018-08-01 CN CN201810866249.9A patent/CN109039904B/en active Active
Patent Citations (8)
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)
Title |
---|
SOO-MEE YANG: "《Distributed programming in more efficient remote shell environment with direct data forwarding and lazy connection release》", 《PROCEEDINGS INTERNATIONAL PHOENIX CONFERENCE ON COMPUTERS AND COMMUNICATIONS》 * |
姚占东: "《一种基于局域网的文件传输技术》", 《计算机应用》 * |
陈娟: "《基于局域网的文件传输功能设计与实现》", 《计算机光盘软件与应用》 * |
Also Published As
Publication number | Publication date |
---|---|
CN109039904B (en) | 2020-12-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103078881B (en) | Internet resources Download Info share control system and method | |
US9276940B2 (en) | Data plan activation | |
US8544075B2 (en) | Extending a customer relationship management eventing framework to a cloud computing environment in a secure manner | |
US20060002317A1 (en) | Information feeder framework | |
US20050038874A1 (en) | System and method for downloading data using a proxy | |
CN105337923B (en) | Data distributing method and system and data sending device and data sink | |
CN104040995B (en) | Multimedia redirection method, multimedia server, and computer system | |
CN105553999B (en) | Application user behavioural analysis and method of controlling security and its corresponding device | |
CN101216834A (en) | File downloading method, system, device and server | |
CN109522462B (en) | Cloud query method, device, equipment and storage medium based on block chain | |
CN104580376B (en) | The methods, devices and systems connected between terminal are established in a local network | |
CN102111426A (en) | Method, system and device for implementing point-to-point technology | |
CN110381058B (en) | Request transmission method and device based on full duplex communication protocol WebSocket | |
CN105791093B (en) | Virtual objects presentation method and device | |
US8281384B2 (en) | Method of enabling access to data protected by firewall | |
CN108183918A (en) | A kind of AAA high concurrents authentication method and system | |
CN107682829A (en) | The data transmission method and device of mobile terminal | |
CN103716230B (en) | Message sending method, device and server | |
CN104967642B (en) | Content distribution method and device | |
CN109542647A (en) | Information transmitting administrative method and device, electronic equipment, storage medium | |
CN104184821B (en) | The method and apparatus of session and terminal responds feedback based on sending out notice | |
WO2009011968A1 (en) | Endpoint discriminator in network transport protocol startup packets | |
CN103533054B (en) | Method for realizing coordinated processing among multiple terminals and multi-terminal coordinated processing device | |
CN111835801B (en) | File downloading method, device, server, edge equipment, terminal and medium | |
CN109039904A (en) | A kind of application method for routing 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 |