CN109769012A - A kind of access method and device of Web server - Google Patents

A kind of access method and device of Web server Download PDF

Info

Publication number
CN109769012A
CN109769012A CN201811520025.9A CN201811520025A CN109769012A CN 109769012 A CN109769012 A CN 109769012A CN 201811520025 A CN201811520025 A CN 201811520025A CN 109769012 A CN109769012 A CN 109769012A
Authority
CN
China
Prior art keywords
server
view networking
proxy server
networking
depending
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
CN201811520025.9A
Other languages
Chinese (zh)
Other versions
CN109769012B (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.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information 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 Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN201811520025.9A priority Critical patent/CN109769012B/en
Publication of CN109769012A publication Critical patent/CN109769012A/en
Application granted granted Critical
Publication of CN109769012B publication Critical patent/CN109769012B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

This application provides a kind of access method of Web server and devices, the solicited message that user terminal is initiated is received by the first view networking proxy server, then by the way that the solicited message is sent to the second view networking proxy server depending on networking Core server, solicited message is sent to corresponding Web server depending on networking proxy server by second, then Web server handles solicited message, and request response message is returned to user terminal, user is allowed to be deployed in the Web server in view networked environment by the user terminal access of local area network, to regard the server in networking as data transmitting server by being deployed in, realize that user is accessed by the Web server except the user terminal local area network in local area network, greatly increase the working efficiency of research and development and maintenance, it reduces costs.

Description

A kind of access method and device of Web server
Technical field
This application involves technical field of data processing, access method, a kind of Web more particularly to a kind of Web server The access mechanism of server and a kind of computer readable storage medium.
Background technique
It is the important milestone of network Development depending on networking, is the more advanced form of internet, is a real-time network, it can It realizes the whole network HD video real-time Transmission that current internet cannot achieve, pushes numerous Internet applications to HD video, High definition is face-to-face, will finally realize that the world without distance, realizes that the distance of person to person in global range is the distance of a screen.
Web service program is all being deployed depending on many servers in networking, Web service program is deployed in internet information It services in (Internet Information Server, IIS), user can take accordingly from Web service routine access Business.
However currently, the Web that user can not be accessed in view networked environment by local area network takes in the place of view networking covering Business program.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present application and overcomes the above problem or at least partly in order to provide one kind A kind of access method of the Web server to solve the above problems, a kind of access mechanism of Web server and a kind of computer can Read storage medium.
To solve the above-mentioned problems, the embodiment of the present application discloses a kind of access method of Web server, and the method is answered For regarding in networking, the view networking is connect with ethernet communication, wherein includes first view networking agency's clothes in the view networking Business device, view networking Core server, the second view networking proxy server and Web server, the Ethernet include that user is whole End, which comprises
Described first receives the solicited message that the user terminal is initiated depending on networking proxy server, and the solicited message is Access the information of the Web server;
The solicited message is sent to the view networking Core server depending on networking proxy server by described first;
It is described that the solicited message is sent to the second view networking proxy server depending on networking Core server;
The solicited message is sent to the Web server depending on networking proxy server by described second;
The Web server use the solicited message, generate request response message, the request response message for for The information of the access Web server;
The request response message is sent to the second view networking proxy server by the Web server;
The request response message is sent to the core depending on networking proxy server by described second regards networked server;
The request response message is sent to the first view networking proxy server depending on networked server by the core;
The request response message is sent to the user terminal, the user depending on networking proxy server by described first Terminal is used to access to the Web server for the request response message.
Preferably, described first the solicited message is sent to the view networking kernel service depending on networking proxy server Device, comprising:
The first view networking proxy server is directed to the solicited message, generates the port being adapted to the solicited message Number;
Described first is packaged the solicited message and the port numbers depending on networking proxy server, generates for pre- If depending on the first protocol data of networking protocol;
First protocol data is sent to the view networking Core server depending on networking proxy server by described first.
Preferably, described second depending on networking proxy server the solicited message is sent to the Web server before, Further include:
The second view networking proxy server parses first protocol data, obtains the solicited message.
Preferably, described second the request response message is sent to the core view networking depending on networking proxy server Server, comprising:
Described second is packaged the request response message and the port numbers depending on networking proxy server, generates institute State the second protocol data of default view networking protocol;
The second protocol data are sent to the view networking Core server depending on networking proxy server by described second.
Preferably, described first depending on networking proxy server the solicited message is sent to the user terminal before, Further include:
The first view networking proxy server parses the second protocol data, obtains the request response message.
Present invention also provides a kind of access mechanism of Web server, described device is applied in view networking, the view connection Net is connect with ethernet communication, wherein includes the first view networking proxy server, view networking kernel service in the view networking Device, the second view networking proxy server and Web server, the Ethernet include user terminal, and described device includes:
Solicited message receiving module receives asking for the user terminal initiation depending on networking proxy server for described first Information is sought, the solicited message is to access the information of the Web server data;
The solicited message is sent to for described first depending on networking proxy server by the first solicited message sending module The view networking Core server;
Second solicited message sending module will be described for view networking Core server according to the solicited message Solicited message is sent to the second view networking proxy server;
The solicited message is sent to for described second depending on networking proxy server by third solicited message sending module The Web server;
Response message generation module is requested, uses the solicited message for the Web server, generates request response letter Breath, the request response message are the information for the access Web server data;
First request response message sending module, is sent to institute for the request response message for the Web server State the second view networking proxy server;
The request is responded for the second view networking proxy server and is believed by the second request response message sending module Breath is sent to the core view networked server;
Third requests response message sending module, sends out the request response message for core view networked server It send to the first view networking proxy server;
The request is responded for the first view networking proxy server and is believed by the 4th request response message sending module Breath is sent to the user terminal, and the user terminal is used to access for the request response message from the Web server Data.
Preferably, the first solicited message sending module may include:
Port numbers generate submodule, for it is described first view networking proxy server use the solicited message, generate with The port numbers of the solicited message adaptation;
First protocol information generates submodule, for the first view networking proxy server to the solicited message and institute It states port numbers to be packaged, generates the first protocol data of default view networking protocol;
First protocol information sending submodule regards networking proxy server for first protocol data for described first It is sent to the view networking Core server.
Preferably, the second request response transmission information includes:
Second protocol information generates submodule, for the second view networking proxy server to the request response message It is packaged with the port numbers, generates the second protocol data of the default view networking protocol;
Second protocol information sending submodule regards networking proxy server for the second protocol data for described second It is sent to the view networking Core server.
Present invention also provides a kind of devices, comprising:
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, are executed when by one or more of processors When, so that described device executes the access method of one or more Web servers as described above.
Present invention also provides the computer programs of a kind of computer readable storage medium, storage, and processor is executed The access method of Web server as described above.
The embodiment of the present application includes the following advantages:
In the embodiment of the present application, the solicited message that user terminal is initiated is received by the first view networking proxy server, Then it by the way that the solicited message is sent to the second view networking proxy server depending on networking Core server, is networked by the second view Solicited message is sent to corresponding Web server by proxy server, and then Web server handles solicited message, and returns and ask It asks response message to user terminal, user is deployed in view networked environment by the user terminal access of local area network Web server, so that the server by being deployed in view networking realizes that user passes through local area network as data transmitting server Web server except interior user terminal local area network accesses, and greatly increases the working efficiency of research and development and maintenance, It reduces costs.
Detailed description of the invention
Fig. 1 is a kind of networking schematic diagram of view networking of the application;
Fig. 2 is a kind of hardware structural diagram of node server of the application;
Fig. 3 is a kind of hardware structural diagram of access switch of the application;
Fig. 4 is that a kind of Ethernet association of the application turns the hardware structural diagram of gateway;
Fig. 5 is a kind of step flow chart of the access method embodiment of Web server of the embodiment of the present application;
Fig. 6 is a kind of structural block diagram of the access mechanism embodiment of Web server of the embodiment of the present application.
Specific embodiment
In order to make the above objects, features, and advantages of the present application more apparent, with reference to the accompanying drawing and it is specific real Applying mode, the present application will be further described in detail.
It is the important milestone of network Development depending on networking, is a real-time network, can be realized HD video real-time Transmission, Push numerous Internet applications to HD video, high definition is face-to-face.
Real-time high-definition video switching technology is used depending on networking, it can be such as high in a network platform by required service Clear video conference, Intellectualized monitoring analysis, emergency command, digital broadcast television, delay TV, the Web-based instruction, shows video monitoring Field live streaming, VOD program request, TV Mail, individual character records (PVR), Intranet (manages) channel by oneself, intelligent video Broadcast Control, information publication All be incorporated into a system platform etc. services such as tens of kinds of videos, voice, picture, text, communication, data, by TV or Computer realizes that high-definition quality video plays.
To make those skilled in the art more fully understand the embodiment of the present application, it is introduced below to depending on networking:
Depending on networking, applied portion of techniques is as described below:
Network technology (Network Technology)
Traditional ethernet (Ethernet) is improved depending on the network technology innovation networked, with potential huge on network First video flow.It is exchanged different from simple network packet packet switch (Packet Switching) or lattice network (Circuit Switching) meets Streaming demand using Packet Switching depending on networking technology.Depending on skill of networking Art has flexible, the simple and low price of packet switch, is provided simultaneously with the quality and safety assurance of circuit switching, realizes the whole network friendship Change the seamless connection of formula virtual circuit and data format.
Switching technology (Switching Technology)
Two advantages of asynchronous and packet switch that Ethernet is used depending on networking eliminate Ethernet under the premise of complete compatible and lack It falls into, has the end-to-end seamless connection of the whole network, direct user terminal, directly carrying IP data packet.User data is in network-wide basis It is not required to any format conversion.It is the more advanced form of Ethernet depending on networking, is a real-time exchange platform, can be realized at present mutually The whole network large-scale high-definition realtime video transmission that networking cannot achieve pushes numerous network video applications to high Qinghua, unitizes.
Server technology (Server Technology)
It is different from traditional server, its Streaming Media depending on the server technology in networking and unified video platform Transmission be built upon it is connection-oriented on the basis of, data-handling capacity is unrelated with flow, communication time, single network layer energy Enough transmitted comprising signaling and data.For voice and video business, handled depending on networking and unified video platform Streaming Media Complexity many simpler than data processing, efficiency substantially increase hundred times or more than traditional server.
Reservoir technology (Storage Technology)
The ultrahigh speed reservoir technology of unified video platform in order to adapt to the media content of vast capacity and super-flow and Using state-of-the-art real time operating system, the programme information in server instruction is mapped to specific hard drive space, media Content is no longer pass through server, and moment is directly delivered to user terminal, and user waits typical time less than 0.2 second.It optimizes Sector distribution greatly reduces the mechanical movement of hard disc magnetic head tracking, and resource consumption only accounts for the 20% of the internet ad eundem IP, but The concurrent flow greater than 3 times of traditional disk array is generated, overall efficiency promotes 10 times or more.
Network security technology (Network Security Technology)
Depending on the structural design networked by servicing independent licence system, equipment and the modes such as user data is completely isolated every time The network security problem that puzzlement internet has thoroughly been eradicated from structure, does not need antivirus applet, firewall generally, has prevented black The attack of visitor and virus, structural carefree secure network is provided for user.
It services innovative technology (Service Innovation Technology)
Business and transmission are fused together by unified video platform, whether single user, private user or a net The sum total of network is all only primary automatic connection.User terminal, set-top box or PC are attached directly to unified video platform, obtain rich The multimedia video service of rich colorful various forms.Unified video platform is traditional to substitute with table schema using " menu type " Complicated applications programming, considerably less code, which can be used, can be realized complicated application, realize the new business innovation of " endless ".
Networking depending on networking is as described below:
It is a kind of central controlled network structure depending on networking, which can be Tree Network, Star network, ring network etc. class Type, but centralized control node is needed to control whole network in network on this basis.
As shown in Figure 1, being divided into access net and Metropolitan Area Network (MAN) two parts depending on networking.
The equipment of access mesh portions can be mainly divided into 3 classes: node server, access switch, terminal (including various machines Top box, encoding board, memory etc.).Node server is connected with access switch, and access switch can be with multiple terminal phases Even, and it can connect Ethernet.
Wherein, node server is the node that centralized control functions are played in access net, can control access switch and terminal. Node server can directly be connected with access switch, can also directly be connected with terminal.
Similar, the equipment of metropolitan area mesh portions can also be divided into 3 classes: metropolitan area server, node switch, node serve Device.Metropolitan area server is connected with node switch, and node switch can be connected with multiple node servers.
Wherein, node server is the node server for accessing mesh portions, i.e. node server had both belonged to access wet end Point, and belong to metropolitan area mesh portions.
Metropolitan area server is the node that centralized control functions are played in Metropolitan Area Network (MAN), can control node switch and node serve Device.Metropolitan area server can be directly connected to node switch, can also be directly connected to node server.
It can be seen that be entirely a kind of central controlled network structure of layering depending on networking network, and node server and metropolitan area The network controlled under server can be the various structures such as tree-shaped, star-like, cyclic annular.
Visually claim, access mesh portions can form unified video platform (part in virtual coil), and multiple unified videos are flat Platform can form view networking;Each unified video platform can be interconnected by metropolitan area and wide area depending on networking.
Classify depending on networked devices
1.1 the embodiment of the present application can be mainly divided into 3 classes: server depending on the equipment in networking, interchanger (including ether Net association turns gateway), terminal (including various set-top boxes, encoding board, memory etc.).Metropolitan Area Network (MAN) can be divided on the whole depending on networking (or national net, World Wide Web etc.) and access net.
1.2 equipment for wherein accessing mesh portions can be mainly divided into 3 classes: node server, access switch (including ether Net association turns gateway), terminal (including various set-top boxes, encoding board, memory etc.).
The specific hardware structure of each access network equipment are as follows:
Node server:
As shown in Fig. 2, mainly including Network Interface Module 201, switching engine module 202, CPU module 203, disk array Module 204;
Wherein, Network Interface Module 201, the Bao Jun that CPU module 203, disk array module 204 are come in enter switching engine Module 202;Switching engine module 202 look into the operation of address table 205 to the packet come in, to obtain the navigation information of packet; And the packet is stored according to the navigation information of packet the queue of corresponding pack buffer 206;If the queue of pack buffer 206 is close It is full, then it abandons;All pack buffer queues of 202 poll of switching engine mould, are forwarded: 1) port if meeting the following conditions It is less than to send caching;2) the queue package counting facility is greater than zero.Disk array module 204 mainly realizes the control to hard disk, including The operation such as initialization, read-write to hard disk;CPU module 203 is mainly responsible between access switch, terminal (not shown) Protocol processes, to address table 205 (including descending protocol packet address table, uplink protocol package address table, data packet addressed table) Configuration, and, the configuration to disk array module 204.
Access switch:
As shown in figure 3, mainly including Network Interface Module (downstream network interface module 301, uplink network interface module 302), switching engine module 303 and CPU module 304;
Wherein, the packet (upstream data) that downstream network interface module 301 is come in enters packet detection module 305;Packet detection mould Whether mesh way address (DA), source address (SA), type of data packet and the packet length of the detection packet of block 305 meet the requirements, if met, It then distributes corresponding flow identifier (stream-id), and enters switching engine module 303, otherwise abandon;Uplink network interface mould The packet (downlink data) that block 302 is come in enters switching engine module 303;The data packet that CPU module 204 is come in enters switching engine Module 303;Switching engine module 303 look into the operation of address table 306 to the packet come in, to obtain the navigation information of packet; If the packet into switching engine module 303 is that downstream network interface is gone toward uplink network interface, in conjunction with flow identifier (stream-id) packet is stored in the queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full, It abandons;If the packet into switching engine module 303 is not that downstream network interface is gone toward uplink network interface, according to packet Navigation information is stored in the data packet queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full, Then abandon.
All pack buffer queues of 303 poll of switching engine module, may include two kinds of situations:
If the queue is that downstream network interface is gone toward uplink network interface, meets the following conditions and be forwarded: 1) It is less than that the port sends caching;2) the queue package counting facility is greater than zero;3) token that rate control module generates is obtained;
If the queue is not that downstream network interface is gone toward uplink network interface, meets the following conditions and is forwarded: 1) it is less than to send caching for the port;2) the queue package counting facility is greater than zero.
Rate control module 208 is configured by CPU module 204, to all downlink networks in programmable interval Interface generates token toward the pack buffer queue that uplink network interface is gone, to control the code rate of forwarded upstream.
CPU module 304 is mainly responsible for the protocol processes between node server, the configuration to address table 306, and, Configuration to rate control module 308.
Ethernet association turns gateway:
As shown in figure 4, mainly including Network Interface Module (downstream network interface module 401, uplink network interface module 402), switching engine module 403, CPU module 404, packet detection module 405, rate control module 408, address table 406, Bao Huan Storage 407 and MAC adding module 409, MAC removing module 410.
Wherein, the data packet that downstream network interface module 401 is come in enters packet detection module 405;Packet detection module 405 is examined Ethernet mac DA, ethernet mac SA, Ethernet length or frame type, the view networking mesh way address of measured data packet DA, whether meet the requirements depending on networking source address SA, depending on networking data Packet type and packet length, corresponding stream is distributed if meeting Identifier (stream-id);Then, MAC DA, MAC SA, length or frame type are subtracted by MAC removing module 410 (2byte), and enter corresponding receive and cache, otherwise abandon;
Downstream network interface module 401 detects the transmission caching of the port, according to the view of packet networking mesh if there is Bao Ze Address D A knows the ethernet mac DA of corresponding terminal, adds the ethernet mac DA of terminal, Ethernet assists the MAC for turning gateway SA, Ethernet length or frame type, and send.
The function that Ethernet association turns other modules in gateway is similar with access switch.
Terminal:
It mainly include Network Interface Module, Service Processing Module and CPU module;For example, set-top box mainly connects including network Mouth mold block, video/audio encoding and decoding engine modules, CPU module;Encoding board mainly includes Network Interface Module, video encoding engine Module, CPU module;Memory mainly includes Network Interface Module, CPU module and disk array module.
The equipment of 1.3 metropolitan area mesh portions can be mainly divided into 2 classes: node server, node switch, metropolitan area server. Wherein, node switch mainly includes Network Interface Module, switching engine module and CPU module;Metropolitan area server mainly includes Network Interface Module, switching engine module and CPU module are constituted.
2, networking data package definition is regarded
2.1 access network data package definitions
Access net data packet mainly include following sections: destination address (DA), source address (SA), reserve bytes, payload(PDU)、CRC。
As shown in the table, the data packet for accessing net mainly includes following sections:
DA SA Reserved Payload CRC
Wherein:
Destination address (DA) is made of 8 bytes (byte), and first character section indicates type (such as the various associations of data packet Discuss packet, multicast packet, unicast packet etc.), be up to 256 kinds of possibility, the second byte to the 6th byte is metropolitan area net address, Seven, the 8th bytes are access net address;
Source address (SA) is also to be made of 8 bytes (byte), is defined identical as destination address (DA);
Reserve bytes are made of 2 bytes;
The part payload has different length according to the type of different datagrams, is if it is various protocol packages 64 bytes are 32+1024=1056 bytes if it is single group unicast packets words, are not restricted to above 2 kinds certainly;
CRC is made of 4 bytes, and calculation method follows the Ethernet CRC algorithm of standard.
2.2 Metropolitan Area Network (MAN) packet definitions
The topology of Metropolitan Area Network (MAN) is pattern, may there is 2 kinds, connection even of more than two kinds, i.e. node switching between two equipment It can all can exceed that 2 kinds between machine and node server, node switch and node switch, node switch and node server Connection.But the metropolitan area net address of metropolitan area network equipment is uniquely, to close to accurately describe the connection between metropolitan area network equipment System, introduces parameter in the embodiment of the present application: label, uniquely to describe a metropolitan area network equipment.
(Multi-Protocol Label Switch, multiprotocol label are handed over by the definition of label and MPLS in this specification Change) label definition it is similar, it is assumed that between equipment A and equipment B there are two connection, then data packet from equipment A to equipment B just There are 2 labels, data packet also there are 2 labels from equipment B to equipment A.Label is divided into label, outgoing label, it is assumed that data packet enters The label (entering label) of equipment A is 0x0000, and the label (outgoing label) when this data packet leaves equipment A may reform into 0x0001.The networking process of Metropolitan Area Network (MAN) is to enter network process under centralized control, also means that address distribution, the label of Metropolitan Area Network (MAN) Distribution be all to be dominated by metropolitan area server, node switch, node server be all passively execute, this point with The label distribution of MPLS is different, and the distribution of the label of MPLS is the result that interchanger, server are negotiated mutually.
As shown in the table, the data packet of Metropolitan Area Network (MAN) mainly includes following sections:
DA SA Reserved Label Payload CRC
That is destination address (DA), source address (SA), reserve bytes (Reserved), label, payload (PDU), CRC.Its In, the format of label, which can refer to, such as gives a definition: label is 32bit, wherein high 16bit retains, only with low 16bit, its position Set is between the reserve bytes and payload of data packet.
Embodiment one
With reference to Fig. 5, a kind of step process of the access method embodiment one of Web server of the embodiment of the present application is shown Figure, wherein the method is applied in view networking, and the view networking is connect with ethernet communication, wherein described depending on wrapping in networking Include the first view networking proxy server, view networking Core server, the second view networking proxy server and Web server, institute Stating Ethernet includes user terminal, and the method can specifically include following steps:
Step 501, the first view networking proxy server receives the solicited message that user terminal is initiated;
In the embodiment of the present application, user terminal and first between networking proxy server using Http agreement depending on being counted According to transmission, deployment view networking in proxy server and Core server using view networking protocol carry out data transmission.It is right In the user terminal for needing to enter view networking, it is desirable to provide a virtual terminal number and the virtual address mac, for identifying the use Family terminal.
In the concrete realization, first depending on networking proxy server be deployed in view networking while, can be located at it is same The user terminal of local area network communicates with each other.User terminal initiates solicited message to the first view networking proxying server, asks It asks and accesses to the Web server being deployed in depending on networking, to obtain the data of Web server.
For example, user wants to the Tang Gula video monitoring resource management dispatching and command system (Tang being deployed in view networking Gu evens up platform) it accesses, then user can send Http request depending on networking proxy server to first by user terminal and disappear Breath converts the data based on view networking protocol for the data of internet protocol-based depending on networking proxy server by first.
It should be noted that user terminal can be mobile terminal, for example, mobile phone, tablet computer, personal digital assistant, Wearable device (such as glasses, wrist-watch) etc., usually can play the mobile terminal of audio, video.The operation of internet terminal System may include Android (Android), IOS, Windows Phone, Windows etc., and the embodiment of the present application does not make this Specific limitation.
Step 502, first solicited message is sent to view networking Core server depending on networking proxy server;
In the embodiment of the present application, depending on router and exchange can be served as depending on networking Core server in intranet network The function of machine is forwarded to what is received depending on networking data, meanwhile, proxy server and Core server in view networking A message forwarding services program is preset, the solicited message of user terminal can be forwarded by the program.
In a kind of preferred embodiment of the embodiment of the present application, step 502 may include following sub-step;
Sub-step S11, the first view networking proxy server use solicited message, generate the port being adapted to solicited message Number;
In the embodiment of the present application, the first solicited message that can be initiated according to user terminal depending on networking proxy server, The port numbers being adapted to the solicited message are generated, and return to user terminal, so that user terminal can be connect by the socket Receive result corresponding with solicited message.
In the concrete realization, user terminal can access the first view networking agency for being located at same local area network by browser Server, the first view networking proxy server wait for TCP connection by message forwarding services listening port, when listening to When connection request, a new socket is returned to user terminal and represents this connection request, so that user terminal be allow to pass through The socket receives the result that Web server returns.
In an example of the embodiment of the present application, user terminal (192.168.0.112) is located at by browser access First view networking proxy server (192.18.0.114:80) of the same local area network, the first disappearing depending on networking proxy server Breath forwarding service listening port, and the arrival of connection is waited, when receiving connection request 1 (192.168.0.112:6045), then It returns to a new socket6045 and represents this connection request, wherein the corresponding socket6045 of connection request 1, represents and work as It is that Web server returns as a result, the first view networking when the data received on socket6045 are all 1 request Web servers of request Proxy server can distinguish the Http request forwarded according to this new socket, return receiving Web server Result when which socket (user terminal should be returned to for socket6045) in the present embodiment by 192.168.0.112:6045.
For example, the first request that can even up platform for the access Tang Gu of user terminal initiation depending on networking proxy server disappears Breath, generates the socket of adaptation, is then packaged solicited message and socket, and the data of internet protocol-based are converted For the data based on view networking protocol, the first protocol data is generated, the first protocol data is then sent to view networking core clothes Business device.
Sub-step S12, first is packaged solicited message and port numbers depending on networking proxy server, generates the first agreement Data;
In the concrete realization, the first protocol data is the data based on view networking protocol.First view networking proxy server The solicited message and corresponding socket that can be initiated user terminal are packaged, and the data of internet protocol-based are converted For the data based on view networking protocol.
Sub-step S13, the first protocol data is sent to view networking Core server depending on networking proxy server by first.
In the concrete realization, it first converts the data of internet protocol-based to based on view connection depending on networking proxy server First protocol data can be sent to view networking Core server by the first protocol data of fidonetFido, by view networking core clothes Business device is forwarded to the server of deployment Web service.
Step 503, solicited message is sent to the second view networking proxy server depending on networking Core server;
In the embodiment of the present application, first solicited message is sent to view networking Core server depending on networking proxy server Afterwards, solicited message can be forwarded to by corresponding second view networking agency's clothes by message retransmission process depending on networking Core server Business device.
In the concrete realization, second depending on deploying Web service in networking proxy server, which runs on interconnection In net information server (Internet Information Server, IIS).First view networking proxy server is assisted first After view data are sent to view networking Core server, first protocol data is sent to the second view connection depending on networking Core server Net proxy server.
It should be noted that at least one second view networking proxy server is deployed in view intranet network, it is different Second can dispose different Web services depending on networking proxy server, can also dispose identical Web service.
Step 504, second solicited message is sent to Web server depending on networking proxy server;
In the embodiment of the present application, second the request that view networking Core server forwards is received depending on networking proxy server After information, which can be sent to Web server.
In the concrete realization, first protocol data is sent to the second view networking agency service depending on networking Core server After device, second can parse the first protocol data depending on networking proxy server, obtain socket and solicited message, then The TCP connection being adapted to the socket is established, then the second view networking proxy server is believed request by the TCP connection Breath is sent to Web server.
For example, starting parsing view networking message, and solve after second receives view networking message depending on networking proxy server Socket6045 the and Http request data package in message is precipitated, then establish a new TCP connection (192.168.0.115: 6046), this connection and socket6045 binding, are then sent to the clothes of the Web in this proxy server for Http request data package It is engaged in device (192.168.0.115:80).
Step 505, Web server uses solicited message, generates request response message;
In the concrete realization, request response message is the information for the access Web server initiated for user terminal.Web After server receives solicited message, which is handled, generates corresponding request response message.
Step 506, Web server will request response message to be sent to the second view networking proxy server;
In the concrete realization, after Web server has handled Http request, the result handled can be passed through into TCP connection Return to the second view networking proxy server.
For example, second depending on networking proxy server after receiving the first protocol data, parse Http request message, so Http request message is transmitted to Tang's Gu afterwards and evens up platform, Http request message is then transmitted to Tang's Gu and evens up platform, Tang Gu Laping After the complete request of IIS server process of platform, the response results of request are returned into the second view networking proxy server.
Step 507, second response message will be requested to be sent to core view networked server depending on networking proxy server;
In the embodiment of the present application, the second request response for receiving Web server transmission depending on networking proxy server is believed After breath, request response message can be sent to core view networked server.
In a kind of preferred embodiment of the embodiment of the present application, step 507 may include following sub-step;
Sub-step S21, second is packaged request response message and port numbers depending on networking proxy server, generates second Protocol data;
In the concrete realization, second protocol data are the data based on view networking protocol.Second view networking proxy server The request response message and corresponding socket that can be returned to Web server are packaged, by the number of internet protocol-based According to be converted into based on view networking protocol data.
Sub-step S22, second protocol data are sent to view networking Core server depending on networking proxy server by second.
In the concrete realization, it second converts the data of internet protocol-based to based on view connection depending on networking proxy server Second protocol data can be sent to view networking Core server by the second protocol data of fidonetFido, by view networking core clothes Business device is transmitted to the first view networking proxy server.
For example, second depending on networking proxy server receive Web server return data after, will be in data packet Http response message portion and socket6045 are encapsulated into together depending on being sent to view networking Core server in networking protocol (192.168.0.114) then actively closes this TCP connection.
Step 508, core will request response message to be sent to the first view networking proxy server depending on networked server;
Step 509, first response message will be requested to be sent to the user terminal depending on networking proxy server, user terminal is used for It accesses for request response message to Web server.
In the embodiment of the present application, response message will be requested to be sent to the first view networking agency's clothes depending on networking Core server It is engaged in after device, first will request response message to be sent to the user terminal depending on networking proxy server.
In the concrete realization, first depending on networking proxy server receive second protocol data after, can be to second protocol Data are parsed, and request response message is obtained, and request response message are then sent to user terminal, so that user terminal can To realize the access to Web server, obtain corresponding data according to the request response message.
In an example of the embodiment of the present application, first is receiving depending on networking proxy server (192.168.0.114) After second protocol data, Http response message and socket6045 are parsed from second protocol data, is then passed through Http response message is sent to and gives user terminal (192.168.0.112) by the socket6045 TCP connection, and actively closes TCP connection, the browser in user terminal parse Http protocol contents, obtain corresponding data after receiving TCP message.
For example, second is converted to the data of internet protocol-based based on view networking protocol depending on networking proxy server Data, generate second protocol data, and second protocol data are passed through view networking Core server by the second view networking proxy server It is sent to the first view networking proxy server, first parses from the second protocol data received again depending on networking proxy server Tang's Gu evens up the Http message content of platform return, then first view networking proxy server established TCP connection before User terminal is returned to, so far, user can be deployed in the Tang in view networked environment by the server access in local area network Gu evens up platform.
In the embodiment of the present application, the solicited message that user terminal is initiated is received by the first view networking proxy server, Then it by the way that the solicited message is sent to the second view networking proxy server depending on networking Core server, is networked by the second view Solicited message is sent to corresponding Web server by proxy server, and then Web server handles solicited message, and returns and ask It asks response message to user terminal, user is deployed in view networked environment by the user terminal access of local area network Web server, so that the server by being deployed in view networking realizes that user passes through local area network as data transmitting server Web server except interior user terminal local area network accesses, and greatly increases the working efficiency of research and development and maintenance, It reduces costs.
Embodiment two
With reference to Fig. 6, a kind of access mechanism of Web server of the embodiment of the present application is shown, described device is applied to view In networking, the view networking connect with ethernet communication, wherein regarded in the view networking including first proxy server of networking, It include user terminal depending on networking Core server, the second view networking proxy server and Web server, the Ethernet, institute Stating device may include following module:
Solicited message receiving module 601 receives the user terminal for the first view networking proxy server and initiates Solicited message, the solicited message is to access the information of the Web server data;
First solicited message sending module 602 sends out the solicited message depending on networking proxy server for described first It send to view networking Core server;
Second solicited message sending module 603, for view networking Core server according to the solicited message, by institute It states solicited message and is sent to the second view networking proxy server;
Third solicited message sending module 604 sends out the solicited message depending on networking proxy server for described second It send to the Web server;
Response message generation module 605 is requested, uses the solicited message for the Web server, request is generated and rings Information is answered, the request response message is the information for the access Web server data;
The request response message, is sent to by the first request response message sending module 606 for the Web server The second view networking proxy server;
Second request response message sending module 607 rings the request for the second view networking proxy server Information is answered to be sent to the core view networked server;
Third requests response message sending module 608, responds the request for core view networked server and believes Breath is sent to the first view networking proxy server;
4th request response message sending module 609 rings the request for the first view networking proxy server Information is answered to be sent to the user terminal, the user terminal is used to be directed to the request response message from the Web server Access data.
In a kind of preferred embodiment of the embodiment of the present application, the first solicited message sending module may include:
Port numbers generate submodule, for it is described first view networking proxy server use the solicited message, generate with The port numbers of the solicited message adaptation;
First protocol information generates submodule, for the first view networking proxy server to the solicited message and institute It states port numbers to be packaged, generates the first protocol data;
First protocol information sending submodule regards networking proxy server for first protocol data for described first It is sent to the view networking Core server.
In a kind of preferred embodiment of the embodiment of the present application, described device can also include:
First protocol information parsing module parses the first agreement number for the second view networking proxy server According to obtaining the solicited message.
In a kind of preferred embodiment of the embodiment of the present application, the second request response sends information and includes:
Second protocol information generates submodule, for the second view networking proxy server to the request response message It is packaged with the port numbers, generates second protocol data;
Second protocol information sending submodule regards networking proxy server for the second protocol data for described second It is sent to the view networking Core server.
In a kind of preferred embodiment of the embodiment of the present application, described device can also include:
Second protocol information analysis module parses the second protocol number for the first view networking proxy server According to obtaining the request response message.
In a kind of preferred embodiment of the embodiment of the present application, the second solicited message sending module may include:
Retransmission process promoter module starts pre-set programs, the pre-set programs for view networking Core server Service routine is forwarded for view networking protocol information;
First protocol information forward submodule, for it is described view networking Core server by the pre-set programs will described in First protocol data is sent to the second view networking proxy server.
In a kind of preferred embodiment of the embodiment of the present application, the third request response sends information and may include:
Second protocol information forward submodule, for it is described view networking Core server by the pre-set programs will described in Second protocol data are sent to the first view networking proxy server.
For the access mechanism embodiment of Web server, due to the access method embodiment base of itself and Web server This is similar, so being described relatively simple, related place is referring to the part explanation of the access method embodiment of Web server It can.
The embodiment of the present application also discloses a kind of device, the apparatus may include:
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, are executed when by one or more of processors When, so that the method that described device executes the access of one or more Web servers as described above.
The embodiment of the present application also discloses a kind of computer readable storage medium, and the computer program of storage to handle The method that device executes the access of Web server as described above.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiments of the present application may be provided as method, apparatus or calculating Machine program product.Therefore, the embodiment of the present application can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present application can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present application is referring to according to the method for the embodiment of the present application, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart And/or in one or more blocks of the block diagram specify function the step of.
Although preferred embodiments of the embodiments of the present application have been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including preferred embodiment and all change and modification within the scope of the embodiments of the present application.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Above to a kind of access method of Web server provided herein, a kind of access mechanism of Web server with And a kind of computer readable storage medium is described in detail, used herein principle and reality of the specific case to the application The mode of applying is expounded, the description of the example is only used to help understand the method for the present application and its core ideas;Together When, for those of ordinary skill in the art, according to the thought of the application, have in specific embodiments and applications Change place, in conclusion the contents of this specification should not be construed as limiting the present application.

