CN106130893B - A kind of data packet sending method and electronic equipment - Google Patents

A kind of data packet sending method and electronic equipment Download PDF

Info

Publication number
CN106130893B
CN106130893B CN201610495296.8A CN201610495296A CN106130893B CN 106130893 B CN106130893 B CN 106130893B CN 201610495296 A CN201610495296 A CN 201610495296A CN 106130893 B CN106130893 B CN 106130893B
Authority
CN
China
Prior art keywords
application
data packet
electronic equipment
address
slogan
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610495296.8A
Other languages
Chinese (zh)
Other versions
CN106130893A (en
Inventor
霍然
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201610495296.8A priority Critical patent/CN106130893B/en
Publication of CN106130893A publication Critical patent/CN106130893A/en
Application granted granted Critical
Publication of CN106130893B publication Critical patent/CN106130893B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/1063Application servers providing network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/80Responding to QoS

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of data packet sending methods, are applied to the first electronic equipment, for solving the lower technical problem of data transmission efficiency when playing game, which comprises obtain the identification information of the first application from the first electronic device exterior;First end slogan and the first address are obtained according to identification information;Wherein, first end slogan is that the first application provides the application server of service as the port numbers of the first application distribution;First address is for the address of the transfer server of the first application setting;The destination slogan for the carrying for being used to will acquire using the transfer server of setting for first is sent to for the data packet of first end slogan and provides the application server of service for the first application;Intercept the data packet that the destination slogan carried is first end slogan;Modifying the destination address that data packet carries is the first address;Modified data packet is sent based on the first address.The invention also discloses corresponding electronic equipments.

Description

A kind of data packet sending method and electronic equipment
Technical field
The present invention relates to data to send field more particularly to a kind of data packet sending method and electronic equipment.
Background technique
Many users like playing online game now, and having the server of many online games at present is to be erected at other countries With area, under normal circumstances, domestic player's client is compared with the time carried out data transmission between the server of game Long, data transmission efficiency is lower, may need to wait the long period for a user, 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, for solving the data biography when playing game The lower technical problem of defeated efficiency.
In a first aspect, providing a kind of data packet sending method, it is applied to the first electronic equipment, comprising:
Obtain the identification information of the first application from first electronic device exterior;
First end slogan and the first address are obtained according to the identification information;Wherein, the first end slogan is described One application provides the application server of service as the port numbers of the first application distribution;First address be described first Using the address of the transfer server of setting;For the mesh for the carrying that the transfer server of the first application setting is used to will acquire Port numbers for the data packet of the first end slogan be sent to for first application the application server of service is provided;
Intercept the data packet that the destination slogan carried is the first end slogan;
Modifying the destination address that the data packet carries is first address;
The modified data packet is sent based on first address.
Optionally, the information of N number of application has been stored in advance in first electronic equipment, wherein the packet of each application The identification information of the application is included, for the application server that the application provides service is the port numbers of application distribution and is the application The address of the transfer server of setting;Wherein, first application is any one application in N number of application, and N is positive whole Number.
Optionally, the method also includes:
First electronic equipment is retrieved as the new of at least one of N number of application transfer server of application setting Address;
First electronic equipment updates the address for the transfer server that at least one described information applied includes.
Optionally, the method also includes:
First electronic equipment obtains the information of the newly-increased application in addition to N number of application;
First electronic equipment stores the information of the newly-increased application.
Optionally, the destination slogan for intercepting carrying is the data packet of the first end slogan, comprising:
Monitor the data packet sent by second port;The second port is the second electronics of installation first application Equipment is the port of the first application distribution;
Each data packet in the data packet sent by the second port is parsed, is taken with obtaining each data packet The destination slogan of band;
It is with both determining compared with the first end slogan respectively by the destination slogan of each data packet carrying It is no consistent;
Intercept the destination slogan and the consistent data packet of first end slogan carried in each data packet.
Optionally, before the identification information for obtaining the first application from first electronic device exterior, further includes:
Obtain authentication information;Whether the authentication information makes for verifying second electronic equipment and having permission The service provided with the transfer server for the first application setting;
The authentication information is verified;
Obtain the identification information of the first application from first electronic device exterior, comprising:
If being verified to the authentication information, the first application from first electronic device exterior is obtained Identification information.
Second aspect provides a kind of electronic equipment, comprising:
Memory, for storing instruction;
Processor obtains first from the electronic device exterior and answers for calling the instruction of the memory storage Identification information;According to the identification information to obtain first end slogan and the first address, the destination slogan of carrying is intercepted For the data packet of the first end slogan, modifying the destination address that the data packet carries is first address;Wherein, described First end slogan is the port numbers that the application server that first application provides service is the first application distribution;Described One address is for the address of the transfer server of the first application setting;Transfer server for the first application setting is used It is sent in the destination slogan for the carrying that will acquire for the data packet of the first end slogan and provides service for the first application Application server;
Transmitter, for sending the modified data packet based on first address.
Optionally, the memory is also used to be stored in advance the information of N number of application, wherein the information of each application includes should The identification information of application is port numbers and be application setting that the application distributes for the application server that the application provides service Transfer server address;Wherein, first application is any one application in N number of application, and N is positive integer.
Optionally, the processor is also used to:
It is retrieved as the new address of at least one of N number of application transfer server of application setting;
Update the address for the transfer server that at least one the described information applied stored in the memory includes.
The processor is also used to:
Obtain the information of the newly-increased application in addition to N number of application;
The information of the newly-increased application is stored by the memory.
Optionally, the processor is used to intercept the data packet that the destination slogan carried is the first end slogan, packet It includes:
Monitor the data packet sent by second port;The second port is the second electronics of installation first application Equipment is the port of the first application distribution;
Each data packet in the data packet sent by the second port is parsed, is taken with obtaining each data packet The destination slogan of band;
It is with both determining compared with the first end slogan respectively by the destination slogan of each data packet carrying It is no consistent;
Intercept the destination slogan and the consistent data packet of first end slogan carried in each data packet.
Optionally, the processor is also used to:
Before the identification information for obtaining the first application from the electronic device exterior, authentication information is obtained; The authentication information is for verifying whether second electronic equipment has permission using in the first application setting The service of server offer is provided;
The authentication is verified;
The processor is used to obtain the identification information of the first application from the electronic device exterior, comprising:
If being verified to the authentication information, the mark of the first application from the electronic device exterior is obtained Know information.
In the embodiment of the present invention, the first electronic equipment is believed according to the mark of the first application from the first electronic device exterior Breath repairs the destination address for the data packet that the destination slogan carried in the electronic equipment that installation first is applied is first end slogan It is changed to the first address, is taken so that these data packets be enable to be forwarded to the application for providing service for the first application by transfer server Business device avoids delay caused by repeatedly forwarding, improves the transmission speed of data packet.Simultaneously because most process all by First electronic equipment is completed, and the occupancy of the cpu resource for the electronic equipment applied to installation first, and nothing are significantly reduced Software in addition need to be downloaded and be installed in the electronic equipment that installation first is applied, be highly susceptible to operating.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Inventive embodiments for those of ordinary skill in the art without creative efforts, can also be according to mentioning The attached drawing of confession obtains other attached drawings.
Fig. 1 is a kind of possible application scenarios provided in an embodiment of the present invention;
Fig. 2 is the flow chart of data packet sending method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of electronic equipment provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of electronic equipment provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only It is a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people Member's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.? In the case where not conflicting, the feature in embodiment and embodiment in the present invention can mutual any combination.Although also, flowing Logical order is shown in journey figure, but in some cases, it can be to be different from shown or described by sequence execution herein The step of.
In addition, the terms "and/or", only a kind of incidence relation for describing affiliated partner, indicates may exist Three kinds of relationships, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.Separately Outside, character "/" herein typicallys represent the relationship that forward-backward correlation object is a kind of "or" in the case where not illustrating.
In the embodiment of the present invention, the second electronic equipment may include mobile phone, tablet computer (PAD), laptop, individual The different electronic equipments such as computer (PC), as long as can active transmission data packet;First electronic equipment for example can be just Formula electronic equipment is taken, such as may include 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 with no restriction.
Referring to Figure 1, a kind of application scenarios of possible embodiment of the present invention are introduced.In Fig. 1, it is with the first electronic equipment For USB flash drive, the second electronic equipment are PC.Such as USB flash drive is connected by the USB interface on PC with PC It connects.In practical applications, the first electronic equipment and the second electronic equipment are without being limited thereto, the first electronic equipment and the second electronic equipment Between connection relationship be also not necessarily limited to this.
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upper Technical solution is stated to be described in detail.
Fig. 2 is referred to, a kind of data packet sending method is provided, the process of this method is described as follows.
S201: the identification information of the first application from the first electronic device exterior is obtained;
S202: first end slogan and the first address are obtained according to identification information;Wherein, first end slogan is that the first application mentions Application server for service is the port numbers of the first application distribution;First address is the transfer server for the first application setting Address;The destination slogan for the carrying for being used to will acquire using the transfer server of setting for first is the number of first end slogan It is sent to according to packet and provides the application server of service for the first application;
S203: the destination slogan for intercepting carrying is the data packet of first end slogan;
S204: the destination address that modification data packet carries is the first address;
S205: modified data packet is sent based on the first address.
The data packet sending method provided in the embodiment of the present invention can be applied in many scenes, for example game player plays When online game, or it is also possible to other possible scenes.
The identification information of first application may include the title of the first application, or may include the identity mark of the first application Know number (Identification, ID), or also may include any other possible information that can be identified for that the first application.
For example, the first application can be certain online game application, or it is also possible to other kinds of application.It is first It may be set up at an arbitrary position using the application server for providing service, such as have the application server of many online game applications It may be all disposed within overseas.
First applies and is not installed in the first electronic equipment.The equipment of the first application of installation can be referred to as the second electronics Equipment, can install at least one application in the second electronic equipment, and the first application can be appointing of installing in the second electronic equipment It anticipates one and applies.Such as user wishes to improve the data packet transmission speed in a network that the first application generates, then user can be with First electronic equipment is operated, the first electronic equipment obtains the identification information of the first application depending on the user's operation, thus First application can be realized and be accelerated.
After first electronic equipment obtains the identification information of the first application, first end can be obtained according to the identification information Slogan and the first address.Wherein, it is the first application distribution that first end slogan, which is the application server that the first application provides service, Port numbers;First address is for the address of the transfer server of the first application setting;For the transfer server of the first application setting The destination slogan of carrying for will acquire is sent to for the data packet of first end slogan and provides answering for service for the first application Use server.
In one embodiment, the information of N number of application can be stored in advance in the first electronic equipment, N is positive integer, In the information of each application may include the identification information of the application, for the application server that the application provides service be the application The address of the port numbers of distribution and the transfer server for the application setting, the first application can be any one in N number of application A application, N are positive integer.In this way, the first electronic equipment can be from the local identification information for obtaining the first application, and obtaining the After the identification information of one application, can from it is local determine include the first application of the identification information of the first application information, from And first end slogan and the first address can be obtained from the information of the first application.
In another embodiment, the information of N number of application also can store in the second electronic equipment, and the first electronics is set It is standby to include be obtained from the second electronic equipment again after the identification information for obtaining the first application in the second electronic equipment The information of first application of the identification information of the first application, or the first application can be obtained from the second electronic equipment together Information, so as to identification information, first end slogan and the first address applied by the information acquisition first of the first application.
In short, the first electronic equipment can be obtained from local if the information of N number of application is stored in the first electronic equipment The information for taking wherein any one application, if the information of N number of application is stored in the second electronic equipment, the first electronic equipment The information that wherein any one application can be obtained from the second electronic equipment, if the information of N number of application is both stored in first It also is stored in electronic equipment in the second electronic equipment, then the first electronic equipment can be set from the first electronic equipment or the second electronics Standby middle information for obtaining wherein any one application.
Optionally, the first address that the first electronic equipment obtains can be different types of address.For example, when the second electronics When equipment and the transfer server being arranged for the first application are located at the same broadcast domain, the first address of the first electronic equipment acquisition It can be the address media access control (Media Access Control, MAC), and the second electronic equipment and set for the first application For the transfer server set not in the same broadcast domain, the first address that the first electronic equipment obtains can be Internet protocol Address (Internet Protocol, IP), etc..
Optionally, if the first electronic equipment obtains the information of the first application, or if depending on the user's operation One electronic equipment obtains the information of the first application from the second electronic equipment, then the first electronic equipment can store it is acquired The first application information, to no longer needed to when needing the information using the first application next time by the operation of user or from the It is obtained in two electronic equipments, saves operating procedure.
Optionally, be the first application setting the transfer server destination slogan of carrying that can be used for will acquire be for The data packet of first end slogan, which is sent to, provides the application server of service for the first application.Such as first application be network swim Play, then the transfer server for the first application setting can be provided by different network acceleration service providers, for example be first Transfer server using setting may 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, it certainly can also include other possible transfer servers.In current data In transmission plan, the data packet between the second electronic equipment and the application server for applying the service that provides for first is generally all by more A equipment is forwarded, and the transmission route of multiple equipment composition is typically complex, and transmission delay is larger.And of the invention real It applies in example, the data packet that provides that the second electronic equipment is arranged in and is provided between the application server of service for the first application is transmitted Transfer server number it is less, number can far fewer than the quantity of the equipment in current data transmission scheme, then this The transmission route for the transfer server composition being arranged in inventive embodiments is than the transmission route letter in current data transmission scheme Single, transmission delay is smaller, to realize acceleration.
Optionally, it can be one-to-one relationship between transfer server and application, for example N number of application can correspond to N A transfer server, alternatively, a transfer server can correspond to multiple applications, i.e. a transfer server may be implemented to more The acceleration of the data of a application, then N number of quantity using corresponding transfer server can be less than N, alternatively, an application can With the multiple transfer servers of correspondence, it can multiple transfer servers are arranged for an application, then the corresponding transfer of N number of application The quantity of server can be greater than N.
Optionally, the first electronic equipment can intercept the data packet that the destination slogan of carrying is first end slogan, and can To be accomplished by the following way: the first electronic equipment monitors the data packet that sends by second port, and second port is to install the Second electronic equipment of one application is the port of the first application distribution, parses each of the data packet sent by second port Data packet, to obtain the destination slogan that each data packet carries, that is to say, that the first electronic equipment checks that the first application is sent All data packets carry destination slogan, and the destination slogan that each data packet is carried respectively with first end slogan ratio Compared with, it is whether consistent with determining the two, then intercept the destination slogan carried in each data packet and the consistent number of first end slogan According to packet.
For example, the first electronic equipment is USB flash drive, the second electronic equipment is PC, the identification information of the first application The title of for example, first application, for example, " game 1 ", the application server that for example, " game 1 " provides service distribute to " trip Port numbers, that is, first end slogan of play 1 " is 25565, and USB flash drive can monitor the second electronic equipment as " game 1 " point The data packet that the port matched i.e. second port is sent parses each data packet in the data packet sent by second port, with The destination slogan that each data packet carries, the i.e. destination slogan of all data packets carrying of inspection " game 1 " transmission are obtained, And the destination slogan for carrying each data packet is respectively compared with 25565, it is whether consistent both to determine, then intercept " game The data packet that 1 " destination slogan sending, carrying is 25565.
Optionally, the first electronic equipment can send modified data packet based on the first address, i.e., will modify destination The transfer server that data packet behind location is sent to as the first application setting.
Transfer server at least one of N number of application application setting can change, such as due to being first Become from the application server in certain city for being located at east coast of the United States positioned at U.S. west using the application server for the service that provides The application server in certain city of seashore, then corresponding provide the application clothes of service for the second electronic equipment and for the first application The transfer server that data transmission between business device provides transfer service is also likely to change.Optionally, it is answered when to be N number of With at least one of application setting transfer server change when, the first electronic equipment or the second electronic equipment can obtain It is taken as the new address of the transfer server of at least one of N number of application application setting, then updates at least one application The address for the transfer server that information includes.First electronic equipment or the second electronic equipment obtain the mode of new address, by new Transfer server change message the first electronics is sent to for the transfer server that at least one of N number of application application is arranged to set Standby or the second electronic equipment, the transfer server change in message including being newly that at least one of N number of application application is arranged Transfer server address, can also include the title of new transfer server, and the new transfer server of explanation be for The information of which application setting.
Optionally, network acceleration service provider, which provides, accelerates the application of service may be on the basis of original N number of application Upper variation, such as number of applications may increase or decrease, and the type of application may change, these modification informations may include The first electronic equipment or the second electronic equipment are sent in the transfer server for the newly-increased application setting in addition to N number of application In data packet.First electronic equipment or the second electronic equipment can store new in addition to N number of application according to these modification informations Increase the information of application, or delete the information of the application of reduction in N number of application, or the information of the N number of application of change.
Optionally, before the identification information for obtaining the first application from the first electronic device exterior, the first electronics is set Standby to obtain authentication information, which can be used for verifying whether the second electronic equipment has permission use For the service that the transfer server of the first application setting provides, after obtaining authentication information, the first electronic equipment can be right The authentication information is verified.
On the one hand, in order to provide quality services, network acceleration service provider may be according to different permissions to uncommon Different expenses, use certificate are collected in prestige using the user of transfer server service, and transfer server is known that second Which type of permission whether electronic equipment, which have permission or have, is carried out transfer service using oneself.On the other hand, it is tested using identity Card can also reduce the probability that transfer server is under attack or overloads.
Optionally, it if being verified to the authentication information, represents the first electronic equipment and has permission and serviced using transfer The service of device, the then identification information that the first electronic equipment available first is applied.
Fig. 3 is referred to, based on the same inventive concept, the embodiment of the present invention provides the first electronic equipment, comprising: memory 301, processor 302 and transmitter 303.
Memory 301 is for storing instruction.
Processor 302, the instruction for calling memory to store obtain the mark of the first application from electronic device exterior Know information, first end slogan and the first address are obtained according to identification information, the destination slogan for intercepting carrying is first end slogan Data packet, modification data packet carry destination address be the first address, wherein first end slogan be first apply offer service Application server be first application distribution port numbers, the first address be for first application setting transfer server ground The destination slogan of location, the carrying for being used to will acquire using the transfer server of setting for first is the data packet of first end slogan It is sent to and provides the application server of service for the first application.
Transmitter 303, for sending modified data packet based on the first address.
Processor 302 can be general central processing unit (CPU), or can be application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or can be one or more for controlling journey The integrated circuit that sequence executes.The quantity of memory 301 can be one or more.Memory 301 may include read-only memory (Read Only Memory, ROM), random access memory (Random Access Memory, RAM) or magnetic disk storage.
Wherein, memory 301 and transmitter 303 can be connect by Special-purpose connecting line with processor 302 respectively, Huo Zhecun Reservoir 301 and transmitter 303 can also be connect by bus with processor 302, and Fig. 3 by bus for being connected.
Optionally, memory 301 can be also used for the information that N number of application is stored in advance, wherein the packet of each application The identification information of the application is included, for the application server that the application provides service is the port numbers of application distribution and is the application The address of the transfer server of setting, wherein the first application is any one application in N number of application, and N is positive integer.
Optionally, processor 302 can be also used for the transfer service for being retrieved as at least one of N number of application application setting The new address of device, and update storage the address for the transfer server that at least one information applied stored in device 301 includes.
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 data packet that the destination slogan carried is first end slogan, can To be accomplished by the following way:
Monitor the data packet that sends by second port, second port is that install the second electronic equipment that first applies be the The port of one application distribution, parses each data packet in the data packet sent by second port, to obtain each data packet The destination slogan of carrying, the destination slogan that each data packet is carried is respectively compared with first end slogan, both to determine It is whether consistent, intercept the destination slogan and the consistent data packet of first end slogan carried in each data packet.
Optionally, processor 302 can be also used for:
Before the identification information for obtaining the first application from electronic device exterior, authentication information, identity are obtained Verification information is used to verify whether the second electronic equipment to have permission the clothes provided using the transfer server for the first application setting Business, verifies authentication information.
Processor 302 is used to obtain the identification information of the first application from electronic device exterior, can be by with lower section Formula is realized:
If being verified to authentication information, the mark letter of the first application from electronic device exterior is obtained Breath.
The electronic equipment can be used for executing the method for above-mentioned Fig. 2, therefore, real for each unit institute in the electronic equipment Existing function etc. can refer to the description such as front method part, seldom repeat.
Fig. 4 is referred to, based on the same inventive concept, the embodiment of the present invention also provides second of electronic equipment, which sets It is standby to can be same equipment with electronic equipment shown in Fig. 3, or it is also possible to different equipment.The electronic equipment may include Obtain module 401, the first operation module 402, the second operation module 403, third operation module 404 and sending module 405.
Module 401 is obtained, for obtaining the identification information of the first application from the first electronic device exterior.
First operation module 402, for obtaining first end slogan and the first address according to identification information, wherein first end Slogan is that the first application provides the application server of service as the port numbers of the first application distribution, and the first address is for the first application The address of the transfer server of setting, for the destination slogan for the carrying that the transfer server that the first application is arranged is used to will acquire For first end slogan data packet be sent to for first application the application server of service is provided.
Second operation module 403 is used to intercept the data packet that the destination slogan carried is first end slogan.
Third operation module 404, the destination address for modifying data packet carrying are the first address.
Sending module 405, for sending modified data packet based on the first address.
Optionally, obtaining module 401 can be used for being retrieved as the transfer service of at least one of N number of application application setting The new address of device.
Optionally, obtaining 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 is used to intercept the data packet that the destination slogan carried is first end slogan, can To be accomplished by the following way:
Monitor the data packet that sends by second port, second port is that install the second electronic equipment that first applies be the The port of one application distribution, parses each data packet in the data packet sent by second port, to obtain each data packet The destination slogan of carrying, the destination slogan that each data packet is carried is respectively compared with first end slogan, both to determine It is whether consistent, intercept the destination slogan and the consistent data packet of first end slogan carried in each data packet.
Optionally, Fig. 5 is referred to, which can also include authentication module 406.
Obtaining module 401 can be also used for:
Before the identification information for the first application installed in obtaining the second electronic equipment, authentication information, body are obtained Whether part verification information, which is used to verify the second electronic equipment and has permission, is provided using the transfer server being arranged for the first application Service.
Authentication module 406 can be also used for: verify to authentication information.
Obtaining module 401 can be also used for: if being verified to authentication information, obtain the mark letter of the first application Breath.
Optionally, module 401, the first operation module 402, the second operation module 403,404 and of third operation module are obtained The corresponding entity device of authentication module 406 may each be the processor 302 in Fig. 3, and the corresponding entity device of sending module 405 can To be the transmitter 303 in Fig. 3.
The electronic equipment can be used for executing the method for above-mentioned Fig. 2, therefore, real for each unit institute in the electronic equipment Existing function etc. can refer to the description such as front method part, seldom repeat.
In the embodiment of the present invention, the first electronic equipment is believed according to the mark of the first application from the first electronic device exterior Breath repairs the destination address for the data packet that the destination slogan carried in the electronic equipment that installation first is applied is first end slogan It is changed to the first address, is taken so that these data packets be enable to be forwarded to the application for providing service for the first application by transfer server Business device avoids delay caused by repeatedly forwarding, improves the transmission speed of data packet.Simultaneously because most process all by First electronic equipment is completed, and the occupancy of the cpu resource for the electronic equipment applied to installation first, and nothing are significantly reduced Software in addition need to be downloaded and be installed in the electronic equipment that installation first is applied, be highly susceptible to operating.
It is apparent to those skilled in the art that for convenience and simplicity of description, only with above-mentioned each function The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function lists Member is completed, i.e., the internal structure of device is divided into different functional units, to complete all or part of function described above Energy.The specific work process of the system, apparatus, and unit of foregoing description, can be with reference to corresponding in preceding method embodiment Journey, details are not described herein.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, module or unit Division, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or group Part can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown Or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or unit it is indirect Coupling or communication connection can be electrical property, mechanical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
It, can if integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product To be stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention substantially or Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products Out, which is stored in a storage medium, including some instructions are used so that a computer equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute each implementation of the present invention The all or part of the steps of example method.And storage medium above-mentioned includes: universal serial bus flash drive (Universal Serial Bus flash drive, USB flash drive), mobile hard disk, ROM, RAM, magnetic or disk etc. is various can To store the medium of program code.
Specifically, the corresponding computer program instructions of one of embodiment of the present invention data packet sending method can be by It is stored in CD, hard disk, on the storage mediums such as USB flash disk, when the calculating corresponding with a kind of data packet sending method in storage medium Machine program instruction is read or is performed by an electronic equipment, includes the following steps:
Obtain the identification information of the first application from the first electronic device exterior;
First end slogan and the first address are obtained according to identification information;Wherein, first end slogan is that the first application provides clothes The application server of business is the port numbers of the first application distribution;First address is for the ground of the transfer server of the first application setting Location;The destination slogan for the carrying for being used to will acquire using the transfer server of setting for first is the data packet of first end slogan It is sent to and provides the application server of service for the first application;
Intercept the data packet that the destination slogan carried is first end slogan;
Modifying the destination address that data packet carries is the first address;
Modified data packet is sent based on the first address.
Optionally, the information of N number of application has been stored in advance in the first electronic equipment, wherein the information of each application includes should The identification information of application is port numbers and be application setting that the application distributes for the application server that the application provides service Transfer server address;Wherein, the first application is any one application in N number of application, and N is positive integer.
Optionally, the computer program instructions corresponding with a kind of data packet sending method stored in storage medium are by an electricity Sub- equipment reads or is performed, and further includes following steps:
First electronic equipment is retrieved as the new address of the transfer server of at least one of N number of application application setting;
First electronic equipment updates the address for the transfer server that the information that at least one is applied includes.
Optionally, the computer program instructions corresponding with a kind of data packet sending method stored in storage medium are by an electricity Sub- equipment reads or is performed, and further includes following steps:
First electronic equipment obtains the information of the newly-increased application in addition to N number of application;
The information of the newly-increased application of first electronic equipment storage.
Optionally, store in storage medium and step: the destination slogan for intercepting carrying is the data of first end slogan Packet, corresponding computer instruction by an electronic equipment or be performed, comprising:
Monitor the data packet sent by second port;Second port is that install the second electronic equipment of the first application be the The port of one application distribution;
Each data packet in the data packet sent by second port is parsed, to obtain the purpose that each data packet carries Port numbers;
Whether the destination slogan that each data packet is carried is consistent both to determine respectively compared with first end slogan;
Intercept the destination slogan and the consistent data packet of first end slogan carried in each data packet.
Optionally, store in storage medium and step: the mark of the first application from the first electronic device exterior is obtained Know information, corresponding computer instruction is before being executed, further includes:
Obtain authentication information;Authentication information is first for verifying the second electronic equipment whether to have permission use The service provided using the transfer server of setting;
Authentication information is verified;
Store in storage medium and step: obtaining the identification information of the first application from the first electronic device exterior, Corresponding computer instruction is during being performed, comprising:
If being verified to authentication information, the mark letter of the first application from the first electronic device exterior is obtained Breath.
Above embodiments are only to be described in detail technical solution of the present invention, but the explanation of above embodiments is only It is to be used to help understand method and its core concept of the invention, should not be construed as limiting the invention.The art In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by technical staff, should all cover in guarantor of the invention Within the scope of shield.

Claims (12)

1. a kind of data packet sending method is applied to the first electronic equipment, comprising:
Obtain the identification information of the first application from first electronic device exterior;
First end slogan and the first address are obtained according to the identification information;Wherein, the first end slogan is described first to answer Application server with the service that provides is the port numbers of the first application distribution;First address is for first application The address of the transfer server of setting;For the destination for the carrying that the transfer server of the first application setting is used to will acquire Slogan is sent to for the data packet of the first end slogan and provides the application server of service for the first application;
Intercept the data packet that the destination slogan carried is the first end slogan;
Modifying the destination address that the data packet carries is first address;
The modified data packet is sent based on first address.
2. the method as described in claim 1, which is characterized in that N number of application has been stored in advance in first electronic equipment Information, wherein the information of each application includes the identification information of the application, the application server that provides service for the application is this Using the port numbers of distribution and the address of the transfer server for the application setting;Wherein, first application is described N number of answers Any one application in, N is positive integer.
3. method according to claim 2, which is characterized in that the method also includes:
First electronic equipment be retrieved as it is described it is N number of application at least one of application setting transfer server newly Location;
First electronic equipment updates the address for the transfer server that at least one described information applied includes.
4. method as claimed in claim 2 or claim 3, which is characterized in that the method also includes:
First electronic equipment obtains the information of the newly-increased application in addition to N number of application;
First electronic equipment stores the information of the newly-increased application.
5. method a method according to any one of claims 1-3, which is characterized in that the destination slogan for intercepting carrying is the first end The data packet of slogan, comprising:
Monitor the data packet sent by second port;The second port is the second electronic equipment of installation first application For the port of the first application distribution;
Each data packet in the data packet sent by the second port is parsed, to obtain each data packet carrying Destination slogan;
The destination slogan that each data packet is carried respectively compared with the first end slogan, with both determine whether one It causes;
Intercept the destination slogan and the consistent data packet of first end slogan carried in each data packet.
6. method a method according to any one of claims 1-3, which is characterized in that
Before the identification information for obtaining the first application from first electronic device exterior, further includes:
Obtain authentication information;The authentication information is described for verifying the second electronic equipment whether to have permission use The service that the transfer server of first application setting provides;
The authentication information is verified;
Obtain the identification information of the first application from first electronic device exterior, comprising:
If being verified to the authentication information, the mark of the first application from first electronic device exterior is obtained Know information.
7. a kind of electronic equipment, comprising:
Memory, for storing instruction;
Processor obtains the first application from the electronic device exterior for calling the instruction of the memory storage Identification information;According to the identification information to obtain first end slogan and the first address, the destination slogan of carrying is intercepted as institute The data packet for stating first end slogan, modifying the destination address that the data packet carries is first address;Wherein, described first Port numbers are the port numbers that the application server that first application provides service is the first application distribution;First ground Location is for the address of the transfer server of the first application setting;Being used for for the transfer server that first application is arranged will The destination slogan of the carrying of acquisition is sent to for the data packet of the first end slogan and provides the application of service for the first application Server;
Transmitter, for sending the modified data packet based on first address.
8. electronic equipment as claimed in claim 7, which is characterized in that the memory is also used to be stored in advance N number of application Information, wherein the information of each application includes the identification information of the application, the application server that provides service for the application is this Using the port numbers of distribution and the address of the transfer server for the application setting;Wherein, first application is described N number of answers Any one application in, N is positive integer.
9. electronic equipment as claimed in claim 8, which is characterized in that
The processor is also used to:
It is retrieved as the new address of at least one of N number of application transfer server of application setting;
Update the address for the transfer server that at least one the described information applied stored in the memory includes.
10. electronic equipment as claimed in claim 8 or 9, which is characterized in that
The processor is also used to:
Obtain the information of the newly-increased application in addition to N number of application;
The information of the newly-increased application is stored by the memory.
11. the electronic equipment as described in claim 7-9 is any, which is characterized in that the processor is used to intercept the mesh carried Port numbers be the first end slogan data packet, comprising:
Monitor the data packet sent by second port;The second port is the second electronic equipment of installation first application For the port of the first application distribution;
Each data packet in the data packet sent by the second port is parsed, to obtain each data packet carrying Destination slogan;
The destination slogan that each data packet is carried respectively compared with the first end slogan, with both determine whether one It causes;
Intercept the destination slogan and the consistent data packet of first end slogan carried in each data packet.
12. the electronic equipment as described in claim 7-9 is any, which is characterized in that
The processor is also used to:
Before the identification information for obtaining the first application from the electronic device exterior, authentication information is obtained;It is described Authentication information is used to verify whether the second electronic equipment to have permission using the transfer server for being the first application setting The service of offer;
The authentication is verified;
The processor is used to obtain the identification information of the first application from the electronic device exterior, comprising:
If being verified to the authentication information, the mark letter of the first application from the electronic device exterior is obtained Breath.
CN201610495296.8A 2016-06-28 2016-06-28 A kind of data packet sending method and electronic equipment Active CN106130893B (en)

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 CN106130893A (en) 2016-11-16
CN106130893B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN106130893A (en) 2016-11-16

Similar Documents

Publication Publication Date Title
CN104137520B (en) A kind of information push method and device
US20200304853A1 (en) Internet anti-attack method and authentication server
Meinrath et al. Digital feudalism: Enclosures and erasures from digital rights management to the digital divide
CN108306819A (en) Instant communicating system implementation method, medium and computing device based on block chain
CN110313197A (en) Local data network is accessed via mobile data cube computation
CN109995877A (en) Information-pushing method and device
CN103475743B (en) A kind of method, apparatus and system for cloud service
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
CN112766945A (en) Virtual resource allocation processing method, device, equipment and storage medium
WO2013000374A1 (en) Load balance implementation method, device and set-top box
JP2023508061A (en) ACCOUNT ACCESS METHOD AND DEVICE, STORAGE MEDIUM, AND ELECTRONIC DEVICE
CN106302666B (en) Data push method and device
CN105872618A (en) Video resource sharing method and system, and related devices
CN113708979A (en) Network acceleration method and device
CN106105158A (en) For setting up the method and system being connected between searchers's device and destination apparatus
CN105577651A (en) Service providing method and apparatus
CN106130893B (en) A kind of data packet sending method and electronic equipment
CN109246004A (en) Network data accelerated method and client, router, server
CN106664535B (en) A kind of method for sending information, device, terminal device and system
CN110263276A (en) Message distributing method, device, equipment and storage medium
CN108777664A (en) A kind of data package processing method and its equipment, system, storage medium
CN109391473A (en) A kind of method, apparatus and storage medium of Electronic Signature
CN108156247B (en) Data communication method, device, system, terminal and readable storage medium
US11019140B1 (en) Systems and methods for peer-to-peer data exchange via multi-access edge computing

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