CN106130893A - A kind of data packet sending method and electronic equipment - Google Patents
A kind of data packet sending method and electronic equipment Download PDFInfo
- Publication number
- CN106130893A CN106130893A CN201610495296.8A CN201610495296A CN106130893A CN 106130893 A CN106130893 A CN 106130893A CN 201610495296 A CN201610495296 A CN 201610495296A CN 106130893 A CN106130893 A CN 106130893A
- Authority
- CN
- China
- Prior art keywords
- application
- packet
- electronic equipment
- address
- port numbers
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/10—Architectures or entities
- H04L65/1063—Application servers providing network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/80—Responding to QoS
Abstract
The invention discloses a kind of data packet sending method, be applied to the first electronic equipment, for solving the technical problem that data transmission efficiency is relatively low when playing game, described method includes: obtain the identification information of the first application from the first electronic device exterior;The first port numbers and the first address is obtained according to identification information;Wherein, the first port numbers is the port numbers that the first application provides the application server of service to be the first application distribution;First address is the address of the transfer server arranged for the first application;The transfer server arranged for the first application provides the application server of service for being sent to the packet that the destination slogan carried obtained is the first port numbers apply into first;Intercept the packet that destination slogan is the first port numbers carried;The destination address that amendment packet carries is the first address;Amended packet is sent based on the first address.The invention also discloses corresponding electronic equipment.
Description
Technical field
The present invention relates to data and send field, particularly relate to a kind of data packet sending method and electronic equipment.
Background technology
The most a lot of users like playing online game, and the server having a lot of online game at present is to be erected at other country
With area, in the ordinary course of things, the time carried out data transmission between domestic player's client and the server of game compares
Long, data transmission efficiency is relatively low, may need for a user to wait the long period, it is clear that the experience of user is not very good.
Summary of the invention
The embodiment of the present invention provides a kind of data packet sending method and electronic equipment, passes for solving the data when playing game
Defeated inefficient technical problem.
First aspect, it is provided that a kind of data packet sending method, is applied to the first electronic equipment, including:
Obtain the identification information of the first application from described first electronic device exterior;
The first port numbers and the first address is obtained according to described identification information;Wherein, described first port numbers is described
The port numbers that one application provides the application server of service to be described first application distribution;Described first address is for described first
The address of the transfer server that application is arranged;Apply the transfer server arranged for the mesh carried that will obtain for described first
Port numbers be described first port numbers packet be sent to into first application provide service application server;
Intercept the packet that destination slogan is described first port numbers carried;
Revising the destination address that described packet carries is described first address;
Described amended packet is sent based on described first address.
Optionally, described first electronic equipment prestores the information of N number of application, the information bag of the most each application
The identification information including this application, the port numbers that application server is this application distribution that service is provided for this application and for this application
The address of the transfer server arranged;Wherein, described first application is any one application in described N number of application, and N is the most whole
Number.
Optionally, described method also includes:
Transfer server new that at least one application that described first electronic equipment is retrieved as in described N number of application is arranged
Address;
Described first electronic equipment updates the address of the transfer server that at least one information applied described includes.
Optionally, described method also includes:
Described first electronic equipment obtains the information of the newly-increased application in addition to described N number of application;
Described first electronic equipment stores the information of described newly-increased application.
Optionally, intercept the packet that destination slogan is described first port numbers carried, including:
Monitor the packet sent by the second port;Described second port is the second electronics installing described first application
Equipment is the port of described first application distribution;
Resolve each packet in the packet sent by described second port, take obtaining described each packet
The destination slogan of band;
The destination slogan carried by described each packet compares with described first port numbers respectively, to determine that the two is
No unanimously;
Intercept the packet that the destination slogan carried in described each packet is consistent with described first port numbers.
Optionally, obtaining before the identification information of the first application of described first electronic device exterior, also including:
Obtain authentication information;Described authentication information is used for verifying whether described second electronic equipment has permission to be made
The service provided with the transfer server arranged for described first application;
Described authentication information is verified;
Obtain the identification information of the first application from described first electronic device exterior, including:
If described authentication information is verified, then obtain the first application from described first electronic device exterior
Identification information.
Second aspect, it is provided that a kind of electronic equipment, including:
Memorizer, is used for storing instruction;
Processor, for calling the instruction of described memorizer storage, obtaining should from the first of described electronic device exterior
Identification information;According to described identification information to obtain the first port numbers and the first address, intercept the destination slogan carried
For the packet of described first port numbers, revising the destination address that described packet carries is described first address;Wherein, described
First port numbers is the port numbers that described first application provides the application server serviced to be described first application distribution;Described
One address is the address of the transfer server arranged for described first application;The transfer server arranged for described first application is used
In the packet that the destination slogan carried obtained is described first port numbers being sent to into the first application offer service
Application server;
Transmitter, for sending described amended packet based on described first address.
Optionally, described memorizer is additionally operable to prestore the information of N number of application, and the information of the most each application includes this
The identification information applied, the application server providing service for this application are the port numbers of this application distribution and arrange for this application
The address of transfer server;Wherein, described first application is any one application in described N number of application, and N is positive integer.
Optionally, described processor is additionally operable to:
The new address of the transfer server that at least one application being retrieved as in described N number of application is arranged;
Update the address of the transfer server that the information of at least one application described of storage includes in described memorizer.
Described processor is additionally operable to:
The information of the acquisition newly-increased application in addition to described N number of application;
The information of described newly-increased application is stored by described memorizer.
Optionally, described processor, for intercepting the packet that destination slogan is described first port numbers carried, wraps
Include:
Monitor the packet sent by the second port;Described second port is the second electronics installing described first application
Equipment is the port of described first application distribution;
Resolve each packet in the packet sent by described second port, take obtaining described each packet
The destination slogan of band;
The destination slogan carried by described each packet compares with described first port numbers respectively, to determine that the two is
No unanimously;
Intercept the packet that the destination slogan carried in described each packet is consistent with described first port numbers.
Optionally, described processor is additionally operable to:
Obtaining before the identification information of the first application of described electronic device exterior, obtaining authentication information;
Described authentication information is for verifying whether described second electronic equipment has permission use in described first application setting
Turn the service that server provides;
Described authentication is verified;
Described processor is used for obtaining the identification information of the first application from described electronic device exterior, including:
If described authentication information is verified, then obtain the mark of the first application from described electronic device exterior
Knowledge information.
In the embodiment of the present invention, the first electronic equipment is according to the mark letter of the first application from the first electronic device exterior
Breath, repaiies the destination address installing the packet that destination slogan is the first port numbers carried in the electronic equipment of the first application
Change the first address into, so that these packets can be forwarded to provide the application of service to take for the first application by transfer server
Business device, it is to avoid repeatedly forward the delay caused, improve the transmission speed of packet.Simultaneously because most process all by
First electronic equipment completes, and decreases taking of the cpu resource to the electronic equipment installing the first application, and nothing significantly
Need to additionally download in the electronic equipment installing the first application and software is installed, be highly susceptible to operation.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this
Inventive embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to according to carrying
The accompanying drawing of confession obtains other accompanying drawing.
A kind of possible application scenarios that Fig. 1 provides for the embodiment of the present invention;
The flow chart of the data packet sending method that Fig. 2 provides for the embodiment of the present invention;
A kind of structural representation of the electronic equipment that Fig. 3 provides for the embodiment of the present invention;
A kind of structural representation of the electronic equipment that Fig. 4 provides for the embodiment of the present invention;
A kind of structural representation of the electronic equipment that Fig. 5 provides for the embodiment of the present invention.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with in the embodiment of the present invention
Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only
It is a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under not making creative work premise, broadly falls into the scope of protection of the invention.?
In the case of not conflicting, the embodiment in the present invention and the feature in embodiment can mutual combination in any.And, although at stream
Journey figure shows logical order, but in some cases, can perform with the order being different from herein shown or described
Step.
It addition, the terms "and/or", a kind of incidence relation describing affiliated partner, expression can exist
Three kinds of relations, such as, A and/or B, can represent: individualism A, there is A and B, individualism B these three situation simultaneously.Separately
Outward, character "/" herein, in the case of not illustrating, typically represent the forward-backward correlation relation to liking a kind of "or".
In the embodiment of the present invention, the second electronic equipment can include mobile phone, panel computer (PAD), notebook computer, individual
The different electronic equipments such as computer (PC), as long as packet can actively be sent;First electronic equipment can be such as just
Take formula electronic equipment, such as, can include USB (universal serial bus) (Universal Serial Bus, USB) flash drive or shifting
The different electronic equipments such as dynamic hard disk, the embodiment of the present invention is not restricted.
Refer to Fig. 1, introduce the application scenarios of a kind of possible embodiment of the present invention.In Fig. 1, with the first electronic equipment it is
As a example by USB flash drive, the second electronic equipment are PC.Such as USB flash drive is by the USB interface on PC with PC even
Connect.In actual applications, the first electronic equipment and the second electronic equipment are not limited to this, the first electronic equipment and the second electronic equipment
Between annexation be also not necessarily limited to this.
In order to be better understood from technique scheme, below in conjunction with Figure of description and specific embodiment to upper
State technical scheme to be described in detail.
Refer to Fig. 2, it is provided that a kind of data packet sending method, the flow process of the method is described as follows.
S201: obtain the identification information of the first application from the first electronic device exterior;
S202: obtain the first port numbers and the first address according to identification information;Wherein, the first port numbers is that the first application carries
The port numbers that application server is the first application distribution for service;First address is the transfer server arranged for the first application
Address;It is that the transfer server of the first application setting is for the number that destination slogan is the first port numbers carried that will obtain
It is sent to provide the application server of service into the first application according to bag;
S203: intercept the packet that destination slogan is the first port numbers carried;
S204: the destination address that amendment packet carries is the first address;
S205: send amended packet based on the first address.
The data packet sending method provided in the embodiment of the present invention can be applied in a lot of scenes, and such as game player plays
The when of online game, or can also be other possible scenes.
The identification information of the first application can include the title of the first application, or can include the identity mark of the first application
Know number (Identification, ID), or other the most possible information that can be identified for that the first application can also be included.
Such as, the first application can be certain online game application, or can also be other kinds of application.It is first
Application provides the application server of service may be erected at optional position, such as, have the application server that a lot of online game is applied
May be all disposed within overseas.
First applies and is not installed in the first electronic equipment.The equipment installing the first application can be referred to as the second electronics
Equipment, the second electronic equipment can be installed at least one application, first application can be in the second electronic equipment install appoint
Anticipate an application.Such as user wishes to improve packet that the first application produces transmission speed in a network, then user is permissible
Operating the first electronic equipment, the first electronic equipment obtains the identification information of the first application according to the operation of user, thus
Can realize accelerating to the first application.
After first electronic equipment obtains the identification information of the first application, the first end can be obtained according to this identification information
Slogan and the first address.Wherein, the first port numbers is that the first application provides the application server of service to be the first application distribution
Port numbers;First address is the address of the transfer server arranged for the first application;It it is the transfer server of the first application setting
For the packet that the destination slogan carried obtained is the first port numbers being sent to answering into the first application offer service
Use server.
In one embodiment, can prestore the information of N number of application in the first electronic equipment, N is positive integer, its
In the information of each application identification information that can include this application, application server that service is provided for this application be this application
The port numbers of distribution and the address of transfer server arranged for this application, first to apply can be any one in N number of application
Individual application, N is positive integer.So, the first electronic equipment can obtain the identification information of the first application from this locality, and is obtaining the
After the identification information of one application, the information of the first application of the identification information including the first application can be determined from this locality, from
And the first port numbers and the first address can be obtained from the information of the first application.
In another embodiment, the information of N number of application can also be stored in the second electronic equipment, and the first electronics sets
Standby after obtaining the identification information of the first application from the second electronic equipment, can obtain from the second electronic equipment again and include
The information of the first application of the identification information of the first application, or the first application can be obtained in the lump from the second electronic equipment
Information, such that it is able to by identification information, the first port numbers and first address of information acquisition first application of the first application.
In a word, if the information of N number of application is stored in the first electronic equipment, then the first electronic equipment can obtain from this locality
Take the information of wherein any one application, if the information of N number of application is stored in the second electronic equipment, then the first electronic equipment
The information of wherein any one application can be obtained, if the information of N number of application had both been stored in first from the second electronic equipment
Also be stored in electronic equipment in the second electronic equipment, then the first electronic equipment can set from the first electronic equipment or the second electronics
The information of standby middle acquisition wherein any one application.
Optionally, the first address that the first electronic equipment obtains can be different types of address.Such as, when the second electronics
Equipment and be the transfer server that arranges of the first application when being positioned at same broadcast domain, the first address that the first electronic equipment obtains
Can be media interviews control (Media Access Control, MAC) address, and the second electronic equipment and be that the first application sets
The transfer server put is not when same broadcast domain, and the first address that the first electronic equipment obtains can be Internet protocol
(Internet Protocol, IP) address, etc..
Optionally, if the first electronic equipment obtains the information of the first application according to the operation of user, if or
One electronic equipment obtains the information of the first application from the second electronic equipment, then the first electronic equipment can store acquired
The information of the first application, thus when next time needs the information using the first application without again by the operation of user or from the
Two electronic equipments obtain, saves operating procedure.
Optionally, be first application arrange transfer server may be used for by obtain the destination slogan carried be for
The packet of the first port numbers is sent to provide the application server of service into the first application.Such as first application is swum for network
Play, then can be provided by different network acceleration service providers for the transfer server that the first application is arranged, be such as first
Application arrange transfer server can include WTFast game accelerator, Netease UU network game accelerator, sudden peal of thunder network game accelerator,
And any one in Baidu's network game accelerator, certainly can also include other possible transfer servers.In current data
In transmission plan, the packet between the second electronic equipment and the application server providing service for the first application is general all by many
Individual equipment forwards, and the transmission route of the plurality of equipment composition is typically complex, and transmission delay is bigger.And it is real in the present invention
Execute in example, the offer packet transmission between the second electronic equipment and the application server that service is provided for the first application is provided
The number of transfer server less, its number can far fewer than the quantity of the equipment in current data transmission scheme, then this
The transmission route of the transfer server composition arranged in inventive embodiments is than the transmission route letter in current data transmission scheme
Single, transmission delay is less, it is achieved thereby that accelerate.
Optionally, can be relation one to one between transfer server and application, the most N number of application can corresponding N
Individual transfer server, or, transfer server can corresponding multiple application, i.e. one transfer server can realize many
The acceleration of the data of individual application, then the quantity of the transfer server that N number of application is corresponding can be less than N, or, an application can
With corresponding multiple transfer servers, can think that an application arranges multiple transfer server, then the transfer that N number of application is corresponding
The quantity of server can be more than N.
Optionally, the first electronic equipment can intercept the packet that destination slogan is the first port numbers carried, and can
To be accomplished by: the packet that the first electronic equipment monitoring is sent by the second port, the second port is installation the
One application the second electronic equipment be first application distribution port, resolve by second port send packet in each
Packet, to obtain the destination slogan that each packet carries, say, that the first electronic equipment checks that the first application sends
The destination slogan that carries of all packets, and the destination slogan that each packet is carried respectively with the first port numbers ratio
Relatively, to determine that the two is whether consistent, then intercept the destination slogan carried in each packet and the consistent number of the first port numbers
According to bag.
Such as, the first electronic equipment is USB flash drive, and the second electronic equipment is PC, the identification information of the first application
The title of for example, first application, for example, " game 1 ", for example, " game 1 " provide the application server of service to distribute to " trip
Play 1 " port numbers that is first port numbers be 25565, USB flash drive can monitor the second electronic equipment for " game 1 " point
The packet that the port joined that is second port sends, resolves each packet in the packet by the second port transmission, with
Obtain the destination slogan that each packet carries, i.e. check the destination slogan that all packets that " game 1 " sends carry,
And the destination slogan carried by each packet compares with 25565 respectively, to determine that the two is the most consistent, then intercept " game
1 " destination slogan that send, that carry is the packet of 25565.
Optionally, the first electronic equipment can send amended packet based on the first address, will revise destination
Packet behind location be sent to be first application arrange transfer server.
The transfer server arranged at least one application in N number of application can change, such as due to be first
The application server of the application offer service application server from certain city being positioned at east coast of the United States becomes and is positioned at U.S. west
The application server in certain city of seashore, then the application for the second electronic equipment with for the first application offer service accordingly takes
Data transmission between business device provides the transfer server of transfer service to be also likely to change.Optionally, when answering for N number of
When the transfer server that at least one application in is arranged changes, the first electronic equipment or the second electronic equipment can obtain
The new address of the transfer server that at least one application being taken as in N number of application is arranged, updates this at least one application then
The address of the transfer server that information includes.First electronic equipment or the second electronic equipment obtain the mode of new address, by new
Transfer server is changed message and is sent to the first electronics and sets by the transfer server arranged at least one application in N number of application
Standby or the second electronic equipment, this transfer server change message includes new arranging at least one application in N number of application
The address of transfer server, it is also possible to include the title of new transfer server, and illustrate new transfer server be for
The information which application is arranged.
Optionally, the application that network acceleration service provider provides acceleration to service may be on the basis of original N number of application
Upper change, such as number of applications may be increased or decreased, and the kind of application is it may happen that change, and these modification informations can comprise
It is sent to the first electronic equipment or the second electronic equipment at the transfer server arranged for the newly-increased application in addition to N number of application
In packet.First electronic equipment or the second electronic equipment can be according to these modification informations, and store in addition to N number of application is new
Increase the information of application, or delete the information of the application of minimizing in N number of application, or change the information of N number of application.
Optionally, obtaining before the identification information of the first application of the first electronic device exterior, the first electronics sets
For obtaining authentication information, this authentication information may be used for verifying whether the second electronic equipment has permission use
For the service of the transfer server offer that the first application is arranged, after obtaining authentication information, the first electronic equipment can be right
This authentication information is verified.
On the one hand, in order to provide quality services, network acceleration service provider may be according to different authorities to uncommon
Hoping that the user using transfer server service collects different expenses, use certificate, transfer server is it is known that second
Whether electronic equipment has permission or possesses which type of authority to use the transfer service of oneself.On the other hand, identity is used to test
Card, it is also possible to reduce the probability that transfer server is under attack or transships.
Optionally, if this authentication information is verified, represents the first electronic equipment and have permission use transfer service
The service of device, then the first electronic equipment can obtain the identification information of the first application.
Referring to Fig. 3, based on same inventive concept, the embodiment of the present invention provides the first electronic equipment, including: memorizer
301, processor 302, and transmitter 303.
Memorizer 301 is used for storing instruction.
Processor 302, for calling the instruction of memorizer storage, obtains the mark of the first application from electronic device exterior
Knowledge information, obtains the first port numbers and the first address according to identification information, and intercepting the destination slogan carried is the first port numbers
Packet, the amendment destination address that carries of packet is the first address, and wherein, the first port numbers is that the first application provides service
The port numbers that application server is the first application distribution, the first address is the ground of transfer server arranged for the first application
Location, is that the transfer server of the first application setting is for the packet that destination slogan is the first port numbers carried that will obtain
It is sent to provide the application server of service for the first application.
Transmitter 303, for sending amended packet based on the first address.
Processor 302 can be general central processing unit (CPU), or can be ASIC
(Application Specific Integrated Circuit, ASIC), or can be one or more for controlling journey
The integrated circuit that sequence performs.The quantity of memorizer 301 can be one or more.Memorizer 301 can include read only memory
(Read Only Memory, ROM), random access memory (Random Access Memory, RAM) or disk memory.
Wherein, memorizer 301 and transmitter 303 can be connected with processor 302 by Special-purpose connecting line respectively, or deposit
Reservoir 301 and transmitter 303 can also be connected with processor 302 by bus, and Fig. 3 is as a example by connecting by bus.
Optionally, memorizer 301 can be also used for prestoring the information of N number of application, the information bag of the most each application
The identification information including this application, the port numbers that application server is this application distribution that service is provided for this application and for this application
The address of the transfer server arranged, wherein, the first application is any one application in N number of application, and N is positive integer.
Optionally, the transfer service that at least one application that processor 302 can be also used for being retrieved as in N number of application is arranged
The address of the transfer server that the information of at least one application of storage includes in the new address of device, and more new memory 301.
Optionally, processor 302 can be also used for obtaining the information of the newly-increased application in addition to N number of application, and by depositing
Reservoir 301 stores the information of newly-increased application.
Optionally, processor 302 can be also used for intercepting the packet that destination slogan is the first port numbers carried, can
To be accomplished by:
Monitoring the packet sent by the second port, the second port is that to install the second electronic equipment of the first application be the
The port of one application distribution, resolves each packet in the packet by the second port transmission, to obtain each packet
The destination slogan carried, the destination slogan carried by each packet compares with the first port numbers respectively, to determine the two
Whether consistent, intercept the destination slogan carried in each packet and the consistent packet of the first port numbers.
Optionally, processor 302 can be also used for:
Obtaining before the identification information of the first application of electronic device exterior, obtaining authentication information, identity
Whether checking information has permission the clothes using the transfer server arranged for the first application to provide for checking the second electronic equipment
Business, verifies authentication information.
Processor 302, can be by with lower section for obtaining the identification information of the first application from electronic device exterior
Formula realizes:
If authentication information is verified, then obtain the mark letter of the first application from electronic device exterior
Breath.
This electronic equipment may be used for the method performing above-mentioned Fig. 2, therefore, real for each unit institute in this electronic equipment
Existing function etc., refers to such as the description of front method part, seldom repeats.
Referring to Fig. 4, based on same inventive concept, the embodiment of the present invention also provides for the second electronic equipment, and this electronics sets
Standby can be same equipment with the electronic equipment shown in Fig. 3, or can also be different equipment.This electronic equipment can include
Acquisition module the 401, first operation module the 402, second operation module the 403, the 3rd operation module 404 and sending module 405.
Acquisition module 401, for obtaining the identification information of the first application from the first electronic device exterior.
First operation module 402, for obtaining the first port numbers and the first address, wherein, the first end according to identification information
Slogan is the port numbers that the first application provides the application server of service to be the first application distribution, and the first address is for the first application
The address of the transfer server arranged, is that the transfer server of the first application setting is for the destination slogan carried that will obtain
Packet for the first port numbers is sent to provide the application server of service into the first application.
Second operation module 403 is for intercepting the packet that destination slogan is the first port numbers carried.
3rd operation module 404, the destination address carried for revising packet is the first address.
Sending module 405, for sending amended packet based on the first address.
Optionally, the transfer service that at least one application that acquisition module 401 may be used for being retrieved as in N number of application is arranged
The new address of device.
Optionally, acquisition module 401 can be also used for obtaining the information of the newly-increased application in addition to N number of application.
Optionally, the second operation module 403, can for intercepting the packet that destination slogan is the first port numbers carried
To be accomplished by:
Monitoring the packet sent by the second port, the second port is that to install the second electronic equipment of the first application be the
The port of one application distribution, resolves each packet in the packet by the second port transmission, to obtain each packet
The destination slogan carried, the destination slogan carried by each packet compares with the first port numbers respectively, to determine the two
Whether consistent, intercept the destination slogan carried in each packet and the consistent packet of the first port numbers.
Optionally, referring to Fig. 5, this electronic equipment can also include authentication module 406.
Acquisition module 401 can be also used for:
Before the identification information of the first application installed in obtaining the second electronic equipment, obtain authentication information, body
Whether part checking information has permission for checking the second electronic equipment to use is applied the transfer server of setting to provide for first
Service.
Authentication module 406 can be also used for: verifies authentication information.
Acquisition module 401 can be also used for: if being verified authentication information, then obtain the mark letter of the first application
Breath.
Optionally, acquisition module the 401, first operation module the 402, second operation module the 403, the 3rd operation module 404 and
The entity device of authentication module 406 correspondence may each be the processor 302 in Fig. 3, and the entity device of sending module 405 correspondence can
To be the transmitter 303 in Fig. 3.
This electronic equipment may be used for the method performing above-mentioned Fig. 2, therefore, real for each unit institute in this electronic equipment
Existing function etc., refers to such as the description of front method part, seldom repeats.
In the embodiment of the present invention, the first electronic equipment is according to the mark letter of the first application from the first electronic device exterior
Breath, repaiies the destination address installing the packet that destination slogan is the first port numbers carried in the electronic equipment of the first application
Change the first address into, so that these packets can be forwarded to provide the application of service to take for the first application by transfer server
Business device, it is to avoid repeatedly forward the delay caused, improve the transmission speed of packet.Simultaneously because most process all by
First electronic equipment completes, and decreases taking of the cpu resource to the electronic equipment installing the first application, and nothing significantly
Need to additionally download in the electronic equipment installing the first application and software is installed, be highly susceptible to operation.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, only with above-mentioned each function
The division of module is illustrated, and in actual application, can distribute above-mentioned functions by different function lists as desired
Unit completes, and the internal structure of device will be divided into different functional units, to complete all or part of merit described above
Energy.The specific works process of the system of foregoing description, device and unit, the corresponding mistake being referred in preceding method embodiment
Journey, does not repeats them here.
In several embodiments provided by the present invention, it should be understood that disclosed system, apparatus and method are permissible
Realize by another way.Such as, device embodiment described above is only schematically, such as, and module or unit
Division, be only a kind of logic function and divide, actual can have other dividing mode, the most multiple unit or group when realizing
Part can in conjunction with or be desirably integrated into another system, or some features can be ignored, or does not performs.Another point, shown
Or the coupling each other discussed or direct-coupling or communication connection can be indirect by some interfaces, device or unit
Coupling or communication connection, can be electrical, machinery or other form.
The unit illustrated as separating component can be or may not be physically separate, shows as unit
Parts can be or may not be physical location, i.e. may be located at a place, or can also be distributed to multiple network
On unit.Some or all of unit therein can be selected according to the actual needs to realize the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated list
Unit both can realize to use the form of hardware, it would however also be possible to employ the form of SFU software functional unit realizes.
If integrated unit is using the form realization of SFU software functional unit and as independent production marketing or use, can
To be stored in a computer read/write memory medium.Based on such understanding, technical scheme substantially or
Say completely or partially can embodying of the part that prior art is contributed or this technical scheme with the form of software product
Out, this computer software product is stored in a storage medium, including some instructions with so that a computer equipment
(can be personal computer, server, or the network equipment etc.) or processor (processor) perform the present invention, and each is implemented
All or part of step of example method.And aforesaid storage medium includes: USB (universal serial bus) flash drive (Universal
Serial Bus flash drive, USB flash drive), portable hard drive, ROM, RAM, magnetic disc or CD etc. are various can
To store the medium of program code.
Specifically, the computer program instructions that a kind of data packet sending method in the embodiment of the present invention is corresponding can be by
Being stored in CD, hard disk, on the storage medium such as USB flash disk, when the calculating corresponding with a kind of data packet sending method in storage medium
When machine programmed instruction is read by an electronic equipment or is performed, comprise the steps:
Obtain the identification information of the first application from the first electronic device exterior;
The first port numbers and the first address is obtained according to identification information;Wherein, the first port numbers is that the first application provides clothes
The application server of business is the port numbers of the first application distribution;First address is the ground of the transfer server arranged for the first application
Location;It is that the transfer server of the first application setting is for the packet that destination slogan is the first port numbers carried that will obtain
It is sent to provide the application server of service for the first application;
Intercept the packet that destination slogan is the first port numbers carried;
The destination address that amendment packet carries is the first address;
Amended packet is sent based on the first address.
Optionally, having prestored the information of N number of application in the first electronic equipment, the information of the most each application includes this
The identification information applied, the application server providing service for this application are the port numbers of this application distribution and arrange for this application
The address of transfer server;Wherein, the first application is any one application in N number of application, and N is positive integer.
Optionally, in storage medium, the computer program instructions corresponding with a kind of data packet sending method of storage is electric by one
When subset reads or is performed, also comprise the steps:
The new address of the transfer server that at least one application that the first electronic equipment is retrieved as in N number of application is arranged;
First electronic equipment updates the address of the transfer server that at least one information applied includes.
Optionally, in storage medium, the computer program instructions corresponding with a kind of data packet sending method of storage is electric by one
When subset reads or is performed, also comprise the steps:
First electronic equipment obtains the information of the newly-increased application in addition to N number of application;
The information of the first newly-increased application of electronic equipment storage.
Optionally, in storage medium storage and step: intercept the data that destination slogan is the first port numbers carried
Bag, corresponding computer instruction by an electronic equipment or when being performed, including:
Monitor the packet sent by the second port;Second port is that to install the second electronic equipment of the first application be the
The port of one application distribution;
Resolve each packet in the packet by the second port transmission, to obtain the purpose that each packet carries
Port numbers;
The destination slogan carried by each packet compares with the first port numbers respectively, to determine that the two is the most consistent;
Intercept the destination slogan carried in each packet and the consistent packet of the first port numbers.
Optionally, in storage medium storage and step: obtain from the first electronic device exterior first application mark
Knowledge information, corresponding computer instruction before being executed, also includes:
Obtain authentication information;Whether authentication information has permission use for checking the second electronic equipment is first
The service that the transfer server that application is arranged provides;
Authentication information is verified;
In storage medium storage and step: obtain from the first electronic device exterior first application identification information,
Corresponding computer instruction during being performed, including:
If authentication information is verified, then obtain the mark letter of the first application from the first electronic device exterior
Breath.
Above example is only in order to be described in detail technical scheme, but the explanation of above example is only
It is the method and core concept thereof being adapted to assist in and understanding the present invention, should not be construed as limitation of the present invention.The art
Technical staff in the technical scope that the invention discloses, the change that can readily occur in or replacement, all should contain the guarantor in the present invention
Within the scope of protecting.
Claims (12)
1. a data packet sending method, is applied to the first electronic equipment, including:
Obtain the identification information of the first application from described first electronic device exterior;
The first port numbers and the first address is obtained according to described identification information;Wherein, described first port numbers be described first should
By the port numbers that the application server providing service is described first application distribution;Described first address is for described first application
The address of the transfer server arranged;Apply the transfer server arranged for the destination carried that will obtain for described first
The packet that slogan is described first port numbers is sent to provide the application server of service into the first application;
Intercept the packet that destination slogan is described first port numbers carried;
Revising the destination address that described packet carries is described first address;
Described amended packet is sent based on described first address.
2. the method for claim 1, it is characterised in that prestored N number of application in described first electronic equipment
Information, the information of the most each application includes the identification information of this application, provides for this application the application server of service for being somebody's turn to do
The port numbers of application distribution and the address of the transfer server for this application setting;Wherein, described first application for described N number of should
Any one application in, N is positive integer.
3. method as claimed in claim 2, it is characterised in that described method also includes:
Described first electronic equipment be retrieved as in described N number of application at least one application arrange transfer server newly
Location;
Described first electronic equipment updates the address of the transfer server that at least one information applied described includes.
4. method as claimed in claim 2 or claim 3, it is characterised in that described method also includes:
Described first electronic equipment obtains the information of the newly-increased application in addition to described N number of application;
Described first electronic equipment stores the information of described newly-increased application.
5. the method as described in claim 1-3 is arbitrary, it is characterised in that intercepting the destination slogan carried is described first end
The packet of slogan, including:
Monitor the packet sent by the second port;Described second port is the second electronic equipment installing described first application
Port for described first application distribution;
Resolve each packet in the packet by described second port transmission, to obtain what described each packet carried
Destination slogan;
The destination slogan carried by described each packet compares with described first port numbers respectively, with determine the two whether one
Cause;
Intercept the packet that the destination slogan carried in described each packet is consistent with described first port numbers.
6. the method as described in claim 1-3 is arbitrary, it is characterised in that
Obtaining before the identification information of the first application of described first electronic device exterior, also including:
Obtain authentication information;Described authentication information is used for verifying whether described second electronic equipment has permission use and be
The service that the transfer server that described first application is arranged provides;
Described authentication information is verified;
Obtain the identification information of the first application from described first electronic device exterior, including:
If described authentication information is verified, then obtain the mark of the first application from described first electronic device exterior
Knowledge information.
7. an electronic equipment, including:
Memorizer, is used for storing instruction;
Processor, for calling the instruction of described memorizer storage, obtains the first application from described electronic device exterior
Identification information;According to described identification information to obtain the first port numbers and the first address, intercepting the destination slogan carried is institute
Stating the packet of the first port numbers, revising the destination address that described packet carries is described first address;Wherein, described first
Port numbers is the port numbers that described first application provides the application server serviced to be described first application distribution;Described first ground
Location is the address of the transfer server arranged for described first application;Applying the transfer server arranged to be used for for described first will
The packet that the destination slogan carried obtained is described first port numbers is sent to provide the application of service into the first application
Server;
Transmitter, for sending described amended packet based on described first address.
8. electronic equipment as claimed in claim 7, it is characterised in that described memorizer is additionally operable to prestore N number of application
Information, the information of the most each application includes the identification information of this application, provides for this application the application server of service for being somebody's turn to do
The port numbers of application distribution and the address of the transfer server for this application setting;Wherein, described first application for described N number of should
Any one application in, N is positive integer.
9. electronic equipment as claimed in claim 8, it is characterised in that
Described processor is additionally operable to:
The new address of the transfer server that at least one application being retrieved as in described N number of application is arranged;
Update the address of the transfer server that the information of at least one application described of storage includes in described memorizer.
10. electronic equipment as claimed in claim 8 or 9, it is characterised in that
Described processor is additionally operable to:
The information of the acquisition newly-increased application in addition to described N number of application;
The information of described newly-increased application is stored by described memorizer.
11. electronic equipments as described in claim 7-9 is arbitrary, it is characterised in that described processor is for intercepting the mesh carried
The packet that port numbers is described first port numbers, including:
Monitor the packet sent by the second port;Described second port is the second electronic equipment installing described first application
Port for described first application distribution;
Resolve each packet in the packet by described second port transmission, to obtain what described each packet carried
Destination slogan;
The destination slogan carried by described each packet compares with described first port numbers respectively, with determine the two whether one
Cause;
Intercept the packet that the destination slogan carried in described each packet is consistent with described first port numbers.
12. electronic equipments as described in claim 7-9 is arbitrary, it is characterised in that
Described processor is additionally operable to:
Obtaining before the identification information of the first application of described electronic device exterior, obtaining authentication information;Described
Authentication information uses, for verifying whether described second electronic equipment has permission, the transfer clothes arranged for described first application
The service that business device provides;
Described authentication is verified;
Described processor is used for obtaining the identification information of the first application from described electronic device exterior, including:
If described authentication information is verified, then obtain the mark letter of the first application from described electronic device exterior
Breath.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610495296.8A CN106130893B (en) | 2016-06-28 | 2016-06-28 | A kind of data packet sending method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610495296.8A CN106130893B (en) | 2016-06-28 | 2016-06-28 | A kind of data packet sending method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106130893A true CN106130893A (en) | 2016-11-16 |
CN106130893B CN106130893B (en) | 2019-07-26 |
Family
ID=57285388
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610495296.8A Active CN106130893B (en) | 2016-06-28 | 2016-06-28 | A kind of data packet sending method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106130893B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107018063A (en) * | 2017-01-19 | 2017-08-04 | 阿里巴巴集团控股有限公司 | Data interactive method and device based on application |
CN112311894A (en) * | 2020-11-12 | 2021-02-02 | 北京沃东天骏信息技术有限公司 | Method, apparatus, electronic device, and computer-readable medium for generating information |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102685133A (en) * | 2012-05-14 | 2012-09-19 | 中国科学院计算机网络信息中心 | Maine engine mark tracing method and system as well as terminal and central server |
CN103491016A (en) * | 2012-06-08 | 2014-01-01 | 百度在线网络技术(北京)有限公司 | Method, system and device for transferring source address in UDP load balancing system |
CN103729600A (en) * | 2012-10-11 | 2014-04-16 | 北京中天安泰信息科技有限公司 | Data security interconnected system establishing method and data security interconnected system |
CN104219314A (en) * | 2014-09-10 | 2014-12-17 | 珠海市君天电子科技有限公司 | Electronic device and remote control method and system thereof |
CN105122288A (en) * | 2013-02-28 | 2015-12-02 | Lg电子株式会社 | Apparatus and method for processing a multimedia commerce service |
CN105337808A (en) * | 2015-11-30 | 2016-02-17 | 网宿科技股份有限公司 | Data transmission method, device and system |
-
2016
- 2016-06-28 CN CN201610495296.8A patent/CN106130893B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102685133A (en) * | 2012-05-14 | 2012-09-19 | 中国科学院计算机网络信息中心 | Maine engine mark tracing method and system as well as terminal and central server |
CN103491016A (en) * | 2012-06-08 | 2014-01-01 | 百度在线网络技术(北京)有限公司 | Method, system and device for transferring source address in UDP load balancing system |
CN103729600A (en) * | 2012-10-11 | 2014-04-16 | 北京中天安泰信息科技有限公司 | Data security interconnected system establishing method and data security interconnected system |
CN105122288A (en) * | 2013-02-28 | 2015-12-02 | Lg电子株式会社 | Apparatus and method for processing a multimedia commerce service |
CN104219314A (en) * | 2014-09-10 | 2014-12-17 | 珠海市君天电子科技有限公司 | Electronic device and remote control method and system thereof |
CN105337808A (en) * | 2015-11-30 | 2016-02-17 | 网宿科技股份有限公司 | Data transmission method, device and system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107018063A (en) * | 2017-01-19 | 2017-08-04 | 阿里巴巴集团控股有限公司 | Data interactive method and device based on application |
WO2018133684A1 (en) * | 2017-01-19 | 2018-07-26 | 阿里巴巴集团控股有限公司 | Application-based data interaction method and apparatus |
US10897521B2 (en) | 2017-01-19 | 2021-01-19 | Advanced New Technologies Co., Ltd. | Application-based data interaction method and apparatus |
CN112311894A (en) * | 2020-11-12 | 2021-02-02 | 北京沃东天骏信息技术有限公司 | Method, apparatus, electronic device, and computer-readable medium for generating information |
Also Published As
Publication number | Publication date |
---|---|
CN106130893B (en) | 2019-07-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109688235B (en) | Virtual network method for processing business, device and system, controller, storage medium | |
CN107040914A (en) | The system that multiple services are provided by mobile network using multiple international mobile subscriber identifiers | |
CN102523314B (en) | Identify the method and apparatus of efficient destination server | |
CN108306819A (en) | Instant communicating system implementation method, medium and computing device based on block chain | |
US11025738B2 (en) | Systems and methods for determining a destination location for transmission of packetized data in a network system based on an application server attribute | |
CN103238301A (en) | Technique for managing traffic at router | |
US11032199B2 (en) | Methods and apparatus for providing traffic forwarder via dynamic overlay network | |
CN111163130A (en) | Network service system and data transmission method thereof | |
CN109521956A (en) | A kind of cloud storage method, apparatus, equipment and storage medium based on block chain | |
CN107580079A (en) | A kind of message transmitting method and device | |
CN110059022A (en) | System and method for distributed cache | |
US10375029B2 (en) | Multimedia broadcasting system in multiple node structure and multimedia broadcasting control method thereof | |
CN109274705A (en) | Service providing method, apparatus and system based on user identity | |
CN110391919B (en) | Multicast traffic forwarding method and device, and electronic device | |
CN115426312A (en) | Method and device for managing, optimizing and forwarding identifiers in large-scale multi-modal network | |
CN106130893A (en) | A kind of data packet sending method and electronic equipment | |
CN102857547A (en) | Distributed caching method and device | |
CN110351364A (en) | Date storage method, equipment and computer readable storage medium | |
CN109951291A (en) | Content sharing method and device, multimedia equipment based on credible performing environment | |
CN104468761B (en) | Control the method and mobile terminal of player carry shared file | |
CN103051626A (en) | Authentication method and network device | |
CN108900323A (en) | Communication means, device and equipment, medium | |
US11537707B1 (en) | Secure identity binding | |
CN107547687A (en) | A kind of message transmitting method and device | |
CN104967623A (en) | Method used by dual card dual standby mobile terminal to access network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |