The content of the invention
The goal of the invention of the present invention is the automatically updating method and device for providing a kind of EOC CMTSs, be can solve the problem thatThe problem that EOC CMTSs all can not be upgraded automatically in network.
A kind of embodiments in accordance with the present invention, there is provided automatically updating method of EOC CMTSs, including:
Management end sends system upgrade bag according to preset time interval, and the system upgrade bag at least includes system to be upgradedThe upgrade-system version number of system;
EOC local sides monitor network interface card, receive the system upgrade bag in network, according to the system upgrade bag, obtain and riseLevel system version number;Judge whether the upgraded version number is identical with the system version number of the EOC local sides currently operation;IfIt is identical then to continue to monitor network interface card;Transmission control protocol TCP is set up with the management end if difference to be connected;
Set up after TCP is connected in the EOC local sides and the management end, the EOC local sides are sent to the management endUpdate request bag;
If the management end receives the renewal request bag, management end sends to EOC local sides and updates response bag, describedRenewal response bag at least takes up room including upgrade file, update time;
If the EOC local sides receive the renewal response bag, the EOC local sides send renewal to the management end and openBegin bag;
If the management end receives the renewal starts bag, the management end is sent according to text to the EOC local sidesPart packet, the file data bag at least include a packet;
The EOC local sides receive file data bag, judge the file data bag take up room whether with the upgradingFile takes up room identical;
Identical, the institute if take up room and the upgrade file of file data bag described in the EOC local sides take up roomEOC local sides are stated in the update time according to file data bag upgrading EOC CMTSs;
If the EOC local sides according to file data bag take up room take up room from the upgrade file it is different, inThe disconnected TCP connections, continue to monitor network interface card.
A kind of embodiments in accordance with the present invention, there is provided automatic update device of EOC CMTSs, including:
First transmitting element, for management end according to preset time interval, sends system upgrade bag, the system upgrade bagAt least including the upgrade-system version number of system to be upgraded;
Connection unit, monitors network interface card for an EOC local sides, receives the system upgrade bag in network, according to describedSystem upgrade bag, obtains upgrade-system version number;Judge the system version of the upgraded version number and the EOC local sides currently operationWhether this number identical;If the same continue to monitor network interface card;Transmission control protocol TCP is set up with the management end if differenceConnection;
Second transmitting element, for setting up after TCP is connected in the EOC local sides and the management end, the EOC local sidesSend to the management end and update request bag;
First transmitting element, if being additionally operable to the management end receives the renewal request bag, management end is to EOC local sidesSend and update response bag, the renewal response bag at least takes up room including upgrade file, update time;
Second transmitting element, if being additionally operable to the EOC local sides receives the renewal response bag, the EOC officesHold to management end transmission renewal and start bag;
First transmitting element, starts bag, the management end if being additionally operable to the management end and receiving the renewalSend according to file data bag to the EOC local sides, the file data bag at least includes a packet;
Judging unit, receives file data bag for the EOC local sides, judges that the taking up room for file data bag isIt is no take up room with the upgrade file it is identical;
Upgrade unit, if take with the upgrade file for taking up room for file data bag described in the EOC local sidesSpace is identical, then the EOC local sides the update time according to the file data bag upgrade EOC CMTSs;
Interrupt location, if take with the upgrade file according to being taken up room for file data bag for the EOC local sidesSpace is different, then interrupt the TCP connections, continue to monitor network interface card.
A kind of automatically updating method and device of the EOC CMTSs provided from above technical scheme, the present invention, leads toCross management end and send system upgrade bag, EOC local sides monitor the system upgrade bag that network interface card is received in network, and according to system upgrade bagUpgrade-system version number is obtained, if upgrade-system version number is identical with the system version number of EOC local sides currently operation, continues prisonNetwork interface card is listened, if upgrade-system version number is different from the system version number of EOC local sides currently operation, TCP companies is set up with management endConnect.After setting up TCP connections, EOC local sides send and update request bag, and after management end receives renewal request bag, management end sendsResponse bag is updated, after EOC local sides receive renewal response bag, EOC local sides send renewal and start bag, and management end receives renewal and opensBegin after bag, management end sends file data bag, after EOC local sides receive file data bag, judge the sky that file data bag takesBetween whether take up room with upgrade file it is identical, if identical upgrade EOC CMTSs, if difference interrupting TCP connection.With it is existingThere is technology to compare, the present invention can be by constantly sending system upgrade bag, as long as so that on the EOC local sides of management end controlLine can just receive system upgrade bag, it is ensured that EOC local sides can be received by the notice of more new system.If EOC local sides judge systemSystem version number in AKU is different from the system version number of current operation, then set up TCP with management end and be connected, retransmit moreNew request bag, acquisition request upgrade file, prosthetic are participated in, it is not required that management end carries out any behaviour to online EOC local sidesMake, you can obtain upgrade file, to realize that EOC CMTSs are upgraded automatically.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, completeWhole description, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based onEmbodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not madeEmbodiment, belongs to the scope of protection of the invention.
EOC systems in cable TV network, including front-end platform, optical link, EOC local sides, EOC terminal equipment, bridge jointDevice.EOC terminal is the data signal that receiving front-end platform is sent by optical link, and by two kinds of Signal separators out.Due to frontThe data signal that end platform sends is continually changing according to the different of the data encoding and Channel assignment for adopting, correspondingProcessing mode of the EOC local sides after data signal is received also is differed, so needing to upgrade EOC CMTSs.EOCWhen local side increases function or solve problem, it is also desirable to which EOC CMTSs are upgraded.
When EOC CMTSs are upgraded, system upgrade files through network is transferred to EOC local sides, could realize system certainlyDynamic upgrading.In embodiments of the present invention, management end control EOC local side holonomic systems are upgraded automatically.
On the one hand, a kind of automatically updating method of EOC CMTSs is embodiments provided, as shown in figure 1, the partyMethod includes:
S101, management end send system upgrade bag according to preset time interval.
Upgrade-system version number of the system upgrade bag at least including system to be upgraded.Upgrade-system bag, it is newest for representingEOC CMTSs system situation, at least including upgrade-system version number, to carry out with other EOC CMTSs versionsDifference.EOC local sides preserve whole upgrade files, in order to selected part upgrade file packaging system AKU.Management end is per JingCross preset time interval and just send primary system AKU, until generating new system version, or all of EOC offices in networkEnd system all completes upgrading.In embodiments of the present invention the renewal opportunity of system upgrade bag is not limited.System upgrade bag is alsoThe system identification informations such as system suitable environment, issuing time can be included, in order to EOC local sides according to the judgement of system upgrade bag beNo upgrade-system.
By upgrade-system related data, packing is carried out according to packetization rules and generate system upgrade bag, in order to upgrade-systemRelated data is sent in the form of packet.With the data that data packet form sends, receiving terminal can efficiently be verified and be receivedPacket whether include partial data.
S102, EOC local side monitors network interface card, receives the system upgrade bag in network, according to system upgrade bag, obtains upgrading systemSystem version number;Judge whether upgraded version number is identical with the system version number of EOC local sides currently operation;If the same continue prisonListen network interface card;Transmission control protocol TCP is set up with management end if difference to be connected.
Network interface card, is the networking component for being operated in data link layer, is the interface for connecting computer and transmission medium, can not onlyEnough realize physical connection between transmission medium and signal of telecommunication matching, additionally it is possible to Frame is transmitted and reception, encapsulation withSeal off, function such as medium access control and data buffer storage etc..
EOC local sides monitor network interface card, that is, whether monitor has Frame to send to network interface card, reception system AKU.With system literThe packetization rules correspondence of level bag, according to unpacking, system upgrade bag is unpacked by rule, obtains upgraded version number.Compare upgrade versionThis number system version number currently run with EOC local sides, judges whether two systems version number is identical.If identical, EOC is illustratedCMTS version has been highest system version, it is not necessary to EOC CMTS repeatedly upgradings, continuing to monitor network interface card.Such asFruit is different, illustrates to need EOC CMTSs of upgrading.If upgrading EOC CMTSs, need to obtain upgrade file.And upgradeFile is stored in management end, so needing to set up the TCP (Transmission that management end is directly connected to EOC local sidesControl Protocol, transmission control protocol) connection, request management end transmission upgrade file.
TCP connections are set up, is set up after EOC local sides and management end are shaken hands for 3 times.Mistake due to setting up TCP connectionsJourney is known technology, and the detailed process to setting up TCP connections is repeated no more in embodiments of the present invention.
S103, set up after TCP is connected in EOC local sides and management end, EOC local sides send to management end and update request bag.
EOC local sides ask the related data of upgrade file to management end, at least including upgrade file by updating request bagTake up room, update time etc., the related data species for including to updating request bag in embodiments of the present invention do not limit.
If S104, management end receive renewal request bag, management end sends to EOC local sides and updates response bag.
The feedback information that response bag is that management end is generated according to renewal request bag is updated, the content of response bag is updated and is updatedThe request content of request bag is corresponding, at least takes up room including upgrade file, update time.
If S105, EOC local side receives renewal response bag, EOC local sides send renewal to management end and start bag.
EOC local sides are unpacked response bag is updated according to rule of unpacking, and obtain upgrade file and take up room and update time.RootAccording to upgrade file holding time, a sufficiently large memory space storage upgrade file is selected.It is before update time is reached, rightThe program that EOC local sides are currently running carries out preserving the process such as closing, with the program for avoiding original system during upgrade-system from being currently runningLose data.
EOC local sides send renewal and start bag, and renewal starts bag request and starts to send upgrade file.
If S106, management end receive renewal starts bag, management end sends file data bag to EOC local sides.
Due to file data, to be surrounded by data package size limited, if upgrade file take up room it is larger, it is necessary to will upgradingFile declustering, is packaged into multiple file data bags.If upgrade file takes up room, just will upgradingFile is packaged into a packet.Thus file data bag at least includes a packet.
S107, EOC local side receives file data bag, judges whether taking up room for file data bag is taken with upgrade fileSpace is identical.
The taking up room of file data bag refers toThe size in space.Judge whether taking up room for file data bag takes up room with upgrade file identical, that is, judge EOC officesWhether end receives complete upgrade file.
If the taking up room of S108, EOC local side file data bag take up room with upgrade file identical, EOC local sides existUpdate time is according to file data bag upgrading EOC CMTSs.
Update time, the upgrading related data carried in the upgrading response bag for being management end transmission.EOC local sides are being receivedAfter complete file data bag, in update time upgrading EOC CMTSs, the automatic upgrading of EOC CMTSs is realized.In order toThe automatic upgrading of EOC CMTSs is realized, a starting and upgrading program can be added in file data bag, it is complete gettingData simultaneously when reaching update time, start the automatic upgrading of EOC CMTSs.
If S109, EOC local side take up room from upgrade file different according to taking up room for file data bag, interruptTCP connects, and continues to monitor network interface card.
EOC local sides take up room from upgrade file different according to taking up room for file data bag, that is, EOC local sides connectThere is the situation received or repeat to receive file of missing, that is, the file data that EOC local sides are received in the file data for receivingComplete installation file can not be constituted.Interrupting TCP connects, and continues to monitor network interface card, waits the system upgrade bag for sending next time, weightMultiple said method, until the system that EOC CMTSs upgrade to the version, or the system that management end sends redaction.
In order to ensure that the communication between management end and EOC local sides, management end and EOC local sides arrange same set of remote online literLevel agreement, by the remote online agreement being used in conjunction with, realizes the data transfer between management end and EOC local sides.Remote onlineUpdating protocol is embedded in existing transport layer protocol when using use, to increase the reliability of transmission data.Existing biographyDefeated layer protocol includes TCP and UDP (User Data Protocol, UDP).
Under transport layer protocol, remote online updating protocol is by protocol number, main command, subcommand, data content and verificationCode is constituted.Data content is using the variable format coding for including type, length, data.Protocol number refers to remote online upgrading associationThe identifier of view, is set to RONU English characters or other marks with fixed character length.Main command is with fixed character lengthMore new logo is set, and the data in this packet is identified to update related data.Subcommand is arranged and is risen with regular length characterThe related packet category identities of level, such as upgrade-system bag, update request bag, update response bag, and renewal starts bag, file dataBag etc..In main command and subcommand, extending space is all reserved, to be extended to all kinds of marks according to subsequent need.Data content includes that upgrade-system version number, upgrade file take up room size, upgrade file data, update time etc..SchoolIt is the verification to data content to test code, to find the mistake produced in transmitting procedure.By using CRC (CyclicRedundancy Check, cyclic redundancy check (CRC)) mode verification data content correctness.
The automatically updating method of a kind of EOC CMTSs provided from above technical scheme, the present invention, by managementEnd sends system upgrade bag, and EOC local sides monitor the system upgrade bag that network interface card is received in network, and are risen according to the acquisition of system upgrade bagLevel system version number, if upgrade-system version number is identical with the system version number of EOC local sides currently operation, continues to monitor netCard, if upgrade-system version number is different from the system version number of EOC local sides currently operation, sets up TCP with management end and is connected.BuildAfter vertical TCP connections, EOC local sides send and update request bag, and after management end receives renewal request bag, management end sends to update ringsShould wrap, after EOC local sides receive renewal response bag, EOC local sides send renewal and start bag, and management end receives renewal and starts bagAfterwards, management end sends file data bag, after EOC local sides receive file data bag, judges that the space that file data bag takes isNo identical, the EOC CMTSs of upgrading if identical that take up room with upgrade file, the interrupting TCP connection if difference.With existing skillArt is compared, and the present invention can be by constantly sending system upgrade bag, as long as so that the EOC local sides of management end control are just reached the standard gradeSystem upgrade bag can be received, it is ensured that EOC local sides can be received by the notice of more new system.If EOC local sides judge system upgradeSystem version number in bag is different from the system version number of current operation, then set up TCP with management end and be connected, and retransmiting renewal pleaseBag, acquisition request upgrade file, prosthetic is asked to participate in, it is not required that management end carries out any operation to online EOC local sides, i.e.,Upgrade file can be obtained, to realize that EOC CMTSs are upgraded automatically.
On the other hand, the embodiment of the present invention additionally provides the automatically updating method of another kind of EOC CMTSs, such as Fig. 2 institutesShow, the method includes:
S201, management end send system upgrade bag according to preset time interval.
Upgrade-system version number of the system upgrade bag at least including system to be upgraded.As management end is located with EOC local sidesNetwork be not necessarily the same network segment, so send system upgrade bag specifically include:Obtain the local side net that EOC local sides are locatedSection;Judge interconnection protocol IP address between the network of the local side network segment and management end network interface card, if for the identical network segment;If judged resultBe yes, then system upgrade bag is sent with the forms of broadcasting;If judged result is no, each IP address to the local side network segment is by usingUser data agreement UDP sends system upgrade bag.
One management end, it usually needs the multiple EOC local sides of management, and EOC local sides can be distributed in the different network segments.If managementNot on the same network segment, then system upgrade bag needs cross-network segment to send for end and EOC local sides.Each network segment is both provided with netClose, and the broadcast in the network segment is unable to Transmission via Gateway, so using the sending method of two kinds of system AKUs.Two kinds of system upgradesThe sending method of bag can guarantee that no matter the EOC local sides inside the network segment or on other network segments can receive system upgrade bag.
S202, EOC local side monitors network interface card, receives the system upgrade bag in network, according to system upgrade bag, obtains upgrading systemSystem version number;Judge whether upgraded version number is identical with the system version number of EOC local sides currently operation;If the same continue prisonListen network interface card;Transmission control protocol TCP is set up with management end if difference to be connected.
Network interface card is monitored, that is, receives the Frame through network interface card.The either broadcast in the network segment is also sent to EOC local side IPThe system upgrade bag of address, can be listened to by network interface card.Network interface card monitors network interface card, receives the various data messages in network, fromIn numerous data messages, system upgrade bag is filtered out, that is, receives the system upgrade bag in network.From system upgrade bagMiddle acquisition upgraded version number.
EOC local sides must be installed a system and could use, and EOC local sides certainly exist a current fortune in the course of the workCapable system.Judge whether the system version number of EOC local sides currently operation is identical with upgraded version number, if the same illustratesEOC CMTS versions have been latest editions, illustrate that EOC CMTSs need upgrading if difference.
S203, set up after TCP is connected in EOC local sides and management end, EOC local sides send to management end and update request bag.
Request bag is updated, is that EOC local sides are asked to the renewal that management end sends.EOC local sides update request bag by sendingForm, inform that management end EOC local side wants upgrade-system.
If S204, management end receive renewal request bag, management end sends to EOC local sides and updates response bag, updates and ringShould wrap at least take up room including upgrade file, update time.
If S205, EOC local side receives renewal response bag, EOC local sides send renewal to management end and start bag.
EOC local sides start bag by renewal and inform management end, ready for system upgrade, can start transmission and riseLevel file.
If S206, management end receive renewal starts bag, management end sends file data bag, number of files to EOC local sidesAt least include a packet according to bag.
Upgrade file is packaged into multiple file data bags by management end, sends many successively according to packing order in this stepIndividual file data bag.During file data bag is sent, each file data bag whether is received without the need for EOC local sides feedback.ThisThe sending method of sample, saves EOC local side feedback times, improves the efficiency that file data bag sends.
S207, EOC local side receives file data bag, judges whether taking up room for file data bag is taken with upgrade fileSpace is identical.
Judge whether taking up room for file data bag takes up room with upgrade file identical, specifically include:Judge filePacket is identified with the presence or absence of the end of file;If there is no end of file mark, file data bag is continued to;If there is textPart end of identification, then calculation document packet take up room;Take up room and the upgrade file of comparison document data takes emptyBetween can be no identical.
During upgrade file is carried out packing data, an end identifier is selected to identify as the end of file,Such as 0x00.During file data bag is received, if after receiving end of file mark, illustrating to receive whole textsPart packet.In the file data bag with end of file mark, its ending carries the overall check code of whole upgrade file.RootWhether there is mistake during reception according to what overall verification code check can verify whole file.
If the taking up room of S208, EOC local side file data bag take up room with upgrade file identical, EOC local sides existUpdate time is according to file data bag upgrading EOC CMTSs.
Upgrade-system is different from upgrade applications, if application program updating is unsuccessful can also upgrade again, ifSystem upgrade is unsuccessful may to cause whole EOC local sides normally cannot use, and by man-to-man remotely control or can only arriveEOC local sides position is repaired, and needs to expend the other problemses that more manpower and materials solve to produce due to upgrade-system.
So in EOC CMTS escalation process, also including:File data bag is converted into installation file by EOC local sides;Preserve installation file.Installation file is stored in into EOC local sides, rather than during file packet transmission, is pacified in transmissionDress, it can be ensured that can disposably complete the upgrading of EOC CMTSs.
If S209, EOC local side take up room from upgrade file different according to taking up room for file data bag, send out againSend renewal request bag.
EOC local sides take up room from upgrade file different according to taking up room for file data bag, that is, EOC local sides connectThe file data for receiving can not constitute complete installation file.In order to obtain complete installation file, renewal request is resendBag, request management end resend file data bag.
On the one hand, the embodiment of the present invention additionally provides a kind of automatic update device of EOC CMTSs, as shown in figure 3,The device includes:
First transmitting element 31, for management end according to preset time interval, sends system upgrade bag, and system upgrade bag is extremelyLess including the upgrade-system version number of system to be upgraded;
Connection unit 32, monitors network interface card for an EOC local sides, receives the system upgrade bag in network, according to system literLevel bag, obtains upgrade-system version number;Judge whether upgraded version number is identical with the system version number of EOC local sides currently operation;If the same continue to monitor network interface card;Transmission control protocol TCP is set up with management end if difference to be connected;
Second transmitting element 33, for setting up after TCP is connected in EOC local sides and management end, EOC local sides are sent out to management endSend renewal request bag;
First transmitting element 31, if being additionally operable to management end receives renewal request bag, management end is sent more to EOC local sidesNew response bag, renewal response bag at least takes up room including upgrade file, update time;
Second transmitting element 33, if being additionally operable to EOC local sides receives renewal response bag, EOC local sides are sent to management endRenewal starts bag;
First transmitting element 31, starts bag if being additionally operable to management end and receiving renewal, and management end sends text to EOC local sidesPart packet, file data bag at least include a packet;
Judging unit 34, receives file data bag for EOC local sides, judge file data bag take up room whether with literLevel file takes up room identical;
Upgrade unit 35, if for EOC local side file data bags take up room take up room with upgrade file it is identical,EOC local sides are in update time according to file data bag upgrading EOC CMTSs.
Interrupt location 36, if take up room not with upgrade file according to being taken up room for file data bag for EOC local sidesTogether, then interrupting TCP connection, continues to monitor network interface card.
Further, as shown in figure 4, the first transmitting element 31, including:
Acquisition module 311, for obtaining the local side network segment at EOC local sides place;
Judge module 312, for judging interconnection protocol IP address between the network of the local side network segment and management end network interface card, if beThe identical network segment;
Sending module 313, for if the determination result is YES, then sending system upgrade bag with the forms of broadcasting;
Sending module 313, if it is no to be additionally operable to judged result, passes through user data to each IP address of the local side network segmentAgreement UDP sends system upgrade bag.
Further, as shown in figure 4, judging unit 34, including:
Judge module 341, for judging that file data bag is identified with the presence or absence of the end of file;
Jump module 342, if for there is no end of file mark, continuing to file data bag;
Computing module 343, if for there is end of file mark, calculation document packet takes up room;
Comparison module 344, taking up room for taking up room for comparison document data and upgrade file can be no identical.
Further, as shown in figure 4, upgrade unit 35, including:
Modular converter 351, for file data bag is converted into installation file;
Preserving module 352, for preserving installation file.
Further, as shown in figure 4, the device also includes:
Jump-transfer unit 37, for judge file data bag take up room whether take up room with upgrade file it is identical itAfterwards, if EOC local sides according to file data bag take up room take up room from upgrade file it is different, resend renewal requestBag.
The automatic update device of a kind of EOC CMTSs provided from above technical scheme, the present invention, by managementEnd sends system upgrade bag, and EOC local sides monitor the system upgrade bag that network interface card is received in network, and are risen according to the acquisition of system upgrade bagLevel system version number, if upgrade-system version number is identical with the system version number of EOC local sides currently operation, continues to monitor netCard, if upgrade-system version number is different from the system version number of EOC local sides currently operation, sets up TCP with management end and is connected.BuildAfter vertical TCP connections, EOC local sides send and update request bag, and after management end receives renewal request bag, management end sends to update ringsShould wrap, after EOC local sides receive renewal response bag, EOC local sides send renewal and start bag, and management end receives renewal and starts bagAfterwards, management end sends file data bag, after EOC local sides receive file data bag, judges that the space that file data bag takes isNo identical, the EOC CMTSs of upgrading if identical that take up room with upgrade file, the interrupting TCP connection if difference.With existing skillArt is compared, and the present invention can be by constantly sending system upgrade bag, as long as so that the EOC local sides of management end control are just reached the standard gradeSystem upgrade bag can be received, it is ensured that EOC local sides can be received by the notice of more new system.If EOC local sides judge system upgradeSystem version number in bag is different from the system version number of current operation, then set up TCP with management end and be connected, and retransmiting renewal pleaseBag, acquisition request upgrade file, prosthetic is asked to participate in, it is not required that management end carries out any operation to online EOC local sides, i.e.,Upgrade file can be obtained, to realize that EOC CMTSs are upgraded automatically.
Those skilled in the art will readily occur to its of the present invention after considering description and putting into practice invention disclosed hereinIts embodiment.The application is intended to any modification of the present invention, purposes or adaptations, these modifications, purposes orPerson's adaptations follow the general principle of the present invention and including the undocumented common knowledge in the art of the present inventionOr conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by followingClaim is pointed out.
It should be appreciated that the precision architecture for being described above and being shown in the drawings is the invention is not limited in, andAnd various modifications and changes can be being carried out without departing from the scope.The scope of the present invention is limited only by appended claim.