CN110460467A - A kind of upgrade method of server, device, electronic equipment and storage medium - Google Patents
A kind of upgrade method of server, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN110460467A CN110460467A CN201910741277.2A CN201910741277A CN110460467A CN 110460467 A CN110460467 A CN 110460467A CN 201910741277 A CN201910741277 A CN 201910741277A CN 110460467 A CN110460467 A CN 110460467A
- Authority
- CN
- China
- Prior art keywords
- streaming media
- media server
- server
- upgrade
- request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0876—Aspects of the degree of configuration automation
- H04L41/0886—Fully automatic configuration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Automation & Control Theory (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides a kind of upgrade method of server, device, electronic equipment and storage mediums.The described method includes: sending the upgrade request for carrying the version of the streaming media server to storage gateway, in response to the permission upgrade command of the storage gateway, channel request is established to storage gateway transmission, to establish data transmission channel, pass through the data transmission channel, upgrading data packet is received, and according to the upgrading data packet, executes edition upgrading operation.Using method provided by the invention, realize that remote control streaming media server upgrades and restarts automatically, the completion of staff one by one is not needed, save a large amount of manpower, financial resources and material resources, improve the use feeling of user, the technology development of view networking is advanced, so that the use scope of view networking is more wide.
Description
Technical field
The present invention relates to view networking arenas more particularly to a kind of upgrade method of server, device, electronic equipment and storages
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, is finally the distance of a screen by the distance for realizing person to person in global range.
Streaming media server is the bridge and tie for regarding intranet network and Internet realization video and audio transmission services,
View networking service is realized to the extension of interconnection net side and the access of Internet resources, storage gateway is a kind of mixing cloud storage side
Case, it is intended to help enterprise or personal realization that the seamless connection with publicly-owned cloud storage is locally stored, without being concerned about multi-protocols local
Store the compatibility of equipment and cloud storage, it is only necessary to mixed cloud deployment can be realized in locally-installed cloud storage gateway, and possess
The magnanimity cloud for the local performance that matches in excellence or beauty stores, and storage gateway stores a large amount of audio-video document and journey in view intranet network
Preface part.
Currently, when streaming media server needs to carry out itself edition upgrading, first by the streaming media server of latest edition
Program is copied into External memory equipment, is later again connect External memory equipment with streaming media server, is utilized external storage
The streaming media server program of latest edition in equipment realizes streaming media server edition upgrading to latest edition.And it is real
In, streaming media server quantity is more, if needing to upgrade streaming media server version, just can only one by one by people
Work goes to complete, and under normal circumstances, needs streaming media server to restart after upgrading streaming media server version, just can be complete
At the operation of upgrading streaming media server version.This not only wastes a large amount of manpower, financial resources and material resources, and upgrading is caused to be imitated
Rate is lower.
Summary of the invention
Upgrade method, device, electronic equipment and the storage medium of a kind of server provided by the invention solve upgrading stream
Media server version needs are manually completed one by one, are unable to the problem of remote control upgrades automatically.
In order to solve the above-mentioned technical problem, the embodiment of the invention provides a kind of upgrade method of server, the methods
Applied to streaming media server, which comprises
The upgrade request for carrying the version of the streaming media server is sent to storage gateway;
In response to the permission upgrade command of the storage gateway, channel request is established to storage gateway transmission, to build
Vertical data transmission channel;The permission upgrade command is the storage gateway in response to the upgrade request, is determining the stream
What media server version triggered in the case where meeting promotion condition;
By the data transmission channel, upgrading data packet is received, and according to the upgrading data packet, executes edition upgrading
Operation;The data transmission channel establishes channel request in response to described for the storage gateway, regards networked server determining
In the available situation of the virtual terminal of distribution, established by the virtual terminal.
Optionally, the method also includes:
In response to the Restart Request from client, verifies the streaming media server and whether meet and restart condition;
Determine the streaming media server meet restart condition in the case where, the transmission of Xiang Suoshu client allows to restart and disappears
Breath;
In response to the client for the instruction of restarting for allowing to restart message return, reboot operation is executed;
Result is restarted to client transmission.
Optionally, the main message number of server to be restarted, the determination Streaming Media clothes are carried in the Restart Request
Business device, which meets, restarts condition, comprising:
If it is determined that the main message number of the server to be restarted carried in the Restart Request and the streaming media server are certainly
The main message number of body matches, and the streaming media server is currently not carried out non-reboot operation, it is determined that the Streaming Media clothes
Business device, which meets, restarts condition.
The embodiment of the invention also provides a kind of upgrade method of server, described system the method is applied to memory
Gateway, which comprises
The upgrade request sent from streaming media server is received, the upgrade request carries the streaming media server
Version;
In response to the upgrade request, in the case where determining that the version of the streaming media server meets promotion condition,
Sending to the streaming media server allows upgrade command;
Channel request is established for what the permission upgrade command returned in response to the streaming media server, judges view connection
Whether the virtual terminal of network server distribution can be used;
In the available situation of virtual terminal for determining view networked server distribution, data are established by the virtual terminal
Transmission channel, and upgrading data packet is sent to the streaming media server by the data transmission channel, so that the stream matchmaker
Body server executes edition upgrading operation according to the upgrading data packet.
Optionally, the version of the determination streaming media server meets promotion condition, comprising:
If it is determined that the upgrade procedure version of the streaming media server stored in the storage gateway is asked with the upgrading
The version of middle streaming media server is asked to match, it is determined that the version of the streaming media server meets promotion condition.
Optionally, the virtual terminal of the determining view networked server distribution is available, comprising:
If it is determined that the termination number of the virtual terminal of view networked server distribution and the main message of the streaming media server
Number match, it is determined that the virtual terminal of view networked server distribution is available.
The embodiment of the invention also provides a kind of update device of server, described device is applied to streaming media server,
Described device includes:
Upgrade request module is sent, the upgrading for sending the version for carrying the streaming media server to storage gateway is asked
It asks;
Channel module is established in response, for the permission upgrade command in response to the storage gateway, to the storage gateway
Channel request is established in transmission, to establish data transmission channel;The permission upgrade command is the storage gateway in response to described
Upgrade request is triggered in the case where determining that the streaming media server version meets promotion condition;
Upgraded module is executed, for receiving upgrading data packet by the data transmission channel, and according to the ascending series
According to packet, edition upgrading operation is executed;The data transmission channel establishes channel request, In in response to described for the storage gateway
In the available situation of virtual terminal for determining view networked server distribution, established by the virtual terminal.
Optionally, described device further include:
Response verification module, for whether verifying the streaming media server in response to the Restart Request from client
Meet and restarts condition;
Transmission allows to restart message module, for determine the streaming media server meet restart condition in the case where,
Allow to restart message to client transmission;
Module is restarted in execution, for being directed to the instruction of restarting for allowing to restart message return in response to the client,
Execute reboot operation;
Object module is sent, for restarting result to client transmission.
Optionally, the main message number of server to be restarted is carried in the Restart Request, the response verification module includes:
Matching determines main message number submodule, for if it is determined that the server to be restarted carried in the Restart Request master
The main message number of message number and the streaming media server itself matches, and the streaming media server be currently not carried out it is non-heavy
Open operation, it is determined that the streaming media server, which meets, restarts condition.
The embodiment of the invention also provides a kind of update device of server, described device is applied to memory gateway, institute
Stating device includes:
Upgrade request module is received, for receiving the upgrade request sent from streaming media server, the upgrade request
Carry the version of the streaming media server;
In response to determining that upgrade command module, for determining the streaming media server in response to the upgrade request
In the case that version meets promotion condition, Xiang Suoshu streaming media server, which is sent, allows upgrade command;
Judgment module is responded, the foundation for returning in response to the streaming media server for the permission upgrade command
Channel request, judges whether the virtual terminal distributed depending on networked server can be used;
Channel sending module is established, for leading in the available situation of virtual terminal for determining view networked server distribution
It crosses the virtual terminal and establishes data transmission channel, and sent and risen to the streaming media server by the data transmission channel
Grade data packet, so that the streaming media server executes edition upgrading operation according to the upgrading data packet.
Optionally, described in response to determining that upgrade command module includes:
Version match submodule is determined, for if it is determined that the liter for storing the streaming media server stored in gateway
The version of grade program version and streaming media server in the upgrade request matches, it is determined that the version of the streaming media server
This meets promotion condition.
Optionally, the response judgment module includes:
Numbers match submodule is determined, for if it is determined that regarding termination number and the institute of the virtual terminal of networked server distribution
The termination number for stating the virtual terminal of streaming media server matches, it is determined that the virtual terminal depending on networked server distribution can
With.
The embodiment of the present invention also provides a kind of computer readable storage medium, is stored thereon with computer program, the program
It realizes when being executed by processor such as the step in the process described above of the present invention.
The embodiment of the present invention also provides a kind of electronic equipment, including memory, processor and storage are on a memory and can
The computer program run on a processor realizes the step in the process described above of the present invention when the processor executes.
A kind of upgrade method of server provided by the invention, when streaming media server version needs to upgrade, Streaming Media clothes
Device be engaged in gateway transmission upgrade request is stored, the version of itself is carried in the upgrade request, after storage gateway receives upgrade request
The condition whether corresponding streaming media server version meets upgrading is verified, if meeting the condition of upgrading, stores gateway to stream matchmaker
Body server, which is sent, allows upgrade command, and streaming media server is established logical in response to allowing upgrade command to storage gateway transmission
Road request, storage gateway is according to establishing whether channel request, verifying can be used depending on the virtual terminal in networked server, if virtual whole
End is available, and storage gateway establishes the channel of itself and virtual terminal transmission data packet, the ascending series that storage gateway stores itself
Virtual terminal is squeezed into according to packet, streaming media server carries out version liter according to data packet later by virtual terminal received data packet
Grade operation.Using method provided by the invention, realizes that remote control streaming media server upgrades automatically, do not need staff one
The completion that platform is one saves a large amount of manpower, financial resources and material resources, improves the use feeling of user, advances the skill of view networking
Art development, so that the use scope of view networking is more wide.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention
Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 is a kind of networking schematic diagram of view networking of the invention;
Fig. 2 is a kind of hardware structural diagram of node server of the invention;
Fig. 3 is a kind of hardware structural diagram of access switch of the invention;
Fig. 4 is the hardware structural diagram that a kind of Ethernet association of the invention turns gateway;
Fig. 5 is a kind of flow chart of the upgrade method of server of the embodiment of the present invention;
Fig. 6 is the flow chart of the upgrade method of another kind server of the embodiment of the present invention;
Fig. 7 is the equipment of the embodiment of the present invention schematic diagram;
Fig. 8 is a kind of block diagram of the update device of server of the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
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.
Embodiment in order to enable those skilled in the art to better understand the present invention is introduced to depending on networking below:
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
Video flow.(Circuit is exchanged different from simple network packet packet switch (Packet Switching) or lattice network
Switching), Streaming demand is met using Packet Switching depending on networking technology.Has grouping depending on networking technology
Flexible, the simple and low price of exchange, is provided simultaneously with the quality and safety assurance of circuit switching, it is virtually electric to realize the whole network switch type
The seamless connection of road 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 embodiment of the present invention can be mainly divided into 3 classes: server depending on the equipment in networking, interchanger (including ether
Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).Depending on networking can be divided on the whole Metropolitan Area Network (MAN) (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 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 304 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, are divided to two kinds of situations in embodiments of the present invention:
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 308 is configured by CPU module 304, 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 embodiments of the present invention: 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.
Based on the above-mentioned characteristic of view networking, one of the core concepts of the embodiments of the present invention is proposed, it then follows regard the association of networking
View is determining that streaming media server version is full from the streaming media server upgrade request that storage gateway is sent into rating networking
In the case where sufficient promotion condition, storage gateway establishes data transmission channel, realizes the edition upgrading of streaming media server and restarts
Operation.
Fig. 5 shows a kind of flow chart of the upgrade method of server of the embodiment of the present invention, and this method is applied to Streaming Media
The upgrade method of server, server includes the following steps:
Step 501: the upgrade request for carrying the version of streaming media server is sent to storage gateway.
Technical solution of the present invention can be applied to view networking or internet area, and all embodiments of the invention are to regard
It is explained and illustrated for being applied in networking arenas, when streaming media server needs to carry out itself edition upgrading, first has to
The upgrade request of version is sent to storage gateway, and version number and the Streaming Media clothes of streaming media server are carried in the upgrade request
The main message number of business device.The edition upgrading data packet of streaming media server is stored in storage gateway, because of streaming media server
Quantity it is more, store the edition upgrading data packet of each streaming media server stored in gateway and have streaming media service
The main message number of device, to be clearly which platform streaming media server needs to carry out edition upgrading.
Such as: depending on having 10 streaming media servers in networking, wherein a streaming media server needs to carry out edition upgrading
Operation, the streaming media server send the upgrade request of version to storage gateway, which includes: 6895327, V1.0,
Wherein 6895327 be the streaming media server main message number;V1.0 is the version number of the streaming media server.
Step 502: the permission upgrade command in response to storing gateway establishes channel request to storage gateway transmission, to build
Vertical data transmission channel;Allowing upgrade command is storage gateway in response to upgrade request, is determining that streaming media server version is full
It is triggered in the case where sufficient promotion condition.
In the embodiment of the present invention, in the case where storage gateway determines that streaming media server version meets promotion condition, deposit
Storing up gateway and sending to streaming media server allows upgrade command, specifically how to determine that streaming media server version meets upgrading item
Part, hereafter corresponding position is described in detail, and does not repeat them here first herein.Streaming media server allows to upgrade in response to storage gateway
Instruction establishes channel request to storage gateway transmission, to establish data transmission channel.The data transmission channel is for storing gateway
Upgrading data packet is transmitted to streaming media server.
Such as: storage gateway receives upgrade request: 6895327, after V1.0, determining streaming media server 6895327
In the case that version meets promotion condition, storage gateway can be sent to streaming media server 6895327 allows upgrade command, flows matchmaker
Body server 6895327 receives after allowing upgrade command, establishes channel request to storage gateway transmission.
Step 503: by data transmission channel, receiving upgrading data packet, and according to upgrading data packet, execute edition upgrading
Operation;Data transmission channel is storage gateway in response to establishing channel request, at the virtual end for determining view networked server distribution
It holds in available situation, is established by virtual terminal.
In the embodiment of the present invention, after streaming media server establishes channel request to storage gateway transmission, if data pass
Defeated Path Setup success, streaming media server can receive the upgrading data packet that storage gateway is sent by data transmission channel,
Streaming media server executes edition upgrading operation according to upgrading data packet.Data transmission channel how to establish hereafter corresponding position into
Row is described in detail, and does not repeat them here first herein.
Such as: data transmission channel is successfully established, and streaming media server 6895327 is deposited by data transmission channel, reception
The upgrading data packet that gateway is sent is stored up, which includes: 6895327, V1.1, and wherein V1.1 is streaming media server
6895327 upgrading data packet, streaming media server 6895327 first verify that in upgrading data packet according to upgrading data packet
Whether main message number is consistent with the main message number of itself, if edition upgrading operation is unanimously then executed, by the version liter of itself
Grade arrives V1.1;If the main message number verified in upgrading data packet is inconsistent with itself main message number, then version liter is not executed
Grade operation, ignores the upgrading data packet automatically.
Optionally, after streaming media server executes edition upgrading operation, restarted, can just be finally completed liter
Grade operation, because streaming media server, which restarts needs, sends dependent instruction, streaming media server and client by client
Connection.After the step 503, the method for server updating further include:
Step 504: in response to the Restart Request from client, whether verifying streaming media server, which meets, restarts condition.
In the embodiment of the present invention, under normal circumstances, streaming media server carries out updating operation, is receiving upgrading data packet liter
After itself version of grade, it is also necessary to can just be properly completed updating operation by once restarting, certainly, it should be noted that sometimes
Time, which does not need to restart, can also complete to upgrade, this is determined according to the content of upgrading.Streaming media server receives client
The Restart Request sent is held, which may be that client carries out restarting asking for transmission to complete updating operation
It asks, it is also possible to the Restart Request unrelated with updating operation that client is sent.The Restart Request is received in streaming media server
Afterwards, it first verifies that whether itself meets and restarts condition.
Such as: streaming media server 6895327 is according to upgrading data packet, by the edition upgrading of itself to V1.1, need into
Row is restarted, and after streaming media server 6895327 receives the Restart Request of client transmission, first verifies that itself whether meet weight
Open condition.
Step 505: determine streaming media server meet restart condition in the case where, allow to restart and disappear to client transmission
Breath;
In the embodiment of the present invention, streaming media server, which determines itself to meet, restarts condition, then allows weight to client transmission
Message is opened, if streaming media server, which determines itself not meeting, restarts condition, then streaming media server, which can wait, itself meets weight
After opening condition, then to client transmission allow to restart message.The main message number of server to be restarted is carried in the Restart Request, really
Streaming media server, which meets, restarts condition are as follows:
If it is determined that the master of the main message number and streaming media server of the server to be restarted carried in Restart Request itself disappears
Breath number matches, and streaming media server is currently not carried out non-reboot operation, it is determined that streaming media server, which meets, restarts condition.
Wherein streaming media server is currently not carried out non-reboot operation and refers to: it is normal that streaming media server has only carried out streaming media server
Basic application needed for work, is not carried out and including but not limited to receives and dispatches various requests, forward, inquire, modifying various data etc.
Operation.Such as: if streaming media server after receiving Restart Request, is carrying out data forwarding work, then Streaming Media takes
After the main message number wait restart server that business device carries in verifying Restart Request is consistent with the main message number of itself, it will wait
Data forwarding work after, and determine again without any operation in the case where, to client transmission allow to restart message.
Such as: after streaming media server 6895327 receives the Restart Request of client transmission, first verify that Restart Request
The main message number 6895327 of the server to be restarted of middle carrying and the main message number 6895327 of itself are consistent, and determine itself only
The Basic application needed for itself working normally is performed, allows to restart message to client transmission.
Step 506: being directed to the instruction of restarting for allowing to restart message return in response to client, execute reboot operation;
Step 507: restarting result to client transmission;
In the embodiment of the present invention, after client reception allows to restart message, instruction of restarting can be sent to streaming media server,
After streaming media server receives the instruction of restarting, in response to the instruction execution reboot operation, weight is sent to client after restart
The result opened.Under normal circumstances, there are two the results restarted: one is to restart upgraded version success;The other is restarting upgrading
Version failure.If restart upgraded version failure, then need to repeat step 501~507, until restart and upgraded version at
Function.
Such as: after client reception allows to restart message, instruction of restarting is sent to streaming media server 6895327, flows matchmaker
After body server 6895327 receives instruction of restarting, in response to the instruction execution reboot operation, sent after restart to client
The result restarted: restart upgraded version success;If streaming media server 6895327 restarts upgraded version failure, then restarting
The result restarted is sent to client afterwards: restarting upgraded version failure, streaming media server 6895327 repeats step 501
~507, until restarting simultaneously upgraded version success.
If reboot operation is just carried out it should be noted that being not as streaming media server upgraded version and operating, but
Simple thinks that convection media server carries out reboot operation, the method that method and steps 504~507 describes because of other reasons
Equally.
The liter of another kind server of the embodiment of the present invention is shown corresponding to the upgrade method of streaming media server, such as Fig. 6
The flow chart of grade method, this method are applied to memory gateway, and this method comprises the following steps:
Step 601: receiving the upgrade request sent from streaming media server, upgrade request carries streaming media server
Version.
In the embodiment of the present invention, storage gateway is depending on being used to store each streaming media server edition upgrading data in networking
Packet, each upgrading data packet corresponds to the main message number of only one streaming media server, because streaming media server is each
From action, operative orientation, model it is different, so the version of streaming media server is also different, it is of course possible to understanding,
The version of streaming media server may also be identical.When streaming media server needs to upgrade itself version, storage gateway will be connect
The upgrade request of streaming media server transmission is received, the version of streaming media server is carried in upgrade request.
Step 602: in response to upgrade request, in the case where determining that the version of streaming media server meets promotion condition,
Sending to streaming media server allows upgrade command.
In the embodiment of the present invention, after storage gateway receives upgrade request, in response to the upgrade request, Streaming Media is being determined
In the case that the version of server meets promotion condition, sending to streaming media server allows upgrade command.Wherein determine stream matchmaker
The promotion condition that the version of body server meets are as follows:
According to the main message number of streaming media server in upgrade request, determines in storage gateway and store corresponding upgrading journey
Sequence version, and the upgrade procedure version phase stored in the version of the streaming media server in upgrade request and storage gateway
Match, it is determined that the version of streaming media server meets promotion condition.
Such as: upgrade request includes: 6895327, V1.0;After storage gateway receives upgrade request, whether itself is detected
It is stored with 6895327 upgrading data packet V1.1.
If it stores inside the corresponding main message number of all upgrading data packets stored in gateway without 6895327, then
Determine that the version of streaming media server is unsatisfactory for the condition of upgrading;If alternatively, the correspondence 6895327 stored in storage gateway
The upgrading data packet of main message number is V1.1 version below, i.e. upgrading data packet are as follows: V1.0 or V0.9 ... is then also determined
Streaming media server version is unsatisfactory for the condition of upgrading;If storing the liter of the main message number of correspondence 6895327 stored in gateway
The version that grade data packet is V1.1 or more, i.e. upgrading data packet are as follows: V1.2 or V1.3 ..., it is determined that streaming media server
Version meet upgrading condition.
Storage gateway determines that the version of streaming media server meets promotion condition, allows to upgrade to streaming media server transmission
Instruction.
Step 603: establishing channel request for what permission upgrade command returned in response to streaming media server, judge view connection
Whether the virtual terminal of network server distribution can be used;
In the embodiment of the present invention, streaming media server is received after allowing upgrade command, establishes channel to storage gateway transmission
Request, storage gateway first determine whether the virtual terminal distributed depending on networked server can be used, are somebody's turn to do in response to establishing channel request
Virtual terminal is that view networked server distributes, and carries out the virtual end of data interaction for storing gateway and streaming media server
End, in view networked server, storage gateway transmits data to the virtual terminal, utilizes the virtual end depending on networked server
End, by the data forwarding received to streaming media server.
Step 604: in the available situation of virtual terminal for determining view networked server distribution, being established by virtual terminal
Data transmission channel, and upgrading data packet is sent to streaming media server by data transmission channel, so that streaming media server
According to upgrading data packet, edition upgrading operation is executed.
In the embodiment of the present invention, storage gateway determines the available condition of virtual terminal of view networked server distribution are as follows:
If it is determined that the main message number phase of the termination number and streaming media server of the virtual terminal of view networked server distribution
Matching, it is determined that the virtual terminal of view networked server distribution is available.
Such as: view networked server distribution carries out data interaction for streaming media server 6895327 and storage gateway
The termination number of virtual terminal be 777-6895327, the main message number of streaming media server is 6895327, then stores gateway
Determine that the virtual terminal of view networked server distribution is available.
After storage gateway determines that the virtual terminal of view networked server distribution is available, data are established by virtual terminal and are transmitted
Channel, and upgrading data packet is sent to streaming media server by data transmission channel, so that streaming media server is according to upgrading
Data packet executes edition upgrading operation.
In practical application, there are also another situations, and storing gateway can regularly, or aperiodically take to Streaming Media
Business device active push edition upgrading message.Such as: the V1.1 version of streaming media server 6895327 is stored in storage gateway now
This, storage gateway can be to 6895327 active push edition upgrading message of streaming media server, streaming media server 6895327
After receiving PUSH message, the version of itself and the version of storage gateway push are compared, needs to upgrade itself version in determination
In the case of, relevant operation is carried out according to step 501~507.
Referring to Fig. 7, the equipment of the embodiment of the present invention schematic diagram, depending on networked server and storage gateway, streaming media server
And client is separately connected, wherein the main message number of streaming media server is 6895327, version V1.0;Store gateway
In be stored with upgrading data packet V1.1, corresponding main message number is 6895327.
Streaming media server 6895327 needs to upgrade itself version, and the upgrade request of version is sent to storage gateway:
6895327,V1.0;The upgrade request is needed by being transmitted to storage gateway depending on networked server.Storage gateway receives upgrading and asks
It asks: 6895327, after V1.0, verifying and itself be stored with upgrading data packet V1.1, corresponding main message number is 6895327, is met
The edition upgrading condition of streaming media server 6895327, storage gateway allows to upgrade to the transmission of streaming media server 6895327 to be referred to
It enables, which is also by being transmitted to streaming media server 6895327 depending on networked server.
Streaming media server 6895327 receives after allowing upgrade command, establishes channel request to storage gateway transmission, this is built
Vertical channel request, which equally passes through, is transmitted to storage gateway depending on networked server, after channel request is established in storage gateway reception, verifying
The termination number of virtual terminal in networked server is regarded as 777-6895327, and the main message number of streaming media server is
6895327, the two matching determines that the virtual terminal of view networked server distribution is available, and storage gateway is established by virtual terminal
Data transmission channel, and upgrading data packet is sent to streaming media server by data transmission channel, which includes:
6895327, V1.1, wherein V1.1 is the upgrading data packet of streaming media server 6895327.
Streaming media server 6895327 first verifies that the main message number in upgrading data packet according to upgrading data packet
6895327 is consistent with the main message number 6895327 of itself, then by the edition upgrading of itself to V1.1.Streaming media server later
6895327 receive client transmission Restart Request: 6895327, the Restart Request also pass through view networked server forwarding
, verify the main message number 6895327 carried in Restart Request and the main message number 6895327 of itself be consistent, and determine certainly
Body has only carried out the Basic application needed for itself working normally, and allows to restart message to client transmission.Client receives view connection
After what network server forwarded allows to restart message, instruction of restarting is sent to streaming media server 6895327.
After streaming media server 6895327 receives the instruction of restarting of view networked server forwarding, in response to the instruction execution
Reboot operation sends restarting as a result, client receives the knot restarted forwarded depending on networked server to client after restart
Fruit: restart upgraded version success, and show in display interface.
Optionally, referring to Fig. 8, a kind of block diagram of the update device of server of the embodiment of the present invention is shown, which answers
For streaming media server, the update device of server includes:
Upgrade request module 810 is sent, the upgrading for sending the version for carrying streaming media server to storage gateway is asked
It asks;
Channel module 820 is established in response, for the permission upgrade command in response to storing gateway, is built to storage gateway transmission
Vertical channel request, to establish data transmission channel;Allowing upgrade command is storage gateway in response to upgrade request, flows matchmaker determining
What body server version triggered in the case where meeting promotion condition;
Upgraded module 830 is executed, for by data transmission channel, receiving upgrading data packet, and according to upgrading data packet,
Execute edition upgrading operation;Data transmission channel is storage gateway in response to establishing channel request, regards networked server determining
In the available situation of the virtual terminal of distribution, established by virtual terminal.
Optionally, the update device of server further include:
Response verification module, for verifying whether streaming media server meets in response to the Restart Request from client
Restart condition;
Transmission allows to restart message module, for determine streaming media server meet restart condition in the case where, to visitor
Family end, which is sent, to be allowed to restart message;
Module is restarted in execution, for, for the instruction of restarting for allowing to restart message return, executing in response to client
Reboot operation;
Object module is sent, for restarting result to client transmission.
Optionally, the main message number of server to be restarted is carried in Restart Request, response verification module includes:
Matching determines main message number submodule, for if it is determined that the server to be restarted carried in Restart Request main message
Number match with the main message number of streaming media server itself, and streaming media server is currently not carried out non-reboot operation, then really
Streaming media server, which meets, restarts condition.
The embodiment of the invention also provides a kind of update device of server, device is applied to memory gateway, server
Update device include:
Upgrade request module is received, for receiving the upgrade request sent from streaming media server, upgrade request is carried
There is the version of streaming media server;
In response to determining that upgrade command module, for meeting in the version for determining streaming media server in response to upgrade request
In the case where promotion condition, sending to streaming media server allows upgrade command;
Judgment module is responded, for asking in response to streaming media server for the channel of establishing for allowing upgrade command to return
It asks, judges whether the virtual terminal distributed depending on networked server can be used;
Channel sending module is established, for leading in the available situation of virtual terminal for determining view networked server distribution
It crosses virtual terminal and establishes data transmission channel, and upgrading data packet is sent to streaming media server by data transmission channel, with
Make streaming media server according to upgrading data packet, executes edition upgrading operation.
Optionally, in response to determining that upgrade command module includes:
Version match submodule is determined, for if it is determined that storing the upgrade procedure version of the streaming media server stored in gateway
The version of this and streaming media server in upgrade request matches, it is determined that the version of streaming media server meets promotion condition.
Optionally, response judgment module includes:
Numbers match submodule is determined, for if it is determined that regarding the termination number and stream of the virtual terminal of networked server distribution
The termination number of the virtual terminal of media server matches, it is determined that the virtual terminal of view networked server distribution is available.
Through the foregoing embodiment, when streaming media server version of the present invention needs to upgrade, streaming media server to storage net
It closing and sends upgrade request, storage gateway receives upgrade request in the case where meeting streaming media server edition upgrading condition, to
Streaming media server, which is sent, allows upgrade command, and streaming media server is built in response to allowing upgrade command to storage gateway transmission
Vertical channel request stores gateway according to channel request is established, in the available situation of virtual terminal, establishes itself and virtual terminal
The channel of data packet is transmitted, the upgrading data packet that itself is stored is squeezed into virtual terminal by storage gateway, and streaming media server receives
Data packet carries out edition upgrading operation according to data packet.The Restart Request that streaming media server is sent further according to client, full
In the case that lumping weight opens condition, according to instruction of restarting, itself is restarted, and the result restarted is sent to client.Using the present invention
The method of offer realizes that remote control streaming media server upgrades and restarts automatically, does not need staff one by one complete
At, a large amount of manpower, financial resources and material resources are saved, the use feeling of user is improved, advance the technology development of view networking, so that
Use scope depending on networking is more wide.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention 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 invention 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 invention be referring to according to the method for the embodiment of the present invention, 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.
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, herein, the terms "include", "comprise" or its it is any its
He is intended to non-exclusive inclusion by variant, so that process, method, article or device including a series of elements are not
Only include those elements, but also including other elements that are not explicitly listed, or further include for this process, method,
Article or the intrinsic element of device.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 device for including the element.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form, all of these belong to the protection of the present invention.
Claims (10)
1. a kind of upgrade method of server, which is characterized in that the method is applied to streaming media server, the method packet
It includes:
The upgrade request for carrying the version of the streaming media server is sent to storage gateway;
In response to the permission upgrade command of the storage gateway, channel request is established to storage gateway transmission, to establish number
According to transmission channel;The permission upgrade command is the storage gateway in response to the upgrade request, is determining the Streaming Media
What the version of server triggered in the case where meeting promotion condition;
By the data transmission channel, upgrading data packet is received, and according to the upgrading data packet, executes edition upgrading behaviour
Make;The data transmission channel establishes channel request in response to described for the storage gateway, is determining view networked server point
In the available situation of the virtual terminal matched, established by the virtual terminal.
2. the method according to claim 1, wherein the method also includes:
In response to the Restart Request from client, verifies the streaming media server and whether meet and restart condition;
Determine the streaming media server meet restart condition in the case where, Xiang Suoshu client transmission allow to restart message;
In response to the client for the instruction of restarting for allowing to restart message return, reboot operation is executed;
Result is restarted to client transmission.
3. according to the method described in claim 2, it is characterized in that, the master for carrying server to be restarted in the Restart Request disappears
Breath number, the determination streaming media server, which meets, restarts condition, comprising:
If it is determined that the main message number of the server to be restarted carried in the Restart Request and the streaming media server itself
Main message number matches, and the streaming media server is currently not carried out non-reboot operation, it is determined that the streaming media server
Meet and restarts condition.
4. a kind of upgrade method of server, which is characterized in that the method is applied to memory gateway, which comprises
The upgrade request sent from streaming media server is received, the upgrade request carries the version of the streaming media server
This;
In response to the upgrade request, in the case where determining that the version of the streaming media server meets promotion condition, to institute
Stating streaming media server and sending allows upgrade command;
Channel request is established for what the permission upgrade command returned in response to the streaming media server, judges view networking clothes
Whether the virtual terminal of business device distribution can be used;
In the available situation of virtual terminal for determining view networked server distribution, data transmission is established by the virtual terminal
Channel, and upgrading data packet is sent to the streaming media server by the data transmission channel, so that the Streaming Media takes
Device be engaged according to the upgrading data packet, executes edition upgrading operation.
5. according to the method described in claim 4, it is characterized in that, the version of the determination streaming media server meets liter
Grade condition, comprising:
If it is determined that in the upgrade procedure version and the upgrade request of the streaming media server stored in the storage gateway
The version of streaming media server matches, it is determined that the version of the streaming media server meets promotion condition.
6. according to the method described in claim 4, it is characterized in that, the determining virtual terminal depending on networked server distribution can
With, comprising:
If it is determined that the main message number phase of the termination number and the streaming media server of the virtual terminal of view networked server distribution
Matching, it is determined that the virtual terminal of view networked server distribution is available.
7. a kind of update device of server, which is characterized in that described device is applied to streaming media server, described device packet
It includes:
Upgrade request module is sent, for sending the upgrade request for carrying the version of the streaming media server to storage gateway;
Channel module is established in response, for the permission upgrade command in response to the storage gateway, is sent to the storage gateway
Channel request is established, to establish data transmission channel;The permission upgrade command is the storage gateway in response to the upgrading
Request, is triggered in the case where determining that the version of the streaming media server meets promotion condition;
Upgraded module is executed, for receiving upgrading data packet by the data transmission channel, and according to the upgrading data
Packet executes edition upgrading operation;The data transmission channel establishes channel request in response to described for the storage gateway, true
Surely it in the available situation of virtual terminal of view networked server distribution, is established by the virtual terminal.
8. a kind of update device of server, which is characterized in that described device is applied to memory gateway, and described device includes:
Upgrade request module is received, for receiving the upgrade request sent from streaming media server, the upgrade request is carried
There is the version of the streaming media server;
Response sends upgrade command module, is used in response to the upgrade request, in the version for determining the streaming media server
In the case where meeting promotion condition, Xiang Suoshu streaming media server, which is sent, allows upgrade command;
Judgment module is responded, for establishing channel for what the permission upgrade command returned in response to the streaming media server
Request, judges whether the virtual terminal distributed depending on networked server can be used;
Channel sending module is established, for passing through institute in the available situation of virtual terminal for determining view networked server distribution
It states virtual terminal and establishes data transmission channel, and ascending series are sent to the streaming media server by the data transmission channel
According to packet, so that the streaming media server executes edition upgrading operation according to the upgrading data packet.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor
The step in the method as described in claim 1-6 is any is realized when row.
10. a kind of electronic equipment including memory, processor and stores the calculating that can be run on a memory and on a processor
Machine program, which is characterized in that the step of method as described in claim 1-6 is any is realized when the processor executes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910741277.2A CN110460467A (en) | 2019-08-12 | 2019-08-12 | A kind of upgrade method of server, device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910741277.2A CN110460467A (en) | 2019-08-12 | 2019-08-12 | A kind of upgrade method of server, device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110460467A true CN110460467A (en) | 2019-11-15 |
Family
ID=68486033
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910741277.2A Pending CN110460467A (en) | 2019-08-12 | 2019-08-12 | A kind of upgrade method of server, device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110460467A (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090235244A1 (en) * | 2008-03-12 | 2009-09-17 | Ikumi Enomori | Software update system for information equipment |
CN101741897A (en) * | 2009-11-30 | 2010-06-16 | 广州市聚晖电子科技有限公司 | Remote automatic upgrading method and system of video-type safety-protection gateway |
CN102984281A (en) * | 2012-12-20 | 2013-03-20 | 湖南纽曼数码科技有限公司 | Automatic upgrading method of multi-system vehicle-mounted equipment |
CN104753811A (en) * | 2013-12-30 | 2015-07-01 | 中国移动通信集团公司 | Streaming medium service optimizing method, device and system |
CN106411619A (en) * | 2016-12-02 | 2017-02-15 | 北京博大光通物联科技股份有限公司 | Wireless equipment upgrading method based on low-power-consumption wide area network |
CN107256167A (en) * | 2017-05-27 | 2017-10-17 | 中国科学院深圳先进技术研究院 | The upgrade control method and upgrading control device migrated applied to application system |
CN107707589A (en) * | 2016-08-09 | 2018-02-16 | 阿里巴巴集团控股有限公司 | The update method of system version, content delivery network node, remote gateway |
CN109379209A (en) * | 2018-08-30 | 2019-02-22 | 视联动力信息技术股份有限公司 | A kind of upgrade method and device of view networking storage service |
CN109857419A (en) * | 2018-12-04 | 2019-06-07 | 视联动力信息技术股份有限公司 | A kind of method and apparatus that scheduling system upgrades automatically |
-
2019
- 2019-08-12 CN CN201910741277.2A patent/CN110460467A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090235244A1 (en) * | 2008-03-12 | 2009-09-17 | Ikumi Enomori | Software update system for information equipment |
CN101741897A (en) * | 2009-11-30 | 2010-06-16 | 广州市聚晖电子科技有限公司 | Remote automatic upgrading method and system of video-type safety-protection gateway |
CN102984281A (en) * | 2012-12-20 | 2013-03-20 | 湖南纽曼数码科技有限公司 | Automatic upgrading method of multi-system vehicle-mounted equipment |
CN104753811A (en) * | 2013-12-30 | 2015-07-01 | 中国移动通信集团公司 | Streaming medium service optimizing method, device and system |
CN107707589A (en) * | 2016-08-09 | 2018-02-16 | 阿里巴巴集团控股有限公司 | The update method of system version, content delivery network node, remote gateway |
CN106411619A (en) * | 2016-12-02 | 2017-02-15 | 北京博大光通物联科技股份有限公司 | Wireless equipment upgrading method based on low-power-consumption wide area network |
CN107256167A (en) * | 2017-05-27 | 2017-10-17 | 中国科学院深圳先进技术研究院 | The upgrade control method and upgrading control device migrated applied to application system |
CN109379209A (en) * | 2018-08-30 | 2019-02-22 | 视联动力信息技术股份有限公司 | A kind of upgrade method and device of view networking storage service |
CN109857419A (en) * | 2018-12-04 | 2019-06-07 | 视联动力信息技术股份有限公司 | A kind of method and apparatus that scheduling system upgrades automatically |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108075920B (en) | A kind of management method and system regarding networked terminals | |
CN108023910A (en) | A kind of terminal monitoring method and system based on regarding networking | |
CN110121059A (en) | Monitor video processing method, device and storage medium | |
CN108965367A (en) | A kind of method and system of control view networked server | |
CN109960513A (en) | A kind of project dispositions method and view networked system | |
CN108964962A (en) | A kind of method and system of control view networked terminals | |
CN108616549A (en) | A kind of file uploading method and file server | |
CN109743595A (en) | Terminal data synchronous method and device | |
CN109918104A (en) | A kind of automatic updating system and method | |
CN109257253A (en) | A kind of method and apparatus of APP operational monitoring | |
CN108880851A (en) | A kind of method and interactive system that configuration updates | |
CN108809922B (en) | A kind of audio fault handling method, conference dispatching end and view networked terminals | |
CN109842685A (en) | A kind of method of data synchronization and device | |
CN110460469A (en) | A kind of method for upgrading system, device and storage medium | |
CN110138633A (en) | A kind of storage gateway method of network entry and device | |
CN110048903A (en) | A kind of association turns gateway status monitoring method and device | |
CN109787873A (en) | A kind of method and apparatus of multi-to-multi incoming communication | |
CN109151519A (en) | A kind of configuration distribution method and system based on view networking | |
CN110505077A (en) | A kind of method and apparatus of upgrading | |
CN108989850A (en) | A kind of video playing control method and control system | |
CN110417792A (en) | Communication means, system, gateway and storage medium | |
CN110505211A (en) | A kind of data interactive method and device based on view networking | |
CN110266577A (en) | A kind of tunnel establishing method and view networked system | |
CN110048911A (en) | A kind of Cascading Methods and server based on view networking | |
CN110166363A (en) | A kind of multicast link monitoring method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191115 |