Claims (10)

1. a kind of access method of Web server, which is characterized in that the method is applied in view networking, view networking and Ethernet communication connection, wherein include that the first view networking proxy server, view are networked Core server, the in view networking Two view networking proxy servers and Web server, the Ethernet include user terminal, which comprises
Described first receives the solicited message that the user terminal is initiated depending on networking proxy server, and the solicited message is access The information of the Web server;
The solicited message is sent to the view networking Core server depending on networking proxy server by described first;
It is described that the solicited message is sent to the second view networking proxy server depending on networking Core server;
The solicited message is sent to the Web server depending on networking proxy server by described second;
The Web server uses the solicited message, generates request response message, and the request response message is for described Access the information of the Web server;
The request response message is sent to the second view networking proxy server by the Web server;
The request response message is sent to the core depending on networking proxy server by described second regards networked server;
The request response message is sent to the first view networking proxy server depending on networked server by the core;
The request response message is sent to the user terminal, the user terminal depending on networking proxy server by described first For accessing for the request response message to the Web server.
2. the method according to claim 1, wherein the first view networking proxy server believes the request Breath is sent to the view networking Core server, comprising:
The first view networking proxy server is directed to the solicited message, generates the port numbers being adapted to the solicited message;
Described first is packaged the solicited message and the port numbers depending on networking proxy server, generates for default view First protocol data of networking protocol;
First protocol data is sent to the view networking Core server depending on networking proxy server by described first.
3. according to the method described in claim 2, it is characterized in that, the second view networking proxy server believes the request Breath is sent to before the Web server, further includes:
The second view networking proxy server parses first protocol data, obtains the solicited message.
4. according to the method described in claim 3, it is characterized in that, the second view networking proxy server rings the request Information is answered to be sent to the core view networked server, comprising:
Described second is packaged the request response message and the port numbers depending on networking proxy server, generates described pre- If depending on the second protocol data of networking protocol;
The second protocol data are sent to the view networking Core server depending on networking proxy server by described second.
5. according to the method described in claim 4, it is characterized in that, the first view networking proxy server believes the request Breath is sent to before the user terminal, further includes:
The first view networking proxy server parses the second protocol data, obtains the request response message.
6. a kind of access mechanism of Web server, which is characterized in that described device is applied in view networking, view networking and Ethernet communication connection, wherein include that the first view networking proxy server, view are networked Core server, the in view networking Two view networking proxy servers and Web server, the Ethernet include user terminal, and described device includes:
Solicited message receiving module receives the request letter that the user terminal is initiated depending on networking proxy server for described first Breath, the solicited message is to access the information of the Web server data;
The solicited message is sent to for described first depending on networking proxy server described by the first solicited message sending module Depending on Core server of networking;
Second solicited message sending module, for view networking Core server according to the solicited message, by the request Information is sent to the second view networking proxy server;
The solicited message is sent to for described second depending on networking proxy server described by third solicited message sending module Web server;
Response message generation module is requested, uses the solicited message for the Web server, generates request response message, The request response message is the information for the access Web server data;
The request response message is sent to described for the Web server by the first request response message sending module Two view networking proxy servers;
Second request response message sending module sends out the request response message for the second view networking proxy server It send to the core and regards networked server;
Third requests response message sending module, is sent to the request response message depending on networked server for the core The first view networking proxy server;
4th request response message sending module sends out the request response message for the first view networking proxy server It send to the user terminal, the user terminal is used to access data from the Web server for the request response message.
7. device according to claim 6, which is characterized in that the first solicited message sending module may include:
Port numbers generate submodule, for it is described first view networking proxy server use the solicited message, generate with it is described The port numbers of solicited message adaptation;
First protocol information generates submodule, for the first view networking proxy server to the solicited message and the end Slogan is packaged, and generates the first protocol data of default view networking protocol;
First protocol information sending submodule sends first protocol data for the first view networking proxy server To view networking Core server.
8. device according to claim 6, which is characterized in that the second request response sends information and includes:
Second protocol information generates submodule, for the second view networking proxy server to the request response message and institute It states port numbers to be packaged, generates the second protocol data of the default view networking protocol;
Second protocol information sending submodule sends the second protocol data for the second view networking proxy server To view networking Core server.
9. a kind of device characterized by comprising
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, when being executed by one or more of processors, are made Obtain the access method for one or more Web servers that described device is executed as described in claim 1 to 5.
10. a kind of computer readable storage medium, which is characterized in that its computer program stored executes processor as weighed Benefit requires the access method of 1 to 5 described in any item Web servers.
CN201811520025.9A 2018-12-12 2018-12-12 Web server access method and device Active CN109769012B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811520025.9A CN109769012B (en) 2018-12-12 2018-12-12 Web server access method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811520025.9A CN109769012B (en) 2018-12-12 2018-12-12 Web server access method and device

