CN106855795A - A kind of Proxy program operated between App and server software - Google Patents

A kind of Proxy program operated between App and server software Download PDF

Info

Publication number
CN106855795A
CN106855795A CN201510897655.8A CN201510897655A CN106855795A CN 106855795 A CN106855795 A CN 106855795A CN 201510897655 A CN201510897655 A CN 201510897655A CN 106855795 A CN106855795 A CN 106855795A
Authority
CN
China
Prior art keywords
working node
business
app
node
control centre
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.)
Pending
Application number
CN201510897655.8A
Other languages
Chinese (zh)
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.)
SHANGHAI FOYOUNG COMMUNICATION SCIENCE Co Ltd
Original Assignee
SHANGHAI FOYOUNG COMMUNICATION SCIENCE 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 SHANGHAI FOYOUNG COMMUNICATION SCIENCE Co Ltd filed Critical SHANGHAI FOYOUNG COMMUNICATION SCIENCE Co Ltd
Priority to CN201510897655.8A priority Critical patent/CN106855795A/en
Publication of CN106855795A publication Critical patent/CN106855795A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • G06F9/4856Task life-cycle, e.g. stopping, restarting, resuming execution resumption being on a different machine, e.g. task migration, virtual machine migration
    • G06F9/4862Task life-cycle, e.g. stopping, restarting, resuming execution resumption being on a different machine, e.g. task migration, virtual machine migration the task being a mobile agent, i.e. specifically designed to migrate
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3648Software debugging using additional hardware
    • G06F11/3656Software debugging using additional hardware using a specific debug interface
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3696Methods or tools to render software testable
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/22Procedural
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The invention discloses a kind of Proxy program operated between App and server software, including control centre and programmable working node, working node can simultaneously operate on a machine and transparent to operation system as software with operation system, during be diverted to for business datum from control centre's reception rule and according to rule in multiple operation systems by working node or playback flows to test or analog service system, control centre is responsible for centralized management all working node, and is communicated with working node using RESTFUL-API agreements.The present invention to business programming and can be loaded into working node, realize software definition business;The real traffic of App access servers can be played back in simulated environment;Flexible DLL is provided, the information for business stream encryption can also be analyzed by programming real time decrypting;Centralized system management reduces O&M cost.

Description

