CN113364842A - Network data transmission method - Google Patents

Network data transmission method Download PDF

Info

Publication number
CN113364842A
CN113364842A CN202110597473.4A CN202110597473A CN113364842A CN 113364842 A CN113364842 A CN 113364842A CN 202110597473 A CN202110597473 A CN 202110597473A CN 113364842 A CN113364842 A CN 113364842A
Authority
CN
China
Prior art keywords
service
server
extranet
target
request
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
Application number
CN202110597473.4A
Other languages
Chinese (zh)
Other versions
CN113364842B (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.)
Shenzhen Guangwang Century Technology Co ltd
Original Assignee
Henan Guangyue Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Henan Guangyue Network Technology Co ltd filed Critical Henan Guangyue Network Technology Co ltd
Priority to CN202110597473.4A priority Critical patent/CN113364842B/en
Publication of CN113364842A publication Critical patent/CN113364842A/en
Application granted granted Critical
Publication of CN113364842B publication Critical patent/CN113364842B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention relates to a network data transmission method, wherein a terminal device sends a service acquisition initial request to an extranet server, the extranet server sends a service acquisition target request to an extranet server, the service acquisition target request is obtained by processing the service acquisition initial request, the intranet server obtains a target service interface according to the service acquisition target request and a built-in service interface database, the intranet server calls the target service interface to obtain a response result and returns the response result to the extranet server, and the extranet server returns the response result to the terminal device. A plurality of service interfaces respectively corresponding to various services provided by the intranet server do not need to be configured in the extranet server, even if the number of the service interfaces on the extranet server is large when the number of the services provided by the intranet server is large, the complexity of the service interfaces in the extranet server is reduced, the workload of developers is reduced, and the influence degree on the server is reduced.

Description