Publications (2)

Publication Number Publication Date
CN109769012A true CN109769012A (en) 2019-05-17
CN109769012B CN109769012B (en) 2021-12-03

Family

ID=66450585

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811520025.9A Active CN109769012B (en) 2018-12-12 2018-12-12 Web server access method and device

Country Status (1)

Country Link
CN (1) CN109769012B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111556374A (en) * 2020-03-18 2020-08-18 视联动力信息技术股份有限公司 Method and device for accessing application server and video networking system
CN114221945A (en) * 2021-12-15 2022-03-22 咪咕文化科技有限公司 Communication method, communication device, computing equipment and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108063741A (en) * 2016-11-07 2018-05-22 北京视联动力国际信息技术有限公司 A kind of transport protocol conversion method and apparatus
CN108282630A (en) * 2017-01-05 2018-07-13 长沙云昊信息科技有限公司 Video monitoring system based on internet Web technologies
US20180324142A1 (en) * 2015-03-13 2018-11-08 Intel IP Corporation Systems and methods to enable network coordinated mac randomization for wi-fi privacy
CN108881148A (en) * 2017-12-29 2018-11-23 北京视联动力国际信息技术有限公司 A kind of data capture method and device
CN108965370A (en) * 2017-12-05 2018-12-07 北京视联动力国际信息技术有限公司 Intercut method, view networked server and the system of text message

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180324142A1 (en) * 2015-03-13 2018-11-08 Intel IP Corporation Systems and methods to enable network coordinated mac randomization for wi-fi privacy
CN108063741A (en) * 2016-11-07 2018-05-22 北京视联动力国际信息技术有限公司 A kind of transport protocol conversion method and apparatus
CN108282630A (en) * 2017-01-05 2018-07-13 长沙云昊信息科技有限公司 Video monitoring system based on internet Web technologies
CN108965370A (en) * 2017-12-05 2018-12-07 北京视联动力国际信息技术有限公司 Intercut method, view networked server and the system of text message
CN108881148A (en) * 2017-12-29 2018-11-23 北京视联动力国际信息技术有限公司 A kind of data capture method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111556374A (en) * 2020-03-18 2020-08-18 视联动力信息技术股份有限公司 Method and device for accessing application server and video networking system
CN111556374B (en) * 2020-03-18 2023-09-05 视联动力信息技术股份有限公司 Method and device for accessing application server and video networking system
CN114221945A (en) * 2021-12-15 2022-03-22 咪咕文化科技有限公司 Communication method, communication device, computing equipment and computer-readable storage medium
CN114221945B (en) * 2021-12-15 2024-06-04 咪咕文化科技有限公司 Communication method, communication device, computing equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN109769012B (en) 2021-12-03