A kind of Proxy program operated between App and server software
Technical field
The present invention relates to a kind of Proxy program, specifically one kind is operated between App and server software Proxy program.
Background technology
Current internet App is almost required for carrying out real-time information interaction with server software, if server The software App that breaks down can also face the awkward situation that cannot be run;In addition, during software upgrade server, due to A large amount of public testings cannot be done before reaching the standard grade, it is likely that cause experience to be deteriorated so as to lose user, some game chambers of commerce Restricting the number public testing is done, but if bad or experience excessive cycle its public praise is experienced during public testing can still be subject to negative shadow Ring.Therefore we need various schemes on the one hand to ensure the stable continuous service in line service, on the other hand Maximum is reduced brings unstability risk because program updates.
System monitoring is carried out by dongle in the prior art, the program is mainly used by the system resource for monitoring Whether situation and transmission healthprobe bag judge monitored service software in abnormality, if it find that Abnormal, then the service of resetting automatically can normally be run, and server software into problem occurs Time writes journal file, so that operation maintenance personnel is analyzed;The shortcoming of dongle is:Detection means is excessively simple It is plain:The monitoring of current scheme can only monitoring service software working port, the port of such as Sina's server is 80, and can not be to business tine monitor in real time;Result is excessively simple:Monitoring programme finds that service software is different Chang Shi, can force the service of restarting, and sometimes traffic pressure may result in greatly working end under actual motion environment Mouth is busy without the detection bag of response monitoring program, can so cause service software to be restarted repeatedly;Monitoring daily record Lack substance:Monitor produce daily record be only capable of record service software system resource using, restart situation, And can not provide service software business related monitoring information;O&M cost is high:Monitoring programme is needed in every thing It is separately configured on reason machine or virtual machine, if host number excessively cannot remotely be managed collectively.
Service distributing is carried out using balanced load shunting equipment in the prior art, the program uses special 7 at present Layer load balanced product, mainly by information combinations such as Cookie, URL to traffic balancing;Load balancing The shortcoming of shunting device is:Product software solidification can not meet different business models:Load balanced product is designed Excessively close, Service User can only can not be according to making come control business stream according to the existing mode of balanced product The demand of user defines Business Stream logic;Balanced limitation:Current such product passes through strategy rule downloading Load or Balance route are realized, and the URL and cookie information of increasing business take in practice Encryption, these rules fixed cannot process the information of encryption, cannot also meet business need in a balanced way; Lack the real-time playback to service traffics:Playback in real time can not be done to specified services stream, for example user wishes Business A can replicate a onto a test machine, while the request balancing equipment energy that test machine is returned It is enough to abandon or the specified event of triggering.
The content of the invention
It is an object of the invention to provide one kind monitoring granularity precisely, what O&M cost was low operates in App kimonos Proxy program between business device software, to solve the problems, such as to be proposed in above-mentioned background technology.
To achieve the above object, the present invention provides following technical scheme:
A kind of Proxy program operated between App and server software, including control centre and can compile The working node of journey, working node is operated on a machine and to business system simultaneously as software and operation system System is transparent, and working node receives rule and business datum is diverted into multiple business systems according to rule from control centre On system or playback business flow to test or analog service system in, control centre is responsible for centralized management all working section Point, and communicated with working node using ESTFUL-API agreements.
As further scheme of the invention:The node is by key-course, data Layer, forwarding and network I/O Four part of layer composition, wherein key-course are used to be communicated with center-side, are responsible for receiving service logic and being registered to data In layer;The data flow that data Layer treatment is passed through, if service logic, all of data flow can be by data Layer Treatment;Business Stream is sent to the main frame specified for safeguarding a forward table for forwarding;Network I O layer is used In the actual transmission of data, while the Business Stream to marking carries out stream control.
As further scheme of the invention:The center-side is led to by WEB management, compiler engine, node Letter component composition, wherein the service logic that user writes is compiled into the library text that node is supported by compiler engine Part.
Compared with prior art, the beneficial effects of the invention are as follows:
The present invention can inject the customized business processing logic of user, and be loaded into HTTP-hooker, And then accomplish more accurately to monitor granularity, the processing business number TPS per second of such as statistical service type, and according to The threshold values of setting triggers different business event, such as:Shunting, alarm etc.;App can be played back and access clothes Be engaged in device real traffic in test environment, can be checked in real network environment before allowing new business to reach the standard grade; Open DLL is provided, the self-defined business model of user is allowed for testing or optimizing, more traditional regulation Tactful mode is more flexible, and the information for business stream encryption can also be analyzed by programming real time decrypting; The management of centralized system reduces O&M cost.
Brief description of the drawings
Fig. 1 is the software deployment schematic diagram in the present invention.
Fig. 2 is the software system structure schematic diagram in the present invention.
Fig. 3 is handling process schematic diagram when interior joint of the present invention receives request data.
Fig. 4 is handling process schematic diagram when interior joint of the present invention receives reply data.
Fig. 5 is schematic diagram of the present invention by true environment business flow field simulation.
Specific embodiment
The technical scheme of this patent is described in more detail with reference to specific embodiment.
Refer to Fig. 1-2, a kind of Proxy program operated between App and server software, including control Center processed and programmable working node, working node operate in a machine simultaneously as software and operation system Upper and transparent to operation system, working node receives rule and is shunted business datum according to rule from control centre On to multiple operation systems or playback business flow to test or analog service system in, control centre is responsible for concentrate tube Control all working node, and communicated with working node using ESTFUL-API agreements.
The node is made up of key-course, data Layer, forwarding and the part of network I O layer four, wherein key-course For being communicated with center-side, it is responsible for receiving service logic and being registered in data Layer;The number that data Layer treatment is passed through According to stream, if service logic, all of data flow can be processed by data Layer;Forwarding is used for safeguarding one Forward table, Business Stream is sent to the main frame specified;Network I O layer is used for the actual transmission of data, while right The Business Stream of mark carries out stream control, and the center-side is by WEB management, compiler engine, node communication component group Into wherein the service logic that user writes is compiled into the library file that node is supported by compiler engine.
Fig. 3 is referred to, when node receives request data, http_xxx_hooker is the hook points that can be injected, Service logic is carried in the two dot sequencies and performs with the movable state of chain sheet form, and the processing procedure of Hook points is logical Cross key-course with logon mode increase or update, for example:Key-course is by calling: Register_httpHook (HOOK_POINT, http_process) can increase http_process processing procedures, HTTP shared buffer memories describe an information for HTTP streams, and the privately owned number of business can be associated, preserved by it According to.
Fig. 4 is referred to, when Hooker nodes receive HTTP reply datas, with treatment HTTP request mistake Cheng Xiangtong, if response request is given tacit consent to when by being the discovery that the data that mirror image server is returned after forward process The response is abandoned, processing procedure can be redefined by forward_hooker positions.
Fig. 5 is referred to, Fig. 5 describes the present invention before formally reaching the standard grade by the feelings of true environment business flow field simulation Condition, the present invention needs to increase the individual history cell-phone number information of the user in cookie.
Defining three service logics in control centre first is:
(1) cookie of original A business is decrypted and extracts subscriber identity information, looked into according to ID Ask Service Database A, the registration cell-phone number (new business needs cookie carrying mobile phones number) that will be inquired about it is additional To in cookie information and encrypt, finally amended HTTP request is played back on new business A servers;
(2) the service request mark to user X does HTTP playback.
(3) the service request mark to user Y does service distributing
The service logic of definition is issued on node by RESTFUL communication interfaces, and the key-course of node is by under So file dynamic loads of hair, and function therein (service logic) dynamic registration is arrived In http_request_hooker and http_forward_hooker.When there is real user's X request, Decryption judges X user identity in request_request_hooker, and can demonstrate the need for playback to request marking Forwarding;The Business Stream for playing back can be inquired about according to the service logic of new definition in request_forward_hooker Database increases cell-phone number information, and finally encryption is forwarded on new business A (test environment);It is real when having When user Y requests come, decryption judges Y identity in request_request_hooker, and obtains meeting to asking Marking is asked to demonstrate the need for shunting forwarding;Can be to the Business Stream of shunting mark in request_forward_hooker It is forwarded on another business A server.
The present invention can inject the customized business processing logic of user, and be loaded into HTTP-hooker, And then accomplish more accurately to monitor granularity, the processing business number TPS per second of such as statistical service type, and according to The threshold values of setting triggers different business event, such as:Shunting, alarm etc.;App can be played back and access clothes Be engaged in device real traffic in test environment, can be checked in real network environment before allowing new business to reach the standard grade; Open DLL is provided, the self-defined business model of user is allowed for testing or optimizing, more traditional regulation Tactful mode is more flexible, and the information for business stream encryption can also be analyzed by programming real time decrypting; The management of centralized system reduces O&M cost.
The better embodiment to this patent is explained in detail above, but this patent is not limited to above-mentioned implementation Mode, in the ken that one skilled in the relevant art possesses, can also not depart from this patent ancestor Various changes can be made on the premise of purport.