Network data transmission method
Technical Field
The invention relates to a network data transmission method.
Background
The terminal application causes the server to execute the commands of the terminal application by calling an API (application program interface) of the operating system in the server. At present, more and more needs are: however, if the terminal device is in the external network, it is necessary to call the relevant service in the internal network, and a plurality of service interfaces corresponding to the services provided by the internal network need to be configured in the server in the external network. Accordingly, when the number of services provided by the intranet is large, the number of service interfaces on the server of the extranet is increased, the workload of developers is high, and the normal operation of the server is influenced to a certain extent.
Disclosure of Invention
In order to solve the technical problems in the background art, the invention provides a network data transmission method which can reduce the number of service interfaces on an external network server and reduce the workload of switching personnel.
A network data transmission method, comprising:
the method comprises the steps that terminal equipment sends a service acquisition initial request to an external network server, wherein the service acquisition initial request comprises an identifier of a target service required by the terminal equipment;
the extranet server sends a service acquisition target request to an intranet public service interface corresponding to the intranet server through an extranet public service interface corresponding to the extranet server, and the service acquisition target request is obtained by processing the service acquisition initial request;
the intranet server obtains a target request according to the service and a built-in service interface database to obtain a target service interface corresponding to the identification of the target service; the service interface database comprises at least two service identifications and service interfaces corresponding to the services;
the intranet server calls the target service interface to obtain a response result corresponding to the service acquisition target request, the response result is returned to the extranet server, and the extranet server returns the response result to the terminal equipment.
Preferably, the terminal device is a smart phone;
correspondingly, before the terminal device sends the service acquisition initial request to the extranet server, the network data transmission method further includes:
the terminal equipment acquires a PUK code of an SIM card input by a user during identity authentication, then compares the input PUK code of the SIM card with a real PUK code of a built-in SIM card of the terminal equipment, and if the comparison is passed, the terminal equipment activates the permission of sending the service acquisition initial request to the extranet server.
Preferably, after the terminal device sends the service acquisition initial request to the extranet server, the network data transmission method further includes:
the external network server carries out validity check on the service acquisition initial request; and if the service acquisition initial request is an effective request, generating the service acquisition target request according to the service acquisition initial request.
Preferably, the service acquisition target request includes an identifier of the target service and corresponding interface calling mode data;
correspondingly, the intranet server calls the target service interface, specifically:
and the intranet server calls the target service interface according to the interface calling mode data.
Preferably, the returning the response result to the extranet server specifically includes:
and the intranet server calls the extranet public service interface through the intranet public service interface and sends the response result to the extranet server.
The network data transmission method provided by the invention has the technical effects that: the terminal equipment sends a service acquisition initial request to an extranet server, then the extranet server sends a service acquisition target request to an intranet public service interface corresponding to an intranet server through an extranet public service interface corresponding to the extranet server, a service interface database is arranged in the intranet server and comprises at least two service identifications and service interfaces corresponding to the services, then the intranet server can obtain a target service interface corresponding to the target service identification according to the service acquisition target request and the service interface database, and the intranet server can call the obtained target service interface to obtain a response result corresponding to the service acquisition target request. By setting the service interface database, a plurality of service interfaces respectively corresponding to various services provided by the intranet server do not need to be configured in the extranet server, even if the services provided by the intranet server are more, the number of the service interfaces on the extranet server cannot be increased, the number of the service interfaces in the extranet server is reduced, the complexity of the service interfaces in the extranet server is reduced, the workload of developers is reduced, and the influence degree on the server is reduced.
Drawings
Fig. 1 is a flowchart of a network data transmission method provided in the present invention.
Detailed Description
The present embodiment provides a network data transmission method, as shown in fig. 1, the network data transmission method includes the following steps:
step 1: the method comprises the following steps that terminal equipment sends a service acquisition initial request to an external network server, wherein the service acquisition initial request comprises an identifier of a target service required by the terminal equipment:
in this embodiment, the extranet server is in an extranet, such as in the internet. The intranet server is in an intranet, such as an enterprise local area network.
And if the user needs to call the related service in the intranet through the terminal equipment, sending a service acquisition initial request to the extranet server through the terminal equipment. The service acquisition initial request is generated by a user operating a mobile device. The service acquisition initial request comprises an identification of a target service required by the terminal device.
The terminal device can be a smart phone, and can also be other intelligent mobile terminals, such as a tablet computer. In this embodiment, the terminal device is a smart phone.
In this embodiment, before the terminal device sends the service acquisition initial request to the extranet server, that is, before step 1, the network data transmission method further includes an authentication step, which is specifically as follows:
when the identity is verified, the user operates the terminal equipment to input the PUK code of the SIM card into the terminal equipment, and the terminal equipment can acquire the PUK code of the SIM card input by the user. Because the terminal equipment is internally provided with the SIM card, the terminal equipment can acquire the real PUK code of the SIM card in the terminal equipment. And then, the terminal equipment compares the PUK code of the SIM card input by the user with the real PUK code of the SIM card built in the terminal equipment, and if the comparison is passed, namely the PUK code of the SIM card input by the user is the same as the real PUK code of the SIM card built in the terminal equipment, the terminal equipment activates the permission of sending the service acquisition initial request to the extranet server.
Therefore, before the terminal device sends the service acquisition initial request to the extranet server, the user needs to be authenticated, and only after the authentication is passed, the terminal device can send the service acquisition initial request to the extranet server, so that the safety of network data transmission can be improved, the situation that irrelevant personnel operate the terminal device at will is avoided, and data loss can be prevented. Moreover, identity authentication is carried out by comparing the PUK codes, so that the safety and reliability of identity authentication can be improved, the operation steps are simpler, and the operation complexity is reduced.
Step 2: the extranet server sends a service acquisition target request to an intranet public service interface corresponding to the intranet server through an extranet public service interface corresponding to the extranet server, and the service acquisition target request is obtained by processing the service acquisition initial request:
the outer net server is provided with an outer net public service interface, and the inner net server is provided with an inner net public service interface. The outer network public service interface and the inner network public service interface are application program interfaces.
After receiving the service acquisition initial request, the extranet server sends a service acquisition target request to the intranet public service interface corresponding to the intranet server through the extranet public service interface corresponding to the extranet server, and the service acquisition target request is obtained by processing the service acquisition initial request.
In this embodiment, after step 1, that is, before step 2, the network data transmission method further includes: the extranet server performs validity check on the received service acquisition initial request, and the specific process of the validity check is set according to actual needs, for example, whether the service acquisition initial request has identification data of related services is checked, if yes, the service acquisition initial request is determined to be a valid request, and if not, the service acquisition initial request is determined not to be a valid request. And if the service acquisition initial request is an effective request, generating a service acquisition target request according to the service acquisition initial request. And then, the process of the step 2 is carried out, namely, the service acquisition target request is sent to the intranet public service interface corresponding to the intranet server through the extranet public service interface corresponding to the extranet server. Before the service acquisition target request is sent to the intranet server through the extranet server, whether the service acquisition initial request is valid or not is verified, the reliability of data transmission can be improved, the situation that subsequent data processing cannot be carried out due to the fact that the service acquisition initial request is invalid is avoided, and the complexity of data processing is reduced.
The extranet server processes the service acquisition initial request, and a processing process of obtaining the service acquisition target request is set according to actual needs, for example, data forwarding is directly performed, that is, the service acquisition initial request and the service acquisition target request are the same data. In this embodiment, after the extranet server obtains the service acquisition initial request, the corresponding interface calling mode data is added on the basis of the identifier of the target service. The interface call mode data may include an interface call mode and parameters related to the interface call mode. Therefore, the service acquisition target request includes the identification of the target service and the corresponding interface calling mode data.
And step 3: the intranet server obtains a target request according to the service and a built-in service interface database to obtain a target service interface corresponding to the identification of the target service; wherein the service interface database comprises identifications of at least two services and service interfaces corresponding to the services:
the intranet server is internally provided with a service interface database, and the service interface database comprises at least two service identifications and service interfaces corresponding to the services. As a specific embodiment, the service interface database comprises the identification of all the callable services known at present and the service interfaces corresponding to the services to meet the call requirements. In this embodiment, in the service interface database, service interfaces corresponding to identifiers of different services are different.
The intranet server obtains the service obtaining target request, and obtains a target service interface corresponding to the target service identifier according to the service obtaining target request and the service interface database, namely, the identifier of the target service in the service obtaining target request and the service interface database.
And 4, step 4: the intranet server calls the target service interface to obtain a response result corresponding to the service acquisition target request, the response result is returned to the extranet server, and the extranet server returns the response result to the terminal equipment:
and after the intranet server obtains the target service interface, calling the target service interface, namely calling the target service interface by the intranet server according to the interface calling mode data in the service acquisition target request.
And after the intranet server calls the target service interface, obtaining a response result corresponding to the service acquisition target request. And then, the intranet server returns the response result to the extranet server, namely, the intranet server calls an extranet public service interface through the intranet public service interface and sends the response result to the extranet server.
And after the response result is obtained by the extranet server, returning the response result to the terminal equipment.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (5)

