Disclosure of Invention
In view of the above problems, embodiments of the present application are proposed to provide a method, an apparatus, a storage medium and a device for mail transmission in a video network, which overcome the above problems or at least partially solve the above problems.
In a first aspect, an embodiment of the present application provides a method for mail transmission in a video network, where the method is applied to a video network background of a video network mail transmission system, and the video network background is connected to a sending terminal and a receiving terminal respectively; the method comprises the following steps:
receiving text information of the mail through long connection with the sending terminal, generating identification information and returning the identification information to the sending terminal;
uploading the attachment of the mail sent by the sending terminal to a cloud platform, and returning an attachment storage address returned by the cloud platform to the sending terminal, wherein the attachment storage address is a storage address of the attachment in the cloud platform;
receiving the identification information and the accessory storage address returned by the sending terminal, and adding the accessory storage address to the text message according to the identification information;
and storing the text information containing the attachment storage address into a mail list, and sending a new mail prompt message to the receiving terminal through long connection with the receiving terminal.
Optionally, the method further comprises:
when the mail sent by the sending terminal has no attachments, receiving a message which is returned by the sending terminal and contains the information that the mail has no attachments and the identification information;
and storing the text information to the mail list according to the identification information, and sending a new mail prompt message to the receiving terminal through long connection with the receiving terminal.
Optionally, the text information includes a sending address and a receiving address; before saving the text information containing the attachment storage address to the mailing list, the method further comprises:
establishing the mail list according to the sending address or the receiving address;
sending a new mail prompt message to the receiving terminal, including:
and determining the receiving terminal according to the receiving address, and sending the new mail prompt message to the receiving terminal.
Optionally, uploading the attachment of the email sent by the sending terminal to a cloud platform, including:
if the attachment is a document attachment, converting the document attachment into an html static page, and uploading the html static page to the cloud platform;
and if the accessory is an audio and video accessory, uploading the audio and video accessory to the cloud platform.
Optionally, the method further comprises:
responding to a reading request sent by the receiving terminal; wherein the reading request carries the identification information;
determining the text information according to the identification information;
and distributing the reading authority of the text information of the mail to be read to the receiving terminal.
In a second aspect, an embodiment of the present application provides a method for mail transmission in a video network, where the method is applied to a sending terminal of a video network mail transmission system, the sending terminal is connected to a video network background, and the video network background is connected to a receiving terminal; the method comprises the following steps:
sending the text information of the mail to the background of the video network through long connection with the background of the video network;
receiving identification information returned by the background of the video network, wherein the identification information is generated according to the text information;
uploading the attachment of the mail to the video networking background so as to store the attachment of the mail to a cloud platform through the video networking background;
receiving an accessory storage address returned by the background of the video network, wherein the accessory storage address is the storage address of the accessory in the cloud platform;
and sending a message containing the identification information and the attachment storage address to the background of the video network, so that the background of the video network adds the attachment storage address to the text message according to the identification information and sends a new mail prompt message to the receiving terminal.
Optionally, before sending the text information of the email to the background of the video network through a long connection with the background of the video network, the method further includes:
and preventing the processor from sleeping by utilizing a bright screen process, and establishing long connection with the background of the video network.
Optionally, uploading the attachment of the mail to the background of the video network includes:
identifying whether the mail has an attachment;
when the mail has an attachment, uploading the attachment of the mail to the background of the video network;
the method further comprises the following steps:
and when the mail has no attachments, sending a message containing the information of the mail without attachments and the identification information to the background of the video network so that the background of the video network sends the new mail prompt message to the receiving terminal.
In a third aspect, an embodiment of the present application provides a method for mail transmission in a video network, where the method is applied to a receiving terminal of a video network mail transmission system, the receiving terminal is connected to a video network background, and the video network background is connected to a sending terminal; the method comprises the following steps:
responding to a new mail prompt message sent by the video networking background through long connection, and requesting a mail list from the video networking background;
determining a mail to be read according to the mail list, and sending a reading request to the background of the video network so that the background of the video network distributes the reading permission of the text information of the mail to be read to the receiving terminal; wherein the reading request carries the identification information;
and reading the text information, and downloading the attachment through an attachment storage address in the text information.
Optionally, before responding to a new mail alert message sent by the video networking background through a long connection, the method further includes:
and preventing the processor from sleeping by utilizing a bright screen process, and establishing long connection with the background of the video network.
Optionally, the reading, by the receiving terminal, the text message, and downloading the accessory through an accessory storage address in the text message includes:
if the attachment is a document attachment, directly displaying the downloaded html static page on the text information page;
and if the accessory is the audio and video accessory, skipping a player to play the downloaded audio and video accessory.
In a fourth aspect, an embodiment of the present application provides a device for mail transmission in a video network, which is applied to a video network background of a video network mail transmission system, where the video network background is connected to a sending terminal and a receiving terminal respectively; the device comprises:
the text information receiving module is used for receiving the text information of the mail through long connection with the sending terminal, generating identification information and returning the identification information to the sending terminal;
an attachment storage address acquisition module, configured to upload an attachment of the email sent by the sending terminal to a cloud platform, and return an attachment storage address returned by the cloud platform to the sending terminal, where the attachment storage address is a storage address of the attachment in the cloud platform;
an attachment storage address adding module, configured to receive the identification information and the attachment storage address returned by the sending terminal, and add the attachment storage address to the text message according to the identification information;
and the first text information storage module is used for storing the text information containing the attachment storage address into a mail list and sending a new mail prompt message to the receiving terminal through long connection with the receiving terminal.
Optionally, the apparatus further comprises:
an attachment-free message receiving module, configured to receive, when the mail sent by the sending terminal has no attachment, a message including information that the mail has no attachment and the identification information, where the message is returned by the sending terminal;
and the second text information storage module is used for storing the text information to the mail list according to the identification information and sending a new mail prompt message to the receiving terminal through long connection with the receiving terminal.
Optionally, the text information includes a sending address and a receiving address; the device further comprises:
a mailing list creating module, configured to create the mailing list according to the sending address or the receiving address;
the first text information saving module comprises:
and the receiving terminal determining submodule is used for determining the receiving terminal according to the receiving address and sending the new mail prompting message to the receiving terminal.
Optionally, the accessory storage address obtaining module includes:
the file attachment uploading sub-module is used for converting the file attachment into an html static page and uploading the html static page to the cloud platform when the attachment is the file attachment;
and the audio and video accessory uploading sub-module is used for uploading the audio and video accessory to the cloud platform when the accessory is the audio and video accessory.
Optionally, the apparatus further comprises:
a reading request response module, configured to respond to a reading request sent by the receiving terminal; wherein the reading request carries the identification information;
the text information determining module is used for determining the text information according to the identification information;
and the reading permission distribution module is used for distributing the reading permission of the text information of the mail to be read to the receiving terminal.
In a fifth aspect, an embodiment of the present application provides a device for mail transmission in a video network, which is applied to a sending terminal of a video network mail transmission system, where the sending terminal is connected to a video network background, and the video network background is connected to a receiving terminal; the device comprises:
the text information sending module is used for sending the text information of the mail to the background of the video network through long connection with the background of the video network;
the identification information receiving module is used for receiving identification information returned by the background of the video network, and the identification information is generated according to the text information;
the attachment uploading module is used for uploading the attachment of the mail to the video networking background so as to store the attachment of the mail to a cloud platform through the video networking background;
the accessory storage address receiving module is used for receiving an accessory storage address returned by the video networking background, wherein the accessory storage address is a storage address of the accessory in the cloud platform;
and the first message sending module is used for sending a message containing the identification information and the attachment storage address to the background of the video network, so that the background of the video network adds the attachment storage address to the text message according to the identification information and sends a new mail prompt message to the receiving terminal.
Optionally, the apparatus further comprises:
and the first long connection establishing module is used for preventing the processor from sleeping by utilizing a bright screen process and establishing long connection with the background of the video network.
Optionally, the accessory upload module comprises:
the attachment identification submodule is used for identifying whether the mail has attachments or not;
the attachment uploading sub-module is used for uploading the attachment of the mail to the background of the video network when the mail has the attachment;
the device further comprises:
and the second message sending module is used for sending a message containing the information that the mail has no attachments and the identification information to the background of the video network when the mail has no attachments so as to enable the background of the video network to send the new mail prompt message to the receiving terminal.
In a sixth aspect, an embodiment of the present application provides a device for mail transmission in a video network, which is applied to a receiving terminal of a video network mail transmission system, where the receiving terminal is connected to a video network background, and the video network background is connected to a sending terminal; the device comprises:
the mail list request module is used for responding to a new mail prompt message sent by the video networking background through long connection and requesting a mail list from the video networking background;
the text information reading request module is used for determining a mail to be read according to the mail list and sending a reading request to the background of the video network so that the background of the video network distributes the reading permission of the text information of the mail to be read to the receiving terminal; wherein the reading request carries the identification information;
and the attachment downloading module is used for reading the text information and downloading the attachment through an attachment storage address in the text information.
Optionally, the apparatus further comprises:
and the second long connection establishing module is used for preventing the processor from sleeping by utilizing a bright screen process and establishing long connection with the background of the video network.
Optionally, the accessory download module comprises:
the document attachment downloading sub-module is used for directly displaying a downloaded html static page on the text information page when the attachment is a document attachment;
and the audio and video accessory downloading submodule is used for jumping a player to play the downloaded audio and video accessory when the accessory is the audio and video accessory.
In a seventh aspect, this application embodiment further provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps in the method according to the first aspect of this application, or according to the second aspect of this application, or according to the third aspect of this application.
In an eighth aspect, embodiments of the present application further provide an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps in the method according to the first aspect of the present application or the second aspect of the present application or the third aspect of the present application when executed.
The embodiment of the application has the following advantages:
according to the method and the device, the attachment with the large memory is stored in the cloud platform, the attachment storage address is stored in the document information, the document information is stored in the mail list in the background, and the new mail prompt message is generated to prompt the receiving terminal that a new mail is to be read.
By adopting the method for mail transmission in the video network, under the condition of not accessing a third-party network and using a third-party mailbox development tool, through the long connection established between the sending terminal and the background, the background can receive the text information of the mail sent by the sending terminal at any time, generate identification information for the received text information and return the identification information to the sending terminal, so that the sending terminal can continue to send the attachment of the mail, the background uploads the received attachment to the cloud platform, the attachment storage address is obtained and returned to the sending terminal, and the sending terminal returns the attachment storage address and the identification information to the background together, thereby completing the sending of the mail simply and quickly.
The receiving terminal can receive the new mail prompt message sent by the background at any time through the long connection established between the receiving terminal and the background, acquire a mail list of the mail text information through the new mail prompt message, determine the document information to be read through the mail list, and download the attachment, so that the reading of the mail is completed simply and quickly, and manpower and material resources are saved.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
In the local area network with strict requirements on confidentiality and safety of transmission data, access of an external network of a third party is not allowed too much, so that the mailbox building tool of the third party is utilized, the mailbox building in the local area network has safety risk, and if the mailbox building tool is re-developed and a mail is built, huge manpower and material resources are consumed.
Meanwhile, the common client cannot automatically receive the attachments sent by other clients, online transmission is required under the condition of establishing connection, and even if offline transmission is carried out, the function of pertinently combining the content of text communication and the attachments is not provided.
Particularly, for a terminal in the video network, autonomously developed system software is loaded, interactive communication is carried out under the video network, the existing three-party software system cannot be directly accessed into the video network, manpower and material resources are needed for autonomously developing a professional mailbox system, and in order to simply complete the function of a similar mailbox, the SOCKET communication mechanism is utilized to complete the construction of the similar mailbox.
The embodiment of the application provides a method for mail transmission in a video network, which can enable file or audio and video and other attachments and text introduction of the file or audio and video and other attachments to be transmitted between file client terminals in the video network at any time without a third-party mailbox development tool, and generate an information table for the transmitted file or audio and video and other attachments, wherein the information table displays the titles, text introduction and the like of the attachments, so that a user of a client can select the received attachments according to the titles, text introduction and other contents displayed in the information table. The method for transmitting the mails in the video network transmits the mails between the clients of the local area network, is convenient and quick, does not need to expend energy in advance to build the mails, and simply and quickly completes the building of similar mailboxes.
The application of the embodiment of the application includes but is not limited to image case transmission in a certain hospital video network. In order to ensure the privacy security of patients and the medical security of hospitals, the visual network of the hospitals is not connected with an external network and is a closed local area network.
The high-definition audio and video images transmitted by the video network and the high-speed transmission rate are applied to the medical industry, the effect of medical work can be greatly improved, and particularly, communication can be efficiently carried out among doctors, nurses and patients through the high-definition images and the high-speed transmission rate of the video network.
The method is applied to a sending terminal of a video networking mail transmission system, wherein the sending terminal is connected with a video networking background, and the video networking background is connected with a receiving terminal; the method comprises the following steps:
the video network background is an information processing terminal in a video network system of a certain hospital, and can be a video network server or a system environment consisting of the video network server and a database.
In order to reduce the operation pressure of the video network server, the database can be used for storing contents such as text information and the like, and the video network server only executes operation programs such as message receiving, attachment uploading, message sending, long connection establishment and the like, so that the operation efficiency of a background is improved.
Android is a Linux-based operating system with free and open source codes, which is mainly used in mobile devices such as smart phones and tablet computers
The application program installed on the android smart phone or the tablet computer integrates multiple functions of registration, payment, case sending, prescription issuing and the like. Doctors and nurses in hospitals all have android terminals provided with the application program, so that the sending terminal in the embodiment of the application is generally provided with the application program and sends the android terminal of the mail, the receiving terminal is generally provided with the application program and receives the android terminal of the mail, and a certain android terminal is not specific and is the sending terminal. It can be understood that any android terminal can be used as a sending terminal and a receiving terminal at the same time.
When any android terminal in the hospital video network starts an application program, the socket is utilized to establish long connection with the background, so that the android terminal can constantly keep connection with the background, receive messages pushed by the background in real time, or send text messages to the background in real time. For solving the problem that an android terminal enters a dormant state and is disconnected from a long connection of a background, the dormant mechanism of the resistance value android terminal processor is added in the long connection.
Before sending the text information of the mail to the background of the video network through the long connection with the background of the video network, the method further comprises the following steps:
and preventing the processor from sleeping by utilizing a bright screen process, and establishing long connection with the background of the video network.
Before responding to a new mail prompt message sent by the video network background through a long connection, the method further comprises the following steps:
and preventing the processor from sleeping by utilizing a bright screen process, and establishing long connection with the background of the video network.
Specifically, whether the android terminal is in a screen-off state or not is monitored, and when the android terminal is monitored to be in the screen-off state but the processor of the android terminal does not enter the dormancy state, the screen-on operation is immediately executed, and the screen-on state is directly entered into the screen-on state from the screen-off state, so that the processor keeps running.
The processor keeps the long connection established between the running android terminal and the background of the video network, and can transmit the message in real time.
Referring to fig. 1, fig. 1 is a flowchart of method steps of a sending terminal transmitting an email in a video network according to an embodiment of the present application.
S101: sending the text information of the mail to the background of the video network through long connection with the background of the video network;
generally, an android terminal which sends a mail currently is regarded as a sending terminal, and an android terminal which receives the mail is regarded as a receiving terminal. The text information of the mail comprises text content, mail title, sending address and receiving address, wherein the text content can be edited by a user at the sending terminal, summarization of mail attachments, or other text information related to the mail, or text short messages sent to the receiving terminal.
After the sending terminal finishes sending a mail, the sending of the next mail is executed. Firstly, a sending terminal sends text information to a background of the video network by long connection through a POST request, the text information only contains character contents, the occupied memory is small, and the text information can be directly sent to the background of the video network from the sending terminal by the POST request.
The background of the video network receives the text information in real time and then generates corresponding identification information, each mail has unique identification information, and under the condition that the sending terminal sends the text information and the attachments of the mails step by step, the sending terminal can correspond the text information and the attachments according to the identification information, so that the completeness of the mail information is ensured.
The identification information can be an ID number aiming at the text information, the video network background correspondingly generates identification information IDA005 after receiving the text information of the mail A, and the text information of the mail A can be quickly positioned in the text information stored in the video network background according to the IDA 005.
Referring to fig. 2, fig. 2 is a flowchart of method steps of a background mail transmission in a video network in the video network according to the embodiment of the present application.
The method is applied to a video networking background of a video networking mail transmission system, and the video networking background is respectively connected with a sending terminal and a receiving terminal; the method comprises the following steps:
s201: receiving text information of the mail through long connection with the sending terminal, generating identification information and returning the identification information to the sending terminal;
the background of the video network receives the text information and can establish a mail list to be stored in a database according to the sending address or the receiving address in the text information.
The text information comprises a sending address and a receiving address; before saving the text information containing the attachment storage address to the mailing list, the method further comprises:
establishing the mail list according to the sending address or the receiving address;
if the receiving address of the mail sent by the current sending terminal is MAC101, the video network server establishes a mail list 101 by using the MAC101, and stores all the text addresses of the subsequent mails taking the MAC101 as the receiving address into the mail list 101, so that the receiving terminal can directly acquire the mail list of the mails received by the receiving terminal.
And the sending terminal receives the identification information returned by the background of the video network and confirms that the background of the video network has received the text information corresponding to the identification information.
S102: receiving identification information returned by the background of the video network, wherein the identification information is generated according to the text information;
s103: uploading the attachment of the mail to the video networking background so as to store the attachment of the mail to a cloud platform through the video networking background;
the sending terminal sends the text information to the background, the sending of the whole mail A is not completed, after the identification information IDA005 is received, the sending terminal has a search identification of the mail A on the background of the video network, and then the attachment of the mail A is uploaded to the background of the video network, so that the correspondence between the text information of the mail A and the attachment is ensured.
Generally, a sending terminal changes an accessory into an accessory stream, uploads the accessory to a background of the video network in a stream form, and after the background of the video network receives the accessory, uploads the accessory stream to a cloud platform connected with the background of the video network, so as to obtain a storage address MACA005 of the accessory on the cloud platform.
S202: uploading the attachment of the mail sent by the sending terminal to a cloud platform, and returning an attachment storage address returned by the cloud platform to the sending terminal, wherein the attachment storage address is a storage address of the attachment in the cloud platform;
because the background of the video network can simultaneously upload the attachments of the mails of a plurality of sending terminals, if the storage address of the attachment on the cloud platform is directly added into the corresponding text information by the background of the video network, the text information belonging to the same mail as the current attachment is required to be selected from the plurality of text information, and the calculation amount of the background of the video network is inevitably increased and information confusion is caused. In contrast, in the embodiment of the application, the video networking background directly returns the accessory storage address to the sending terminal of the accessory after acquiring the accessory storage address.
S104: receiving an accessory storage address returned by the background of the video network, wherein the accessory storage address is the storage address of the accessory in the cloud platform;
and after receiving the storage address of the attachment on the cloud platform, the sending terminal directly corresponds to the mail currently sent, corresponds the identification information of the mail to the attachment storage address, and returns and sends the identification information to the background of the video network.
The corresponding sending terminal has the mail which is sent currently and only corresponds to the storage address of the attachment, the sending terminal can directly correspond the identification information of the mail to the storage address, and the identification information corresponds to the unique text information, so that the sending terminal corresponds the storage address of the attachment to the text information of the mail to which the sending terminal belongs, and the background of the video network can accurately find the text information corresponding to the storage address.
S105: and sending a message containing the identification information and the attachment storage address to the background of the video network, so that the background of the video network adds the attachment storage address to the text message according to the identification information and sends a new mail prompt message to the receiving terminal.
The sending terminal sends out a message containing the identification information and the attachment storage address, which marks that the sending terminal finishes sending the text information and the attachment of the current mail and can continue to send the second mail.
In another embodiment of the present application, when receiving identification information generated by a background of a video network for text information of a currently sent mail, a sending terminal identifies whether the currently sent mail has an attachment, if the currently sent mail includes an attachment, the attachment is uploaded to the background of the video network in a manner described in the embodiment of the present application, and if the currently sent mail does not have an attachment, information of the current mail without an attachment is packaged and sent to the background of the video network corresponding to the received identification information for the mail, where the information of the current mail without an attachment indicates that the sending terminal has completed sending the text information of the current mail.
Uploading the attachment of the mail to the background of the video network, comprising:
identifying whether the mail has an attachment;
when the mail has an attachment, uploading the attachment of the mail to the background of the video network;
the method further comprises the following steps:
and when the mail has no attachments, sending a message containing the information of the mail without attachments and the identification information to the background of the video network so that the background of the video network sends the new mail prompt message to the receiving terminal.
It can be understood that the message containing the identification information and the attachment storage address and the message containing the information that the mail has no attachment and the identification information are both flags that the sending terminal finishes sending the current mail, and the mail is in the process of sending before the sending terminal sends the message containing the identification information and the attachment storage address and the message containing the information that the mail has no attachment and the identification information. No matter the mail contains the attachment or the mail does not contain the attachment, the sending terminal sends the text information of the mail firstly through long connection, and the mail is guaranteed to be sent to a background of the video network in real time through the long connection. If the attachment and the text information are directly sent to the background of the video network together, the background of the video network needs to wait for response because the attachment is too large, and the background of the video network generates identification information based on the text information of the current mail, so that the text information and the attachment are ensured to be corresponding all the time in the process of sending the mail.
And the message containing the identification information and the attachment storage address and the message containing the information that the mail has no attachment and the identification information are also triggering conditions for generating a new mail prompt message by the background of the video network.
When the mail has the attachment, the background of the video network determines the text information according to the identification information, and then adds the attachment storage address sent by the identification information together into the text information, wherein the text information contains the complete information of the mail.
S203: receiving the identification information and the accessory storage address returned by the sending terminal, and adding the accessory storage address to the text message according to the identification information;
and the background of the video network receives the IDA005 and the attachment storage address and adds the attachment storage address MACA005 to the text information of the mail A.
S204: and storing the text information containing the attachment storage address into a mail list, and sending a new mail prompt message to the receiving terminal through long connection with the receiving terminal.
The text information including the complete information of the mail is saved in the mail list 101, and the information such as the title and the sending address of the mail can be read through the mail list. Because the text message contains the receiving address of the mail, the background of the video network can send the prompt message of the new mail to the corresponding receiving terminal according to the mail receiving address recorded in the text message.
Sending a new mail prompt message to the receiving terminal, including:
and determining the receiving terminal according to the receiving address, and sending the new mail prompt message to the receiving terminal.
When the mail has no attachment, the background of the video network determines the text information according to the identification information, at the moment, the text information already contains the complete information of the mail, the text information is stored in a mail list, a new mail prompt message is generated and sent to a receiving terminal.
The method further comprises the following steps:
when the mail sent by the sending terminal has no attachments, receiving a message which is returned by the sending terminal and contains the information that the mail has no attachments and the identification information;
and storing the text information to the mail list according to the identification information, and sending a new mail prompt message to the receiving terminal through long connection with the receiving terminal.
The receiving terminal receives the new mail prompt message, pops up the corresponding IU effect on the screen interface of the receiving terminal, and can add prompt tone to the IU effect to prompt the user to receive the new mail.
Referring to fig. 3, fig. 3 is a flowchart of method steps of a receiving terminal transmitting an email in a video network according to an embodiment of the present application.
The method is applied to a receiving terminal of a video networking mail transmission system, wherein the receiving terminal is connected with a video networking background, and the video networking background is connected with a sending terminal; the method comprises the following steps:
s301, responding to a new mail prompt message sent by the video network background through long connection, and requesting a mail list from the video network background;
if the receiving terminal generates a plurality of UI prompts according to the new mail prompt message sent by the background, the receiving terminal is triggered to generate the same list request in response to any UI prompt and sends the list request to the background of the video network.
The video network background sends new mail prompt information by utilizing the POST request through the long connection established with the receiving terminal, so that the receiving terminal can receive the new mail prompt information sent by the video network background no matter whether other programs are executed or not.
The user can respond to the new mail prompt message by clicking the IU effect on the screen of the receiving terminal, and the receiving terminal is triggered to request a mail list from the video networking background.
If the mail list of the background of the video network is established according to the receiving address, the receiving terminal can directly acquire the mail list established by the address of the receiving terminal by utilizing the GET request through long connection with the background of the video network and display the mail list on a screen. If the mail list of the background of the video network is established according to the sending address, the receiving terminal traverses the text information through a GET request, extracts information such as a title, a sending address, an information identification address and the like in the text information with the local address as the receiving address, and displays the information on a screen in a list form.
S302: determining a mail to be read according to the mail list, and sending a reading request to the background of the video network so that the background of the video network distributes the reading permission of the text information of the mail to be read to the receiving terminal; wherein the reading request carries the identification information;
the mail list lists information such as titles and sending addresses of all text messages, and a user can trigger the receiving terminal to generate a reading request by clicking the information such as the title and the sending address corresponding to the text message to be read and send the reading request to the background of the video network. The reading request generated by the receiving terminal contains the identification information ID A005 of the text information, and the background of the video network can directly determine the text information of the corresponding mail A through the identification information and distribute the reading authority of the text information to the receiving terminal.
It can be understood that the identification information of the mail is generated when the background receives the text information of the mail for the first time, the background can add the attachment storage address to the corresponding text information according to the identification information, and the receiving terminal can also read the corresponding text information according to the identification information.
The method further comprises the following steps:
responding to a reading request sent by the receiving terminal; wherein the reading request carries the identification information;
determining the text information according to the identification information;
and distributing the reading authority of the text information of the mail to be read to the receiving terminal.
S303: and reading the text information, and downloading the attachment through an attachment storage address in the text information.
The receiving terminal reads the text information by using the GET request through long connection and displays the text information on a screen interface of the receiving terminal, and a user can click an attachment storage address to download an attachment when reading the body of the mail.
In one embodiment of the present application, the attachment may be a case file in WORD form, an attendance list in EXCLE form, or a case image, etc.
The mail transmission method in the video network, which is provided by the application, provides a simple mail transmission method for ensuring the safety of the system on the premise of shortening the mailbox building period without using a third-party mailbox development tool, reduces the size of the text information of the mail, does not change the text content of the text information, such as marks of fonts, sizes, colors and the like, and further converts attachments in WORD and EXCLE formats into HTML formats by a background of the video network for simply and quickly uploading, downloading and displaying the attachments, so that a receiving terminal can conveniently open the files. Under the same network condition and hardware condition, the android terminal has the advantages of high file opening speed in the HTML format, simplicity in operation and no need of downloading other readers.
Uploading the attachment of the mail sent by the sending terminal to a cloud platform, wherein the uploading comprises:
if the attachment is a document attachment, converting the document attachment into an html static page, and uploading the html static page to the cloud platform;
and if the accessory is an audio and video accessory, uploading the audio and video accessory to the cloud platform.
The receiving terminal reads the text information and downloads the attachment through an attachment storage address in the text information, and the method comprises the following steps:
if the attachment is a document attachment, directly displaying the downloaded html static page on the text information page;
and if the accessory is the audio and video accessory, skipping a player to play the downloaded audio and video accessory.
When the attachment is a document attachment in WORD or EXCLE format, a user clicks an attachment storage address to download the document attachment, a downloaded html static page is directly displayed on a page of document information in WEBVIEW, and when the attachment is an audio/video attachment, the user clicks the attachment storage address to download the audio/video attachment, and jumps to a player to play the downloaded audio/video attachment in any existing mode.
The method for mail transmission in the video network can be used for mail transmission among medical personnel and can also be used for issuing medical tasks, such as tasks issued by a nurse station. At this time, the android terminal of the nurse station is also the sending terminal. In some embodiments of the present application, push messages may be tagged according to the sending address to distinguish task mail from other mail.
The sending terminal comprises a task terminal and a using terminal. After the background receives the text message, marking the new mail prompt message according to the sending address;
and the receiving terminal identifies the mark of the new mail prompt message, judges whether the sending terminal of the new mail is a task terminal or a use terminal, and respectively generates different UI prompts for the task terminal and the use terminal.
And the receiving terminal identifies the sending terminal of the mail according to the new mail prompt message, and is also an analysis process of the socket long connection. Specifically, if the transmission address of the mail is the address of the android terminal of the nurse station, the type of the push message is marked as 0, and if the transmission address of the mail is the address of the android terminal used by other medical staff, the type of the push message is marked as 1.
And the receiving terminal respectively generates different UI prompts according to the result of analyzing the push message connected by the socket so that the medical staff can select the mail to be read as required.
The method and the device have the advantages that long connection is used as a basis of message transmission, the POST request and the GET request are used for sending messages or obtaining messages, under the condition that a third-party mailbox building tool is not used for accessing an external network, the ETP protocol is replaced by the POST request and the GET request of the http protocol, a new mail prompt message is sent in a message pushing mode to replace the POP protocol, meanwhile, the message pushing can wake up a processor which is short in sleep, the functions of sending mails, reminding of the mail messages and the like are completed, the terminal and a background can establish long connection, the POST request sends the push messages and the like, operation is fast and convenient, and a large amount of manpower and material resources are not needed.
According to the embodiment of the application, the mechanism for preventing the processors from sleeping is added at the receiving terminal and the sending terminal, and long connection between the receiving terminal and the sending terminal and the background of the video network is established, so that the receiving terminal, the sending terminal and the background can transmit messages in real time, and the fact that the receiving terminal can be informed in time when the sending terminal sends mails is guaranteed by the background of the video network.
The embodiment of the application also displays the text information of the mails stored in the background in a mail list mode, so that the condition that all the mail stores are sent to the receiving terminal is avoided, the operation pressure of the receiving terminal is reduced, and the condition that a user can select the mails to be read at the receiving terminal is ensured. The identification information in the mail list is used as a specific identification of the mail, so that the receiving terminal can directly read the text information in the background of the video network, and the identification information is also a key that the storage address of the attachment in the cloud platform can be added to the text information stored in the background.
The HTTP request used in the embodiment of the present application includes a POST request, a GET request, and the like, but is not limited to the listed request manner.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Based on the same invention concept, the embodiment of the application provides a device for mail transmission in networking, which is applied to a video networking background of a video networking mail transmission system, wherein the video networking background is respectively connected with a sending terminal and a receiving terminal; the device comprises:
referring to fig. 4, fig. 4 is a schematic diagram of an apparatus for background mail transmission in a video network in the video network according to the embodiment of the present application.
A textmessage receiving module 401, configured to receive text messages of the email through long connection with the sending terminal, generate identification information, and return the identification information to the sending terminal;
an attachment storageaddress obtaining module 402, configured to upload an attachment of the email sent by the sending terminal to a cloud platform, and return an attachment storage address returned by the cloud platform to the sending terminal, where the attachment storage address is a storage address of the attachment in the cloud platform;
an attachment storageaddress adding module 403, configured to receive the identifier information and the attachment storage address returned by the sending terminal, and add the attachment storage address to the text message according to the identifier information;
a first textinformation saving module 404, configured to save the text information including the attachment storage address to a mail list, and send a new mail prompt message to the receiving terminal through long connection with the receiving terminal.
Optionally, the apparatus further comprises:
an attachment-free message receiving module, configured to receive, when the mail sent by the sending terminal has no attachment, a message including information that the mail has no attachment and the identification information, where the message is returned by the sending terminal;
and the second text information storage module is used for storing the text information to the mail list according to the identification information and sending a new mail prompt message to the receiving terminal through long connection with the receiving terminal.
Optionally, the text information includes a sending address and a receiving address; the device further comprises:
a mailing list creating module, configured to create the mailing list according to the sending address or the receiving address;
the first text information storage module comprises:
and the receiving terminal determining submodule is used for determining the receiving terminal according to the receiving address and sending the new mail prompting message to the receiving terminal.
Optionally, the accessory storage address obtaining module includes:
the file attachment uploading sub-module is used for converting the file attachment into an html static page and uploading the html static page to the cloud platform when the attachment is the file attachment;
and the audio and video accessory uploading sub-module is used for uploading the audio and video accessory to the cloud platform when the accessory is the audio and video accessory.
Optionally, the apparatus further comprises:
a reading request response module, configured to respond to a reading request sent by the receiving terminal; wherein the reading request carries the identification information;
the text information determining module is used for determining the text information according to the identification information;
and the reading permission distribution module is used for distributing the reading permission of the text information of the mail to be read to the receiving terminal.
Referring to fig. 5, fig. 5 is a schematic diagram of an apparatus for transmitting a mail by a sending terminal in a video network according to an embodiment of the present application.
Another embodiment of the present application provides a device for mail transmission in a video network, which is applied to a sending terminal of a video network mail transmission system, wherein the sending terminal is connected to a video network background, and the video network background is connected to a receiving terminal; the device comprises:
the textinformation sending module 501 is configured to send the text information of the email to the background of the video networking through long connection with the background of the video networking;
an identificationinformation receiving module 502, configured to receive identification information returned by the background of the video network, where the identification information is generated according to the text information;
anattachment uploading module 503, configured to upload an attachment of the email to the video networking backend, so as to store the attachment of the email to a cloud platform through the video networking backend;
an accessory storageaddress receiving module 504, configured to receive an accessory storage address returned by the video networking background, where the accessory storage address is a storage address of the accessory in the cloud platform;
a firstmessage sending module 505, configured to send a message including the identification information and the attachment storage address to the video networking backend, so that the video networking backend adds the attachment storage address to the text information according to the identification information, and sends a new email notification message to the receiving terminal.
Optionally, the apparatus further comprises:
and the first long connection establishing module is used for preventing the processor from sleeping by utilizing a bright screen process and establishing long connection with the background of the video network.
Optionally, the accessory upload module comprises:
the attachment identification submodule is used for identifying whether the mail has attachments or not;
the attachment uploading sub-module is used for uploading the attachment of the mail to the background of the video network when the mail has the attachment;
the device further comprises:
and the second message sending module is used for sending a message containing the information that the mail has no attachments and the identification information to the background of the video network when the mail has no attachments so as to enable the background of the video network to send the new mail prompt message to the receiving terminal.
Referring to fig. 6, fig. 6 is a schematic diagram of an apparatus for transmitting an email by a receiving terminal in a video network according to an embodiment of the present application.
Another embodiment of the present application provides a device for mail transmission in a video network, which is applied to a receiving terminal of a video network mail transmission system, wherein the receiving terminal is connected to a video network background, and the video network background is connected to a sending terminal; the device comprises:
a maillist request module 601, configured to respond to a new mail prompt message sent by the video networking backend through long connection, and request a mail list from the video networking backend;
a text information readingrequest module 602, configured to determine a mail to be read according to the mail list, and send a reading request to the video network backend, so that the video network backend allocates a reading permission of the text information of the mail to be read to the receiving terminal; wherein the reading request carries the identification information;
anattachment downloading module 603, configured to read the text message, and download the attachment through an attachment storage address in the text message.
Optionally, the apparatus further comprises:
and the second long connection establishing module is used for preventing the processor from sleeping by utilizing a bright screen process and establishing long connection with the background of the video network.
Optionally, the accessory download module comprises:
the document attachment downloading sub-module is used for directly displaying a downloaded html static page on the text information page when the attachment is a document attachment;
and the audio and video accessory downloading submodule is used for jumping a player to play the downloaded audio and video accessory when the accessory is the audio and video accessory.
Referring to fig. 7, fig. 7 is a schematic diagram of information of a sending terminal sending a mail according to an embodiment of the present application.
According to the embodiment, the sending terminal and the receiving terminal complete information interaction with the background of the video networking, the sending terminal sends the mail to the background of the video networking, the background of the video networking temporarily stores the text information and the attachment storage address of the mail in a mail list mode, the cloud platform temporarily stores the attachment of the mail and sends the new mail prompt message to the receiving terminal, and the receiving terminal obtains the text information and the attachment of the mail from the background of the video networking according to the mail list.
The sending terminal is an android terminal for writing or replying the mail, sends text information containing the mail title, the text content, the sending address and the receiving address to the background, and uploads the attachment to the background in a streaming form after receiving the identification information returned by the background.
Video networking background: and generating identification information corresponding to the text information, returning the identification information to the sending terminal, converting the attachment in the document format into a static page, uploading the static page to the cloud platform, acquiring an attachment storage address, directly uploading the attachment in the audio and video format to the cloud platform, acquiring the attachment storage address, and returning the attachment storage address to the sending terminal so that the sending terminal can enable the attachment storage address to correspond to the mail to which the attachment storage address belongs.
Referring to fig. 8, fig. 8 is a schematic diagram of information of a receiving terminal receiving a mail according to an embodiment of the present application.
Video networking background: and sending a new mail prompt message to the receiving terminal through long connection, and distributing the reading permission of the text information requested to be read to the receiving terminal.
The receiving terminal is an android terminal which receives the new mail prompt message, generates a UI specific effect on the received new mail prompt message, or adds a prompt tone to the UI specific effect to remind a user to check the mail. The method comprises the steps of obtaining a mail list by clicking a UI specific effect, determining text information of a mail to be read through the mail list, reading the text information, displaying information such as text content and a mail title on a screen, downloading an attachment through an attachment address, displaying a static page by a document attachment in a network view interface, giving a downloading progress bar by an audio and video attachment, and skipping to a player for playing after downloading is completed.
For the device embodiment of mail transmission in the video network, since it is basically similar to the method embodiment of mail transmission in the video network, the description is relatively simple, and for the relevant points, refer to the partial description of the method embodiment of mail transmission in the video network.
Based on the same inventive concept, another embodiment of the present application provides a readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps in the method for mail transmission in a video network according to any of the above embodiments of the present application.
Based on the same inventive concept, another embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, the electronic device implements the steps of the method for transmitting mails in a video network according to any of the above embodiments of the present application.
The video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, Personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
To better understand the embodiments of the present invention, the following description refers to the internet of view:
some of the technologies applied in the video networking are as follows:
network Technology (Network Technology)
Network technology innovation in video networking has improved the traditional Ethernet (Ethernet) to face the potentially huge first video traffic on the network. Unlike pure network Packet Switching (Packet Switching) or network Circuit Switching (Circuit Switching), the Packet Switching is adopted by the technology of the video networking to meet the Streaming requirement. The video networking technology has the advantages of flexibility, simplicity and low price of packet switching, and simultaneously has the quality and safety guarantee of circuit switching, thereby realizing the seamless connection of the whole network switching type virtual circuit and the data format.
Switching Technology (Switching Technology)
The video network adopts two advantages of asynchronism and packet switching of the Ethernet, eliminates the defects of the Ethernet on the premise of full compatibility, has end-to-end seamless connection of the whole network, is directly communicated with a user terminal, and directly bears an IP data packet. The user data does not require any format conversion across the entire network. The video networking is a higher-level form of the Ethernet, is a real-time exchange platform, can realize the real-time transmission of the whole-network large-scale high-definition video which cannot be realized by the existing Internet, and pushes a plurality of network video applications to high-definition and unification.
Server Technology (Server Technology)
The server technology on the video networking and unified video platform is different from the traditional server, the streaming media transmission of the video networking and unified video platform is established on the basis of connection orientation, the data processing capacity of the video networking and unified video platform is independent of flow and communication time, and a single network layer can contain signaling and data transmission. For voice and video services, the complexity of video networking and unified video platform streaming media processing is much simpler than that of data processing, and the efficiency is greatly improved by more than one hundred times compared with that of a traditional server.
Storage Technology (Storage Technology)
The super-high speed storage technology of the unified video platform adopts the most advanced real-time operating system in order to adapt to the media content with super-large capacity and super-large flow, the program information in the server instruction is mapped to the specific hard disk space, the media content is not passed through the server any more, and is directly sent to the user terminal instantly, and the general waiting time of the user is less than 0.2 second. The optimized sector distribution greatly reduces the mechanical motion of the magnetic head track seeking of the hard disk, the resource consumption only accounts for 20% of that of the IP internet of the same grade, but concurrent flow which is 3 times larger than that of the traditional hard disk array is generated, and the comprehensive efficiency is improved by more than 10 times.
Network Security Technology (Network Security Technology)
The structural design of the video network completely eliminates the network security problem troubling the internet structurally by the modes of independent service permission control each time, complete isolation of equipment and user data and the like, generally does not need antivirus programs and firewalls, avoids the attack of hackers and viruses, and provides a structural carefree security network for users.
Service Innovation Technology (Service Innovation Technology)
The unified video platform integrates services and transmission, and is not only automatically connected once whether a single user, a private network user or a network aggregate. The user terminal, the set-top box or the PC are directly connected to the unified video platform to obtain various multimedia video services in various forms. The unified video platform adopts a menu type configuration table mode to replace the traditional complex application programming, can realize complex application by using very few codes, and realizes infinite new service innovation.
Networking of the video network is as follows:
the video network is a centralized control network structure, and the network can be a tree network, a star network, a ring network and the like, but on the basis of the centralized control node, the whole network is controlled by the centralized control node in the network.
As shown in fig. 9, the video network is divided into an access network and a metropolitan network.
The devices of the access network part can be mainly classified into 3 types: node server, access switch, terminal (including various set-top boxes, coding boards, memories, etc.). The node server is connected to an access switch, which may be connected to a plurality of terminals and may be connected to an ethernet network.
The node server is a node which plays a centralized control function in the access network and can control the access switch and the terminal. The node server can be directly connected with the access switch or directly connected with the terminal.
Similarly, devices of the metropolitan network portion may also be classified into 3 types: a metropolitan area server, a node switch and a node server. The metro server is connected to a node switch, which may be connected to a plurality of node servers.
The node server is a node server of the access network part, namely the node server belongs to both the access network part and the metropolitan area network part.
The metropolitan area server is a node which plays a centralized control function in the metropolitan area network and can control a node switch and a node server. The metropolitan area server can be directly connected with the node switch or directly connected with the node server.
Therefore, the whole video network is a network structure with layered centralized control, and the network controlled by the node server and the metropolitan area server can be in various structures such as tree, star and ring.
The access network part can form a unified video platform (the part in the dotted circle), and a plurality of unified video platforms can form a video network; each unified video platform may be interconnected via metropolitan area and wide area video networking.
Video networking device classification
1.1 devices in the video network of the embodiment of the present invention can be mainly classified into 3 types: server, exchanger (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, code board, memory, etc.). The video network as a whole can be divided into a metropolitan area network (or national network, global network, etc.) and an access network.
1.2 wherein the devices of the access network part can be mainly classified into 3 types: node server, access exchanger (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, coding board, memory, etc.).
The specific hardware structure of each access network device is as follows:
a node server:
as shown in fig. 10, the system mainly includes anetwork interface module 1001, aswitching engine module 1002, aCPU module 1003, and adisk array module 1004;
thenetwork interface module 1001, theCPU module 1003 and thedisk array module 1004 enter theswitching engine module 1002; theswitching engine module 1002 performs an operation of looking up the address table 1005 on the incoming packet, thereby obtaining the direction information of the packet; and stores the packet in a queue of acorresponding packet buffer 1006 according to the packet's steering information; if the queue of thepacket buffer 1006 is nearly full, it is discarded; theswitching engine module 1002 polls all packet buffer queues and forwards if the following conditions are met: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero. Thedisk array module 1004 mainly implements control over the hard disk, including initialization, read-write and other operations; theCPU module 1003 is mainly responsible for protocol processing with an access switch and a terminal (not shown in the figure), configuring an address table 1005 (including a downlink protocol packet address table, an uplink protocol packet address table, and a data packet address table), and configuring thedisk array module 1004.
The access switch:
as shown in fig. 11, the network interface module mainly includes a network interface module (a downlinknetwork interface module 1101, an uplink network interface module 1102), aswitching engine module 1103 and aCPU module 1104;
wherein, the packet (uplink data) coming from the downlink network interface module 1101 enters the packet detection module 1105; the packet detection module 1105 detects whether the Destination Address (DA), the Source Address (SA), the packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id) and enters the switching engine module 1103, otherwise, discards the stream identifier; incoming packets (downstream data) from the upstream network interface module 1102 enter the switching engine module 1103; the incoming data packet of the CPU module 1104 enters the switching engine module 1103; the switching engine module 1103 performs an operation of looking up the address table 1106 on the incoming packet, thereby obtaining the direction information of the packet; if the packet entering the switching engine module 1103 is from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 1107 in association with the stream-id; if the queue of the packet buffer 1107 is nearly full, it is discarded; if the packet entering the switching engine module 1103 is not from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 1107 according to the packet steering information; if the queue of the packet buffer 1107 is nearly full, it is discarded.
The switchingengine block 1103 polls all packet buffer queues and may include two cases:
if the queue is from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queued packet counter is greater than zero; 3) obtaining a token generated by a code rate control module;
if the queue is not from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero.
Therate control module 1108 is configured by theCPU module 1104 to generate tokens for packet buffer queues from all downstream network interfaces to upstream network interfaces at programmable intervals to control the rate of upstream forwarding.
TheCPU module 1104 is mainly responsible for protocol processing with the node server, configuration of the address table 1106, and configuration of the coderate control module 1108.
Ethernet protocol conversion gateway:
As shown in fig. 12, the system mainly includes a network interface module (a downlinknetwork interface module 1201, an uplink network interface module 1202), aswitching engine module 1203, aCPU module 1204, apacket detection module 1205, arate control module 1208, an address table 1206, apacket buffer 1207, aMAC adding module 1209, and aMAC deleting module 1210.
Wherein, the data packet coming from the downlinknetwork interface module 1201 enters thepacket detection module 1205; thepacket detection module 1205 detects whether the ethernet MAC DA, the ethernet MAC SA, the ethernet length or frame type, the video network destination address DA, the video network source address SA, the video network packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id); then, theMAC deletion module 1210 subtracts MAC DA, MAC SA, length orframe type (2byte) and enters the corresponding receiving buffer, otherwise, discards the result;
the downlinknetwork interface module 1201 detects the sending buffer of the port, if a packet exists, the ethernet MAC DA of the corresponding terminal is known according to the destination address DA of the packet, and the ethernet MAC DA of the terminal, the MACSA of the ethernet coordination gateway, and the ethernet length or frame type are added and sent.
The other modules in the ethernet protocol gateway function similarly to the access switch.
A terminal:
the system mainly comprises a network interface module, a service processing module and a CPU module; for example, the set-top box mainly comprises a network interface module, a video and audio coding and decoding engine module and a CPU module; the coding board mainly comprises a network interface module, a video and audio coding engine module and a CPU module; the memory mainly comprises a network interface module, a CPU module and a disk array module.
1.3 devices of the metropolitan area network part can be mainly classified into 2 types: node server, node exchanger, metropolitan area server. The node switch mainly comprises a network interface module, a switching engine module and a CPU module; the metropolitan area server mainly comprises a network interface module, a switching engine module and a CPU module.
2. Video networking packet definition
2.1 Access network packet definition
The data packet of the access network mainly comprises the following parts: destination Address (DA), Source Address (SA), reserved bytes, payload (pdu), CRC.
As shown in the following table, the data packet of the access network mainly includes the following parts:
wherein:
the Destination Address (DA) is composed of 8 bytes (byte), the first byte represents the type of the data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), there are 256 possibilities at most, the second byte to the sixth byte are metropolitan area network addresses, and the seventh byte and the eighth byte are access network addresses;
the Source Address (SA) is also composed of 8 bytes (byte), defined as the same as the Destination Address (DA);
the reserved byte consists of 2 bytes;
the payload part has different lengths according to different types of datagrams, and is 64 bytes if the datagram is various types of protocol packets, and is 32+1024 or 1056 bytes if the datagram is a unicast packet, of course, the length is not limited to the above 2 types;
the CRC consists of 4 bytes and is calculated in accordance with the standard ethernet CRC algorithm.
2.2 metropolitan area network packet definition
The topology of a metropolitan area network is a graph and there may be 2, or even more than 2, connections between two devices, i.e., there may be more than 2 connections between a node switch and a node server, a node switch and a node switch, and a node switch and a node server. However, the metro network address of the metro network device is unique, and in order to accurately describe the connection relationship between the metro network devices, parameters are introduced in the embodiment of the present invention: a label to uniquely describe a metropolitan area network device.
In this specification, the definition of the Label is similar to that of the Label of MPLS (Multi-Protocol Label Switch), and assuming that there are two connections between the device a and the device B, there are 2 labels for the packet from the device a to the device B, and 2 labels for the packet from the device B to the device a. The label is classified into an incoming label and an outgoing label, and assuming that the label (incoming label) of the packet entering the device a is 0x0000, the label (outgoing label) of the packet leaving the device a may become 0x 0001. The network access process of the metro network is a network access process under centralized control, that is, address allocation and label allocation of the metro network are both dominated by the metro server, and the node switch and the node server are both passively executed, which is different from label allocation of MPLS, and label allocation of MPLS is a result of mutual negotiation between the switch and the server.
As shown in the following table, the data packet of the metro network mainly includes the following parts:
| DA | SA | Reserved | label (R) | Payload | CRC |
Namely Destination Address (DA), Source Address (SA), Reserved byte (Reserved), tag, payload (pdu), CRC. The format of the tag may be defined by reference to the following: the tag is 32 bits with the upper 16 bits reserved and only the lower 16 bits used, and its position is between the reserved bytes and payload of the packet.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The method, apparatus, storage medium and device for mail transmission in video network provided by the present invention are described in detail above, and a specific example is applied in the present document to illustrate the principle and implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.