Claims (3)

1. a kind of Proxy program operated between App and server software, it is characterised in that including control Center processed and programmable working node, working node operate in a machine simultaneously as software and operation system Upper and transparent to operation system, working node receives rule and is shunted business datum according to rule from control centre On to multiple operation systems or playback business flow to test or analog service system in, control centre is responsible for concentrate tube Control all working node, and communicated with working node using ESTFUL-API agreements.
2. the Proxy program operated between App and server software according to claim 1, its It is characterised by, the node is made up of key-course, data Layer, forwarding and the part of network I O layer four, wherein Key-course is used to be communicated with center-side, is responsible for receiving service logic and being registered in data Layer;Data Layer treatment warp The data flow crossed, if service logic, all of data flow can be processed by data Layer;Forwarding is used for tieing up One forward table of shield, Business Stream is sent to the main frame specified;Network I O layer is used for the actual transmission of data, Stream control is carried out to the Business Stream for marking simultaneously.
3. the Proxy program operated between App and server software according to claim 2, its It is characterised by, the center-side is made up of WEB management, compiler engine, node communication component, wherein passing through The service logic that user writes is compiled into compiler engine the library file of node support.
CN201510897655.8A 2015-12-08 2015-12-08 A kind of Proxy program operated between App and server software Pending CN106855795A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510897655.8A CN106855795A (en) 2015-12-08 2015-12-08 A kind of Proxy program operated between App and server software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510897655.8A CN106855795A (en) 2015-12-08 2015-12-08 A kind of Proxy program operated between App and server software

Publications (1)

Publication Number Publication Date
CN106855795A true CN106855795A (en) 2017-06-16

Family

ID=59131822

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510897655.8A Pending CN106855795A (en) 2015-12-08 2015-12-08 A kind of Proxy program operated between App and server software

Country Status (1)