1. A method for network data transmission, comprising:
the method comprises the steps that terminal equipment sends a service acquisition initial request to an external network server, wherein the service acquisition initial request comprises an identifier of a target service required by the terminal equipment;
the extranet server sends a service acquisition target request to an intranet public service interface corresponding to the intranet server through an extranet public service interface corresponding to the extranet server, and the service acquisition target request is obtained by processing the service acquisition initial request;
the intranet server obtains a target request according to the service and a built-in service interface database to obtain a target service interface corresponding to the identification of the target service; the service interface database comprises at least two service identifications and service interfaces corresponding to the services;
the intranet server calls the target service interface to obtain a response result corresponding to the service acquisition target request, the response result is returned to the extranet server, and the extranet server returns the response result to the terminal equipment.
2. The network data transmission method according to claim 1, wherein the terminal device is a smartphone;
correspondingly, before the terminal device sends the service acquisition initial request to the extranet server, the network data transmission method further includes:
the terminal equipment acquires a PUK code of an SIM card input by a user during identity authentication, then compares the input PUK code of the SIM card with a real PUK code of a built-in SIM card of the terminal equipment, and if the comparison is passed, the terminal equipment activates the permission of sending the service acquisition initial request to the extranet server.
3. The network data transmission method according to claim 1, wherein after the terminal device sends a service acquisition initial request to an extranet server, the network data transmission method further comprises:
the external network server carries out validity check on the service acquisition initial request; and if the service acquisition initial request is an effective request, generating the service acquisition target request according to the service acquisition initial request.
4. The network data transmission method according to claim 1, wherein the service acquisition target request includes an identifier of the target service and corresponding interface calling mode data;
correspondingly, the intranet server calls the target service interface, specifically:
and the intranet server calls the target service interface according to the interface calling mode data.
5. The network data transmission method according to claim 1, wherein the returning the response result to the extranet server specifically includes:
and the intranet server calls the extranet public service interface through the intranet public service interface and sends the response result to the extranet server.
CN202110597473.4A 2021-05-31 2021-05-31 Network data transmission method Active CN113364842B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110597473.4A CN113364842B (en) 2021-05-31 2021-05-31 Network data transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110597473.4A CN113364842B (en) 2021-05-31 2021-05-31 Network data transmission method

Publications (2)

Publication Number Publication Date
CN113364842A true CN113364842A (en) 2021-09-07
CN113364842B CN113364842B (en) 2022-12-16

Family

ID=77528335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110597473.4A Active CN113364842B (en) 2021-05-31 2021-05-31 Network data transmission method

Country Status (1)