Similar Documents

Publication Publication Date Title
CN108243173A (en) A kind of RTMP video pushing methods and device based on regarding networking
CN110198345A (en) A kind of data request method, system and device and storage medium
CN109996086A (en) A kind of view networking service method for inquiring status and device
CN109818776A (en) Micro services module exception localization method and device
CN110190973A (en) A kind of presence detection method and device
CN109547163A (en) A kind of control method and device of message transmission rate
CN110392126A (en) A kind of communication means and device
CN110505204A (en) A kind of immediate voice communication method, device, electronic equipment and readable storage medium storing program for executing
CN110022295A (en) A kind of method and view networked system of data transmission
CN110062295A (en) A kind of file resource acquisition methods and system
CN110049346A (en) A kind of method and system of net cast
CN109788369A (en) Terminal control method and device
CN108809922B (en) A kind of audio fault handling method, conference dispatching end and view networked terminals
CN108307212A (en) A kind of file order method and device
CN109743550A (en) A kind of method and apparatus of monitoring data tune stream
CN110048903A (en) A kind of association turns gateway status monitoring method and device
CN109714568A (en) A kind of synchronous method and device of video monitoring data
CN109491783A (en) A kind of acquisition methods and system of memory usage
CN109769012A (en) A kind of access method and device of Web server
CN109889516A (en) A kind of method for building up and device of session channel
CN110336710A (en) A kind of test method of terminal, system and device and storage medium
CN110430388A (en) A kind of monitoring device control method, device and readable storage medium storing program for executing
CN110087147A (en) A kind of method and apparatus of audio/video flow transmission
CN109617766A (en) A kind of heartbeat treating method and apparatus
CN109525635A (en) A kind of acquisition methods and system of memory usage

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
GR01 Patent grant
GR01 Patent grant