Country Link
CN (1) CN106855795A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108388501A (en) * 2018-01-10 2018-08-10 链家网(北京)科技有限公司 Integration test method between a kind of system
CN109144618A (en) * 2018-09-10 2019-01-04 中铝视拓智能科技有限公司 A kind of service flow execution method and relevant apparatus
CN110022247A (en) * 2019-04-15 2019-07-16 重庆天蓬网络有限公司 A kind of test method of APP Data Encryption Transmission
CN110445691A (en) * 2019-08-16 2019-11-12 上海锵戈科技有限公司 Customize the network service transmission performance test method and apparatus combined with playback
CN111274117A (en) * 2018-12-04 2020-06-12 阿里巴巴集团控股有限公司 Recommended service experiment and management method, device and system thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101304341A (en) * 2008-06-05 2008-11-12 西安交通大学 Method for testing TCP network flow playback based on receiving-transmitting balance
CN101739277A (en) * 2009-12-08 2010-06-16 南京联创科技集团股份有限公司 Self-defined script mode-based method for managing service monitoring system
CN102238632A (en) * 2010-04-21 2011-11-09 电信科学技术研究院 Distribution processing method, system and equipment
CN103581273A (en) * 2012-08-08 2014-02-12 阿里巴巴集团控股有限公司 Service executing method, device and system for distributed system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101304341A (en) * 2008-06-05 2008-11-12 西安交通大学 Method for testing TCP network flow playback based on receiving-transmitting balance
CN101739277A (en) * 2009-12-08 2010-06-16 南京联创科技集团股份有限公司 Self-defined script mode-based method for managing service monitoring system
CN102238632A (en) * 2010-04-21 2011-11-09 电信科学技术研究院 Distribution processing method, system and equipment
CN103581273A (en) * 2012-08-08 2014-02-12 阿里巴巴集团控股有限公司 Service executing method, device and system for distributed system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108388501A (en) * 2018-01-10 2018-08-10 链家网(北京)科技有限公司 Integration test method between a kind of system
CN108388501B (en) * 2018-01-10 2021-09-17 贝壳找房(北京)科技有限公司 Intersystem integration test method
CN109144618A (en) * 2018-09-10 2019-01-04 中铝视拓智能科技有限公司 A kind of service flow execution method and relevant apparatus
CN111274117A (en) * 2018-12-04 2020-06-12 阿里巴巴集团控股有限公司 Recommended service experiment and management method, device and system thereof
CN111274117B (en) * 2018-12-04 2023-04-18 阿里巴巴集团控股有限公司 Recommended service experiment and management method, device and system thereof
CN110022247A (en) * 2019-04-15 2019-07-16 重庆天蓬网络有限公司 A kind of test method of APP Data Encryption Transmission
CN110022247B (en) * 2019-04-15 2020-10-16 重庆天蓬网络有限公司 APP data encryption transmission test method
CN110445691A (en) * 2019-08-16 2019-11-12 上海锵戈科技有限公司 Customize the network service transmission performance test method and apparatus combined with playback
CN110445691B (en) * 2019-08-16 2020-03-24 上海锵戈科技有限公司 Method and device for testing network service transmission performance by combining customization and playback

Similar Documents

Publication Publication Date Title
CN106855795A (en) A kind of Proxy program operated between App and server software
US20200259889A1 (en) Distributed network services
US9680708B2 (en) Method and apparatus for cloud resource delivery
DE102019121364A1 (en) MOBILE EDGE CLOUD SECURITY INFRASTRUCTURE
TW548930B (en) Application development interface for multi-user applications executable over communication networks
CN107637018A (en) Technology for the security personalization of security monitoring virtual network function
CN104734872B (en) A kind of industrial backhaul network implementation method and system based on software defined network
CN105917690A (en) System, method, and computer program for preserving service continuity in network function virtualization (NFV) based communication network
US10623415B2 (en) Virtual network function (VNF) hardware trust in a network function virtualization (NFV) software defined network (SDN)
CN102473111A (en) Control server, service-providing system, and method of providing a virtual infrastructure
CN108833335A (en) A kind of network security function service catenary system based on cloud computing management platform Openstack
CN103368768A (en) Automatically scaled network overlay with heuristic monitoring in hybrid cloud environment
CN106936715A (en) virtual machine message control method and device
CN106134141A (en) A kind of method and device updating network service describer NSD
CN109787827B (en) CDN network monitoring method and device
CN105677452A (en) Task processing method and device for task platform
CN109525592A (en) Data sharing method, device, equipment and computer readable storage medium
CN104408552A (en) Method, device and system for cooperatively processing task
CN106162715A (en) Method for managing and monitoring and device
Lee et al. High-performance software load balancer for cloud-native architecture
CN106559323A (en) A kind of method and apparatus sent on SDN equipment first packet
CN106209423B (en) Virtual desktop distribution method and device
CN106254154A (en) A kind of resource share method and device
CN104363257B (en) A kind of user interface data method for refreshing and equipment
CN104219280B (en) A kind of intelligent use data transmission channel

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170616