WO2015192497A1 - Procédé et appareil d'envoi de liaison de communication, et terminal - Google Patents
Procédé et appareil d'envoi de liaison de communication, et terminal Download PDFInfo
- Publication number
- WO2015192497A1 WO2015192497A1 PCT/CN2014/086455 CN2014086455W WO2015192497A1 WO 2015192497 A1 WO2015192497 A1 WO 2015192497A1 CN 2014086455 W CN2014086455 W CN 2014086455W WO 2015192497 A1 WO2015192497 A1 WO 2015192497A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- communication link
- application
- local port
- correspondence
- request
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/40—Network security protocols
Definitions
- the present invention relates to the field of communications, and in particular to a method, an apparatus, and a terminal for transmitting a communication link.
- Application software Application, also called application
- the communication link of the application software is extremely important to the application software.
- the quality of the application software can be improved by controlling the quality of service (QoS of the communication link of the application software).
- QoS quality of service
- the transmission speed; or, the application software may be charged through the communication link of the application software, thereby implementing customized traffic for the application software, but is not limited thereto.
- the application cannot determine the communication link used by the underlying communication of the operating system (OS) of the smart terminal, for example, it is not provided for the two smart terminal operating systems of Android (Android) and iOS.
- An Application Program Interface (API) is used to detect the communication link of the application software.
- the embodiment of the invention provides a method, a device and a terminal for transmitting a communication link, so as to at least solve the problem that the communication link used by the application software cannot be determined in the related art.
- a method of transmitting a communication link is provided.
- the sending method of the communication link includes: acquiring a communication link of the application requested by the request in response to a request of the requesting party; and transmitting a communication link of the application according to the request.
- the communication link of the application requested by the request is obtained in response to the request of the requesting party, including: obtaining an application identifier of the application from the request; determining the application according to a correspondence between the application identifier and the user identifier. a user identifier; determining a local port of the application according to a correspondence between the user identifier and the local port; determining a communication link of the application according to a correspondence between the local port and the communication link.
- the method further comprises: extracting a valid communication link from the communication link of the application based on a status of the communication link of the application; transmitting a communication link of the application in accordance with the request, including : transmitting the valid communication link in accordance with the request.
- determining the local port of the application according to the correspondence between the user identifier and the local port including: parsing a Transmission Control Protocol (TCP) file, wherein the correspondence between the user identifier and the local port is recorded in the TCP file And finding a local port of the application according to the correspondence between the user identifier and the local port.
- TCP Transmission Control Protocol
- determining the communication link of the application according to the correspondence between the local port and the communication link comprising: running a command for acquiring communication link information to obtain all communication links on the terminal; and communicating according to the local port Corresponding relationship of the link, searching for the communication link of the application from all the communication links.
- the requestor comprises: the application.
- a transmitting apparatus for a communication link is provided.
- the sending device of the communication link includes: an acquiring module, configured to acquire a communication link of the application requested by the request in response to a request of the requesting party; and a sending module, configured to send the communication chain of the application according to the request road.
- the obtaining module includes: an obtaining unit, configured to acquire an application identifier of the application from the request; the first determining unit is configured to determine a user identifier of the application according to a correspondence between the application identifier and the user identifier a second determining unit, configured to determine a local port of the application according to a correspondence between the user identifier and the local port; and a third determining unit configured to determine a communication link of the application according to a correspondence between the local port and the communication link .
- the acquiring module further includes: an extracting unit, configured to extract an effective communication link from the communication link of the application according to a state of the communication link of the application; the sending module is further configured The active communication link is sent in accordance with the request.
- the second determining unit includes: a parsing subunit, configured to parse the TCP file, wherein the TCP file records a correspondence between the user identifier and a local port; and the searching subunit is set according to the The mapping between the user identifier and the local port finds the local port of the application.
- a parsing subunit configured to parse the TCP file, wherein the TCP file records a correspondence between the user identifier and a local port
- the searching subunit is set according to the The mapping between the user identifier and the local port finds the local port of the application.
- the third determining unit comprises: a running subunit, configured to run a command for acquiring communication link information to obtain all communication links on the terminal; and a searching subunit, configured to be according to the local port and the communication chain Corresponding relationship of the road, searching for the communication link of the application from all the communication links.
- a terminal is provided.
- the terminal includes a transmitting device of any of the above communication links of the present invention.
- the communication link of the application requested by the request is obtained; the link of the application is transmitted according to the request, so that the communication link used by the application can be known.
- FIG. 1 is a flowchart of a method of transmitting a communication link according to an embodiment of the present invention
- FIG. 2 is a flowchart of a method for acquiring a communication link of a preferred application according to an embodiment of the present invention
- FIG. 3 is a structural block diagram of a transmitting apparatus of a communication link according to an embodiment of the present invention.
- FIG. 4 is a structural block diagram of a preferred acquisition module in accordance with an embodiment of the present invention.
- FIG. 5 is a structural block diagram of a terminal according to an embodiment of the present invention.
- FIG. 6 is a schematic diagram of an operating system architecture of an embodiment of the present invention.
- FIG. 7 is a flow chart of a method of an operating system returning to a communication link in accordance with an embodiment of the present invention.
- the terminal may be various types of terminals, for example, a mobile terminal or the like, but is not limited thereto.
- the terminal can run various types of operating systems, such as Android, iOS, and the like.
- a terminal can include at least one processor, a storage medium, and other general purpose components.
- the storage medium of the terminal may be a storage medium inside the terminal, or may be a storage medium expanded in the terminal expansion slot. It is to be expected that the methods and apparatus described in the following embodiments can be implemented by a computer program unit.
- FIG. 1 is a flowchart of a method for transmitting a communication link according to an embodiment of the present invention. As shown in FIG. 1, the method includes steps S102 to S104.
- Step S102 Acquire a communication link of the application requested by the request in response to the request of the requesting party.
- Step S104 sending a communication link of the application according to the request.
- the communication link of the application is sent to the above requester, but is not limited thereto.
- the communication link of the application requested by the request is acquired; the communication link of the application is sent to the requesting party, so that the requesting party can know the communication link used by the application.
- Detecting the link of the specified application can be used not only for the QoS link guarantee of the terminal, but also for directing the traffic package service, preventing the application from accessing the malicious website, and preventing the application from overturning the wall through the proxy server.
- FIG. 2 is a flowchart of a method for acquiring a communication link of a preferred application according to an embodiment of the present invention. As shown in FIG. 2, the method includes steps S202 to S208.
- Step S202 Acquire an application identifier of the requested application from the requester's request.
- Each application has a corresponding application identifier (also known as an application ID).
- Step S204 Determine a user identifier of the application according to the correspondence between the application identifier and the user identifier.
- the application identifier of the application is an identifier of a user assigned by the operating system to the application.
- the user ID of the application can be obtained by calling the underlying API of the operating system.
- Step S206 Determine a local port of the application according to the correspondence between the user identifier and the local port.
- the correspondence between the user identifier and the local port may be saved in the operating system.
- Step S208 determining a communication link of the application according to the correspondence between the local port and the communication link.
- step S206 and step S208 may be performed first, and then step S204 is performed.
- an effective communication link may also be extracted from the communication link of the application according to the state of the communication link of the application.
- the effective communication link of the application may be sent according to the request.
- the communication link valid for the application can be sent to the requesting party.
- the TCP file may be parsed, and the correspondence between the user identifier and the local port is recorded in the TCP file, and the application relationship may be found according to the correspondence between the user identifier and the local port. Local port.
- a command for acquiring communication link information may be executed to obtain all communication links on the terminal, according to the correspondence between the local port and the communication link, from all the The communication link of the application is found in the communication link.
- the communication link of the application may be requested by the application, or may be requested by other requesters.
- the above method can be implemented in a smart terminal operating system.
- the computer program unit can be written according to the above process, and the computer program unit can be packaged into an API for provisioning.
- Application developers can call the API through a computer program to get a communication link for the application.
- FIG. 3 is a structural block diagram of a transmitting apparatus of a communication link according to an embodiment of the present invention.
- the apparatus includes: an obtaining module 10 and a transmitting module 20.
- the obtaining module 10 is configured to obtain a communication link of the application requested by the request in response to the request of the requesting party
- the sending module 20 is configured to send the communication link of the application according to the request.
- the communication link for transmitting the application to the requesting party is configured to send the communication link of the application according to the request.
- the communication link of the application requested by the request is acquired; the communication link of the application is sent to the requesting party, so that the requesting party can know the communication link used by the application.
- the obtaining module 10 may include: an obtaining unit 102, configured to obtain an application identifier of an application from the request; and a first determining unit 104, And determining, according to the correspondence between the application identifier and the user identifier, the user identifier of the application; the second determining unit 106 is configured to determine the local port of the application according to the correspondence between the user identifier and the local port; and the third determining unit 108 is configured to be localized.
- the correspondence between the port and the communication link determines the communication link of the application.
- the obtaining module 10 may further include: an extracting unit configured to extract an effective communication link from the communication link of the application according to the state of the communication link of the application.
- the sending module 20 is further configured to send the communication link of the above application to the requesting party.
- the second determining unit 106 may include: a parsing subunit, configured to parse the TCP file, where the correspondence between the user identifier and the local port is recorded in the TCP file; The local port of the application is found according to the correspondence between the user identifier and the local port.
- the third determining unit 108 may include: a running subunit configured to run a command for acquiring communication link information to obtain all communication links on the terminal; In order to find the communication link of the application from all the communication links according to the correspondence between the local port and the communication link.
- FIG. 5 is a structural block diagram of a terminal according to an embodiment of the present invention. As shown in FIG. 5, the terminal may include the foregoing transmitting device of the communication link.
- the transmitting device of the above communication link may be implemented by a computer program unit, and preferably the computer program unit may be packaged into an API that can be called by an application.
- the terminal can include at least one processor and a storage medium, and the computer program element implementing the above method or apparatus can be stored in a storage medium, and the at least one processor can execute the computer program unit.
- Android terminal for example, mobile phone or tablet, etc.
- minimum configuration ARM architecture CPU, 512MB RAM, 1GB ROM, output device is a capacitive touch screen with resolution of 460*640;
- iOS terminal mobile phone or tablet: minimum configuration: ARM Cortex-A8CPU, 256MB RAM, 8GB ROM, output device is a capacitive touch screen with resolution of 480*320.
- FIG. 6 is a schematic diagram of an operating system architecture according to an embodiment of the present invention. The nouns in FIG. 6 are described below.
- Linux Kernel Linux kernel
- Display Driver Display Driver
- Bluetooth Driver Bluetooth driver
- Flash Memory Drive Flash Drive
- Binder (IPC) Driver wrapper driver
- USB Driver Universal Serial Bus Driver
- Audio Drivers Audio Drivers
- Power Management Power Management Module
- Application Framework Application Framework
- Content Providers Content Providers
- Location Manager Location Manager
- FIG. 7 is a flowchart of a method for an operating system to return to a communication link according to an embodiment of the present invention. As shown in FIG. 7, the method includes steps S702 to S716.
- step S702 the caller inputs an application identifier (for example, an application).
- Step S704 After receiving the call request for detecting the link, the system applies the identifier according to the input parameter, and invokes the basic API query of the system to obtain the user identifier of the application. If the user identifier of the application is found, the process proceeds to step S706, and if the application is not found. The user identification proceeds to step S716.
- Step S706 running the netstat command to find all the links on the terminal with the status of "SYN-SENT" and "ESTABLISHED" as valid links.
- the information of the link may include: a local address, a local port, a peer address, a peer port, and the like.
- Step S708 parsing the TCP file.
- the TCP file is located in the /proc/net/ directory of the system.
- the /proc/net/tcp file records all TCP connections under Internet Protocol version 4 (IPV4). This file can be read using the cat/proc/net/tcp command. Each line in the TCP file represents the information of an IPV4 link. The local port and user ID obtained from each line obtain the direct correspondence between the local port and the user ID.
- IPV4 Internet Protocol version 4
- the /proc/net/tcp6 file records all TCP connections under Internet Protocol version 6 (IPV6). Use the cat/proc/net/tcp6 command to read the file.
- IPV6 Internet Protocol version 6
- Each line in the TCP6 file represents the information of an IPV6 link.
- the local port and user ID obtained from each line obtain the direct correspondence between the local port and the user ID.
- step S710 the current parsing result is filtered by the user identifier of the application, and the local port used by the specified application is obtained. If the local port is found, the process proceeds to step S712. If not, the process proceeds to step S716.
- Step S712 according to the user identifier and the local port, the communication link of the specified application can be derived. If the communication link of the application is found, the process proceeds to step S714.
- Step S714 returning to the communication link of the application, and ending.
- the present invention achieves the following technical effects: the effect of real-time detection of the current real effective link can be achieved, the accuracy of link detection is improved, and the development cost is saved.
- modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
- the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
- the invention is not limited to any specific combination of hardware and software.
- the method, device, and terminal for transmitting a communication link provided by the embodiments of the present invention have the following beneficial effects: the real active link can be detected in real time, the accuracy of link detection is improved, and the development cost is saved.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
- Communication Control (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
L'invention concerne un procédé et un appareil d'envoi de liaison de communication, et un terminal. Le procédé d'envoi de liaison de communication consiste à : acquérir une liaison de communication demandée d'une application en réponse à une demande d'un demandeur ; et envoyer la liaison de communication de l'application en réponse à la demande. La présente invention permet d'acquérir une liaison de communication utilisée par une application.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017518388A JP6412641B2 (ja) | 2014-06-20 | 2014-09-12 | 通信リンクの送信方法、装置及び端末 |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410281148.7 | 2014-06-20 | ||
CN201410281148.7A CN105323216A (zh) | 2014-06-20 | 2014-06-20 | 通信链路的发送方法、装置及终端 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2015192497A1 true WO2015192497A1 (fr) | 2015-12-23 |
Family
ID=54934770
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2014/086455 WO2015192497A1 (fr) | 2014-06-20 | 2014-09-12 | Procédé et appareil d'envoi de liaison de communication, et terminal |
Country Status (3)
Country | Link |
---|---|
JP (1) | JP6412641B2 (fr) |
CN (1) | CN105323216A (fr) |
WO (1) | WO2015192497A1 (fr) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108881057B (zh) * | 2018-04-20 | 2022-08-02 | 网宿科技股份有限公司 | 回源线路的选择方法和流量分发器 |
CN113505323B (zh) * | 2021-05-26 | 2024-01-30 | 杭州安恒信息技术股份有限公司 | 提供翻墙服务网站的识别方法、装置、设备及存储介质 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101702121A (zh) * | 2009-10-29 | 2010-05-05 | 珠海金山软件股份有限公司 | Windows系统中程序网络流速控制装置 |
CN101902804A (zh) * | 2009-05-27 | 2010-12-01 | 宏碁股份有限公司 | 无线通信装置及其省电方法和封装包过滤方法 |
CN103279375A (zh) * | 2013-06-19 | 2013-09-04 | 百度在线网络技术(北京)有限公司 | 在浏览器中运行应用程序的方法和装置 |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7230921B2 (en) * | 2001-04-02 | 2007-06-12 | Telefonaktiebolaget Lm Ericsson (Publ) | Concurrent use of communication paths in a multi-path access link to an IP network |
EP1472826A1 (fr) * | 2002-01-29 | 2004-11-03 | Koninklijke Philips Electronics N.V. | Agencements de communications hertziennes bases sur le protocole internet |
JP2003304281A (ja) * | 2002-04-10 | 2003-10-24 | Nippon Telegr & Teleph Corp <Ntt> | セッション転送時のメディア品質制御方法 |
JP3819019B1 (ja) * | 2005-06-08 | 2006-09-06 | シャープ株式会社 | 送受信方法およびプログラム並びに記録媒体 |
US9629012B2 (en) * | 2010-09-20 | 2017-04-18 | Empire Technology Development Llc | Dynamic mobile application quality-of-service monitor |
CN102223307B (zh) * | 2011-06-29 | 2017-02-15 | 中兴通讯股份有限公司 | 一种处理套接字的方法、分组数据传输的方法及装置 |
CN102306118A (zh) * | 2011-08-31 | 2012-01-04 | 中兴通讯股份有限公司 | Android终端应用程序功耗监控的方法和装置 |
-
2014
- 2014-06-20 CN CN201410281148.7A patent/CN105323216A/zh active Pending
- 2014-09-12 WO PCT/CN2014/086455 patent/WO2015192497A1/fr active Application Filing
- 2014-09-12 JP JP2017518388A patent/JP6412641B2/ja active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101902804A (zh) * | 2009-05-27 | 2010-12-01 | 宏碁股份有限公司 | 无线通信装置及其省电方法和封装包过滤方法 |
CN101702121A (zh) * | 2009-10-29 | 2010-05-05 | 珠海金山软件股份有限公司 | Windows系统中程序网络流速控制装置 |
CN103279375A (zh) * | 2013-06-19 | 2013-09-04 | 百度在线网络技术(北京)有限公司 | 在浏览器中运行应用程序的方法和装置 |
Also Published As
Publication number | Publication date |
---|---|
JP6412641B2 (ja) | 2018-10-24 |
CN105323216A (zh) | 2016-02-10 |
JP2017528091A (ja) | 2017-09-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017114206A1 (fr) | Procédé et dispositif destinés au traitement de liaison courte et serveur de liaison courte | |
KR20190044134A (ko) | 웹사이트 액세스 방법, 장치, 및 웹사이트 시스템 | |
WO2016101635A1 (fr) | Procédé, appareil et dispositif de synchronisation d'état de connexion, et support de stockage informatique | |
US20140082154A1 (en) | File sharing method, terminal and relay server | |
US20140214921A1 (en) | System and method for identification of an application executed on a mobile device | |
TW201514745A (zh) | 客戶端應用的登錄方法及其相應的伺服器 | |
EP3748500B1 (fr) | Modèles de services de composants d'inversion de contrôle destinés à des environnements virtuels | |
US10623469B2 (en) | Methods and apparatuses for information transmission | |
US11163499B2 (en) | Method, apparatus and system for controlling mounting of file system | |
CN111641676B (zh) | 一种第三方云监控服务的构建方法及装置 | |
CN113010818A (zh) | 访问限流方法、装置、电子设备及存储介质 | |
US20170153909A1 (en) | Methods and Devices for Acquiring Data Using Virtual Machine and Host Machine | |
CN107135242B (zh) | Mongodb集群访问方法、装置及系统 | |
CN106648838B (zh) | 一种资源池管理的配置方法及装置 | |
CN111045833A (zh) | 接口调用的方法和装置 | |
WO2020088170A1 (fr) | Procédé de configuration de système de nom de domaine et appareil associé | |
WO2019047708A1 (fr) | Procédé de configuration de ressource et produit associé | |
CN112597039A (zh) | 虚拟机访问方法、系统、设备及计算机可读存储介质 | |
WO2014094240A1 (fr) | Méthode, dispositif et système d'interaction d'application internet | |
CN114327710B (zh) | 一种函数管理方法、管理装置、终端设备及可读存储介质 | |
CN112699034B (zh) | 虚拟登录用户构建方法、装置、设备及存储介质 | |
WO2015192497A1 (fr) | Procédé et appareil d'envoi de liaison de communication, et terminal | |
US11411887B2 (en) | Method and device for performing traffic control on user equipment | |
CN110022332B (zh) | 一种超文本传输安全协议代理方法、装置、设备及介质 | |
WO2017000540A1 (fr) | Procédé et dispositif d'interrogation de données |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 14895411 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2017518388 Country of ref document: JP Kind code of ref document: A |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 14895411 Country of ref document: EP Kind code of ref document: A1 |