Country Link
CN (1) CN113364842B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110091025A1 (en) * 2009-10-21 2011-04-21 Comcast Cable Communications, Llc Service Entry Device
CN105678613A (en) * 2016-01-04 2016-06-15 浪潮软件集团有限公司 Service processing method, device and system
CN107426339A (en) * 2017-09-04 2017-12-01 珠海迈越信息技术有限公司 A kind of cut-in method, the apparatus and system of data interface channel
CN108063772A (en) * 2018-01-18 2018-05-22 吉浦斯信息咨询(深圳)有限公司 A kind of Data Access Security method and system based on service side
WO2018149342A1 (en) * 2017-02-15 2018-08-23 中兴通讯股份有限公司 Public network accessing method and device and computer storage medium for user terminal of mobile private network
CN109543463A (en) * 2018-10-11 2019-03-29 平安科技(深圳)有限公司 Data Access Security method, apparatus, computer equipment and storage medium
CN110049059A (en) * 2019-04-26 2019-07-23 深圳市网心科技有限公司 A kind of outer net equipment and Intranet communication between devices method and relevant apparatus
CN111698334A (en) * 2020-06-24 2020-09-22 昆明东电科技有限公司 Network service method and system of dual reverse proxy between intranet and extranet
CN112398847A (en) * 2020-11-12 2021-02-23 华侨大学 Intranet penetration method and system based on TCP Socket and improved heartbeat mechanism
CN112839038A (en) * 2021-01-04 2021-05-25 城云科技(中国)有限公司 Method and system for transmitting data through one-way communication between servers

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110091025A1 (en) * 2009-10-21 2011-04-21 Comcast Cable Communications, Llc Service Entry Device
CN105678613A (en) * 2016-01-04 2016-06-15 浪潮软件集团有限公司 Service processing method, device and system
WO2018149342A1 (en) * 2017-02-15 2018-08-23 中兴通讯股份有限公司 Public network accessing method and device and computer storage medium for user terminal of mobile private network
CN107426339A (en) * 2017-09-04 2017-12-01 珠海迈越信息技术有限公司 A kind of cut-in method, the apparatus and system of data interface channel
CN108063772A (en) * 2018-01-18 2018-05-22 吉浦斯信息咨询(深圳)有限公司 A kind of Data Access Security method and system based on service side
CN109543463A (en) * 2018-10-11 2019-03-29 平安科技(深圳)有限公司 Data Access Security method, apparatus, computer equipment and storage medium
CN110049059A (en) * 2019-04-26 2019-07-23 深圳市网心科技有限公司 A kind of outer net equipment and Intranet communication between devices method and relevant apparatus
CN111698334A (en) * 2020-06-24 2020-09-22 昆明东电科技有限公司 Network service method and system of dual reverse proxy between intranet and extranet
CN112398847A (en) * 2020-11-12 2021-02-23 华侨大学 Intranet penetration method and system based on TCP Socket and improved heartbeat mechanism
CN112839038A (en) * 2021-01-04 2021-05-25 城云科技(中国)有限公司 Method and system for transmitting data through one-way communication between servers

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JENS FIEDLER;TOMAS KUPKA;THOMAS MAGEDANZ;MICHAEL KLEIS: "Reliable VoIP Services Using a Peer-to-Peer Intranet", 《EIGHTH IEEE INTERNATIONAL SYMPOSIUM ON MULTIMEDIA 》 *
吴英宾: "一种内外网数据交互系统的设计与实现", 《软件工程》 *

Also Published As

Publication number Publication date
CN113364842B (en) 2022-12-16

Similar Documents

Publication Publication Date Title
CN112769834B (en) Identity verification system, method and platform
CN104574057B (en) Online payment method and related equipment and system
KR101881058B1 (en) Method, apparatus and system for voice verification
KR101187457B1 (en) Method for providing smart cardsim security by checking a temporary subscriber identifiertmsi
KR101358346B1 (en) Method for auto log-in and system for the same
CN101099400A (en) Method of assessing compatibility between applications and processing devices
CN104021141B (en) Method, device and system for data processing and cloud service
CN106713315B (en) Login method and device of plug-in application program
CN112261717A (en) Network registration method, device, user terminal and storage medium
KR20130066901A (en) Apparatus and method for analyzing malware in data analysis system
CN105681258A (en) Session method and session device based on third-party server
CN111385274A (en) Cross-network service calling method and device, feature gateway and identity verification system
CN112448956A (en) Authority processing method and device of short message verification code and computer equipment
CN108037989B (en) SDK component identification method and device
CN105025548B (en) A kind of the connection control method and device of SIM card
CN107547737B (en) Data processing method and Subscriber Identity Module (SIM) shield thereof
CN113364842B (en) Network data transmission method
CN103782564A (en) Authentication system and method therefor
CN108271230B (en) Method and device for acquiring mobile management information and computer readable storage medium
CN109548411B (en) Method and device for controlling controllable equipment to access network
CN105743879A (en) Smart TV identity recognition method and smart TV identity recognition system
CN110234106B (en) Method and device for detecting whether VLR verifies identification response of called terminal
CN105516057A (en) Data processing method, apparatus and system
CN112004228B (en) Real person authentication method and system
CN110248326B (en) Data processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20221129

Address after: 518000 C, 20 / F, building B, Lvjing Plaza, No. 6009, Shennan Avenue, Xiangmihu Road, Futian District, Shenzhen, Guangdong Province

Applicant after: Shenzhen Guangwang Century Technology Co.,Ltd.

Address before: 450000 No. 33, Zone D, floor 8, building 2, No. 85, Jinshui East Road, Zhengzhou area (Zhengdong), pilot Free Trade Zone, Zhengzhou City, Henan Province

Applicant before: Henan GuangYue Network Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant