CN102217282B - Method and device for dynamically closing/opening function of SCTP socket listening connection - Google Patents

Method and device for dynamically closing/opening function of SCTP socket listening connection Download PDF

Info

Publication number
CN102217282B
CN102217282B CN200980146352.5A CN200980146352A CN102217282B CN 102217282 B CN102217282 B CN 102217282B CN 200980146352 A CN200980146352 A CN 200980146352A CN 102217282 B CN102217282 B CN 102217282B
Authority
CN
China
Prior art keywords
socket
application layer
client
predetermined condition
transport layer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN200980146352.5A
Other languages
Chinese (zh)
Other versions
CN102217282A (en
Inventor
王爱军
李敬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alcatel Lucent SAS
Alcatel Optical Networks Israel Ltd
Original Assignee
Alcatel Optical Networks Israel Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alcatel Optical Networks Israel Ltd filed Critical Alcatel Optical Networks Israel Ltd
Publication of CN102217282A publication Critical patent/CN102217282A/en
Application granted granted Critical
Publication of CN102217282B publication Critical patent/CN102217282B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/326Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the transport layer [OSI layer 4]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a method and controlling device for closing the function of socket listening connection on the basis of maintaining the established association in a server running stream control transmission protocol (SCTP) in communication network. The server judges in application layer whether the association state of the socket of the server satisfies the first predetermined condition, and if the association state satisfies the first predetermined condition, the application layer informs transport layer to reject the connection request from the client. Preferably, the server judges in the application layer whether the association state of the socket of the server satisfies the second predetermined condition, and if the association state satisfies the second predetermined condition, the application layer informs the transport layer to forward the connection request received from the client to the application layer. Applying the technical solution of the invention, the attack of malicious access can be avoided and the system efficiency can be improved to avoid the waste of resources.

Description

The dynamically method and apparatus of closing/opening function of SCTP socket listening connection
Technical field
The present invention relates to communication network, relate in particular to the server that moves Stream Control Transmission Protocol in communication network.
Background technology
SCTP (Stream Control Transmission Protocol, SCTP) be at IP network transmitting signaling and the transport layer protocol being proposed by the signalling working group (SIGTRAN) of IETF, its in RFC2960 and RFC4960 by specific definition.SCTP and TCP/UDP belong to transport layer protocol.On the one hand, SCTP is similar to TCP, can between two end points, provide stable, orderly data delivery service, and on the other hand, SCTP is similar to UDP, can protected data message boundaries.But different from TCP and UDP, SCTP provides these incomes by orderly or unordered many hosts (Multi-homing) and multithread (Multi-streaming) function, these two kinds of functions all can improve availability.
SCTP provides the interface modes of two types: one is socket (one-to-one socket) one to one, and another kind is one-to-many socket (one-to-many socket).In socket one to one, the corresponding SCTP association of each socket, and in one-to-many socket, on a socket, can there are multiple SCTP associations simultaneously, this socket is also used to monitor new connection request simultaneously.
The socket of one-to-many style to programmer provide can be need not manage a large amount of socket handles (socket descriptor) in the situation that the ability of writing server.Wherein, a single socket handle just can represent multiple SCTP associations, and meanwhile this socket is also used to monitor new connection request.If but the association that all expectations of this socket are set up is all established, the application layer of server end does not think to receive any new connection request from client again, so in the prior art, can only stop the function that its monitoring connects by closing this socket.But associated with those SCTP that set up what adopt is same socket handle because the socket of server end is monitored the function connecting, in closing the function of socket monitoring connection, those SCTP associations of having set up also can disconnect so.
As shown in Figure 1, local server 1 ' with the client 21 ' of far-end, client 22 ', and client 23 ' has been set up SCTP association, meanwhile, the socket of server 1 ' is still in monitoring the state connecting, and the connection request of any client from far-end can transfer to the application layer of this server 1 ' end.If now the socket of server 1 ' expect set up SCTP association all set up, for example, with client 21 ', client 22 ', and client 23 ' is set up SCTP association, and the application layer of this server 1 ' end does not think to receive the connection request of any client from far-end again, so, this server 1 ' can only be realized the function of closing monitoring connection by closing this socket.But, just as shown in Figure 1, once the socket of server 1 ' be closed, so, server 1 ' before with the client 21 ' of far-end, client 22 ', and the SCTP association that client 23 ' is set up has also disconnected.
Summary of the invention
For solving above-mentioned shortcoming of the prior art, the present invention proposes in a kind of server of the operation Stream Control Transmission Protocol at communication network method and the control device of on the associated basis of having set up, closing socket and monitor the function connecting for maintaining.In the present invention, server judges whether first predetermined condition of association status on the socket of book server in application layer, if described association status first predetermined condition, described application layer notification transmission layer refusal is from the connection request of client.Preferably, server judges whether second predetermined condition of association status on the described socket of book server in described application layer, if described association status second predetermined condition, described application layer notifies described transport layer that the connection request from described client receiving is transmitted to described application layer.
According to a first aspect of the invention, the method of closing socket on the associated basis of having set up and monitor the function connecting for maintaining is provided in a kind of server of the operation Stream Control Transmission Protocol at communication network, described socket is one-to-many socket, wherein, comprise the following steps: a. judges whether first predetermined condition of association status on the socket of book server in application layer; If b. described association status first predetermined condition, described application layer notification transmission layer refusal is from the connection request of client.
Preferably, further comprising the steps of after described step b: c. judges whether second predetermined condition of association status on the described socket of book server in described application layer; If d. described association status second predetermined condition, described application layer notifies described transport layer that the connection request from described client receiving is transmitted to described application layer.
Preferably, described step b is further comprising the steps of: if the described association status first predetermined condition of b1., the first control parameter is passed to described transport layer by described application layer; B2. based on this first control parameter, described transport layer refusal is from the connection request of described client.
Preferably, described step b1 also comprises: if described association status first predetermined condition, described application layer passes to described transport layer by the sctp_opt_info () function that calls described transport layer and provide by the first control parameter.
Preferably, described steps d is further comprising the steps of: if the described association status second predetermined condition of d1., described application layer is controlled parameter by described second and passed to described transport layer; D2. based on this second control parameter, the connection request from described client receiving is transmitted to described application layer by described transport layer.
Preferably, described steps d 1 also comprises: if described association status second predetermined condition, described application layer is controlled parameter by the sctp_opt_info () function that calls described transport layer and provide by described second and passed to described transport layer.
According to a second aspect of the invention, the control device of cutting out socket on the associated basis of having set up and monitor the function connecting for maintaining is provided in a kind of server of the operation Stream Control Transmission Protocol at communication network, described socket is one-to-many socket, wherein, comprise: the first judgment means, for judge whether first predetermined condition of association status on the socket of book server in application layer; The first notifying device, if for described association status first predetermined condition, the connection request from client at described application layer notification transmission layer refusal.
Preferably, described control device also comprises: the second judgment means, for judge whether second predetermined condition of association status on the described socket of book server in described application layer; The second notifying device, if for described association status second predetermined condition, notifies described transport layer that the connection request from described client receiving is transmitted to described application layer in described application layer.
Preferably, described the first notifying device also comprises: the first transfer device, if for described association status first predetermined condition, passes to described transport layer from described application layer by the first control parameter; Refusal device, for based on this first control parameter, refuses the connection request from described client in described transport layer.
Preferably, if described the first transfer device is also for described association status first predetermined condition, by the sctp_opt_info () function that calls described transport layer and provide, the first control parameter is passed to described transport layer in described application layer.
Preferably, described the second notifying device also comprises: the second transfer device, if for described association status second predetermined condition, control parameter from described application layer by described second and pass to described transport layer; Retransmission unit, for based on this second control parameter, is transmitted to described application layer in described transport layer by the connection request from described client receiving.
Preferably, if described the second transfer device is also for described association status second predetermined condition, controls parameter by the sctp_opt_info () function that calls described transport layer and provide by described second in described application layer and pass to described transport layer.
Preferably, described the first predetermined condition comprises any one in the following: the associated number of having set up on-described socket is greater than the first predetermined association numerical value; The number of the connection request from described client that-described socket is received within a scheduled time is greater than a predetermined request numerical value; The client of the transmission connection request that-described socket receives is not in the list of intended client end.
Preferably, described the second predetermined condition comprises: the associated number of having set up on described socket is less than the second predetermined association numerical value.
In the present invention, if wishing to close certain socket, the application layer of server end monitors the function connecting, can in Stream Control Transmission Protocol stack, define so a new logo, by parameter being passed to transport layer from application layer, this mark be carried out to assignment to realize the function of closing this socket monitoring connection on the basis that maintains the SCTP association of having set up.Certainly, as required, this socket is monitored the function connecting and can be again opened.After the function that this socket monitoring connects is closed, connection request from client no longer further passes to application layer in the transport layer of server end with regard to being directly rejected, so not only can avoid the attack of malice access, and the efficiency that can improve system is to avoid the waste of resource.
Brief description of the drawings
By reading the detailed description that non-limiting example is done of doing with reference to the following drawings, other features, objects and advantages of the present invention will become more apparent:
Fig. 1 shows according to closing socket in the server of the operation Stream Control Transmission Protocol at communication network of prior art and monitors the network diagram of function connecting;
Fig. 2 shows the network diagram of closing the function of socket monitoring connection on the associated basis of having set up according to maintaining in the server of the operation Stream Control Transmission Protocol at communication network of the present invention;
Fig. 3 shows according to maintaining in the server of the operation Stream Control Transmission Protocol at communication network of the present invention and on the associated basis of having set up, closes and the method flow diagram that reopens socket and monitor the function being connected; And
Fig. 4 shows according to maintaining in the server of the operation Stream Control Transmission Protocol at communication network of the present invention and on the associated basis of having set up, closes and the structured flowchart that reopens socket and monitor the control device of the function being connected.
In accompanying drawing, identical or similar accompanying drawing mark represents identical or similar parts.
Embodiment
Describe the present invention referring to accompanying drawing:
Fig. 2 shows the network diagram of closing the function of socket monitoring connection on the associated basis of having set up according to maintaining in the server of the operation Stream Control Transmission Protocol at communication network of the present invention.
There is shown server 1, client 21, client 22 and client 23.Those skilled in the art will be understood that it is only to describe as an example of 3 clients example herein, and in concrete application, server 1 can be with to appoint multiple clients to set up SCTP associated.In figure, server 1 and client 21, the communication of client 22 and client 23 is based on SCTP transport layer protocol.
In Fig. 2, first, certain socket that we suppose server 1 with client 21, client 22 and client 23 have been set up SCTP association.About this socket how with client 21, it is existing in prior art that client 22 and client 23 are set up SCTP association, this is that those skilled in the art will be understood that, therefore not to repeat here.
Although this socket with client 21, client 22 and client 23 have been set up SCTP association,, this socket is monitored the function connecting still in open mode, this socket is still for monitoring the new connection request from client.If it is associated that certain client wish and this socket of server 1 of far-end are set up SCTP, the transport layer of this server 1 end will receive the connection request sending from this client, and subsequently, this connection request can pass to application layer by transport layer.Application layer receives after this connection request, judges whether to accept this connection request, if accept this connection request, to set up SCTP associated with the client of sending this connection request, otherwise refusal is from the connection request of this client.
This socket of server 1 and client 21, client 22 and client 23 have been set up after SCTP association, if the application layer of server 1 end does not wish to receive any connection request from client again, this application layer will be refused the connection request from client by notification transmission layer, thus the function that the monitoring of this socket of closing server 1 connects.Specifically, application layer can set to realize by transformation parameter the effect of the function of closing this socket monitoring connection to reach the mark of the function with this socket monitoring connection of close/open to newly definition in its host-host protocol to transport layer.
It should be noted that, this socket has been closed and has been monitored after the function connecting, and originally and client 21, the SCTP association that client 22 and client 23 are set up is still maintained.
Close and monitored after the function connecting when this socket of server 1, be sent to from the connection request of any client after the transport layer of server 1 end all and will be directly rejected and no longer further pass to application layer in this transport layer.
Certainly, the function that the monitoring of this socket of server 1 connects can be opened again, thereby makes the application layer of server 1 end can again receive the connection request from client, thereby to set up SCTP associated with new client.
Preferably, knowing when application layer SCTP that this socket sets up with client originally has after one or more associated disconnections in associated, can notification transmission layer disconnect from these connection request that associated client sends again and pass to application layer what receive, so that this socket is again with those clients, to set up SCTP associated.
Be described in detail referring to Fig. 3 the method for how to close the function being connected with the monitoring of socket that reopens this server in conjunction with Fig. 2 to moving the server of Stream Control Transmission Protocol in the present invention on the basis that maintains the SCTP association of having set up.
Fig. 3 shows according to maintaining in the server of the operation Stream Control Transmission Protocol at communication network of the present invention and on the associated basis of having set up, closes and the method flow diagram that reopens socket and monitor the function being connected.Concrete, communicating by letter based on SCTP transport layer protocol in the communication network that Fig. 3 relates between server and client.
In order to realize function of the present invention, need in existing Stream Control Transmission Protocol stack, define a SCTP_ENABLE_LISTENING mark.If this mark is set to 1, the function that monitoring of corresponding socket connects is opened, if this mark is set to 0, the function that monitoring of corresponding socket connects is closed.Certainly, those skilled in the art also can be set to SCTP_ENABLE_LISTENING mark the function that the monitoring of the corresponding socket of 1 expression connects and be closed, and this mark is set to the function that the monitoring of the corresponding socket of 0 expression connects and is opened.
As to related in the description of Fig. 2, for the related communication system of Fig. 3, certain socket that we also suppose server 1 with client 21, client 22 and client 23 have been set up SCTP association.It should be noted that, in initial condition, even this socket with client 21, client 22 and client 23 have been set up SCTP association, but, the function connecting due to the monitoring of this socket is still in open mode, and this socket is still for monitoring the new connection request from client.
Hereinafter with reference to the flow chart shown in Fig. 3, server 1 is closed this socket and monitored the function connecting and reopen it and monitor the function connecting and be described in detail maintaining on the associated basis of having set up.
First,, in step S11, server 1 judges whether first predetermined condition of association status on this socket of book server in application layer.
Concrete, this server 1 can judge whether the associated number of having set up on this socket is greater than the first predetermined association numerical value in application layer.
For example, if predefined this first predetermined association numerical value is 5, this server 1 judges in application layer whether the associated number of having set up on this socket is greater than 5 so.
If the associated number of having set up on this socket is greater than 5, so, the application layer of server 1 can determine the function of the monitoring connection of closing this socket.
This server 1 also can judge whether the number of the connection request from client that this socket receives within a scheduled time is greater than a predetermined request numerical value in application layer.
Preferably, this scheduled time scope can be a shorter time period, for example, and 60 seconds.This predetermined request numerical value can be 10.
If this socket of server 1 receives a large amount of connection requests from client one side within a shorter time period, can think that this server 1 is just being subject to malice and is connecting attack.So, the application layer of server 1 can determine the function of the monitoring connection of closing this socket.
Whether the client that in addition, this server 1 also can judge the transmission connection request that this socket receives in application layer is in the list of intended client end.
Concrete, whether the IP address of the client of the transmission connection request that can receive by judgement is in the IP address list of client of SCTP association is set up in predetermined hope.If not in this IP address list, so, the application layer of server 1 can determine the function of the monitoring connection of closing this socket.
Below only enumerated the situation of several the first predetermined conditions, those skilled in the art can also set other predetermined condition according to practical situation.
Below for convenience of description, we judge in application layer whether the associated number of having set up on this socket is greater than the first predetermined association numerical value and is described as example taking this server 1.
Herein, our the first predetermined association numerical value is set to 5.
If server 1 judges that in application layer an association numerical value of having set up on this socket is less than 5, continue to maintain the function of the monitoring connection of opening this socket.
If server 1 judges that in application layer an association numerical value of having set up on this socket is more than or equal to 5, enter step S12, application layer notification transmission layer refusal is from the connection request of client.
Concrete, application layer passes to transport layer by the first control parameter and re-starts assignment for the SCTP_ENABLE_LISTENING mark to the new definition of Stream Control Transmission Protocol stack.For example, it is 0 that SCTP_ENABLE_LISTENING is identified again to assignment, monitors thereby close socket the function connecting.
Preferably, application layer can pass to transport layer by the first control parameter by the sctp_opt_info () function that calls transport layer and provide by application programming interfaces (API).Further, this the first control parameter comprises the file handle of this socket, this file handle is used for informing transport layer is to which socket executable operations, and comprise the type of performed operation, for example, certain socket of close/open is monitored the function connecting, and comprise the result of performed operation, for example, it is 0 that this SCTP_ENABLE_LISTENING is identified again to assignment, closes this socket and monitors the function connecting.
It should be noted that, this socket has been closed and has been monitored after the function connecting, and the SCTP association of before setting up is still maintained.
When SCTP_ENABLE_LISTENING mark is 0 by assignment again, this socket is monitored the function connecting and is closed.Afterwards, be just rejected and no longer further pass to application layer in the transport layer of server 1 end from any connection request of client.
Certainly,, after the function that the monitoring of this socket of server 1 connects is closed, application layer also can determine the function of the monitoring connection that reopens this socket.
Preferably, in step S13, server 1 judges whether second predetermined condition of association status on this socket in application layer, to determine that whether reopening this socket monitors the function connecting.
Preferably, server 1 judges in application layer whether the associated number of having set up on this socket is less than the second predetermined association numerical value.
This second predetermined association numerical value can be less than or equal to the first predetermined association numerical value, and preferably, this second predetermined association numerical value equals the first predetermined association numerical value.,, in the time that the first predetermined association numerical value is 5, preferably, this second predetermined association numerical value is also 5.
It should be noted that, these are only a kind of situation of the second predetermined condition, those skilled in the art can also set other predetermined condition according to practical situation.
When server 1 judges that in application layer an association numerical value of having set up on this socket is still more than or equal to 5, continue to maintain the function of closing this socket monitoring connection.
When server 1 judges that in application layer an association numerical value of having set up on this socket is less than 5, enter in step S14, the connection request from client receiving is transmitted to this application layer by the application layer notification transmission layer of server 1 end.
Concrete, application layer passes to transport layer by the second control parameter and re-starts assignment for the SCTP_ENABLE_LISTENING mark to the new definition of Stream Control Transmission Protocol stack.For example, it is 1 that SCTP_ENABLE_LISTENING is identified again to assignment, monitors thereby open socket the function connecting.
Preferably, application layer can pass to transport layer by the second control parameter by the sctp_opt_info () function that calls transport layer and provide by application programming interfaces (API).Further, this the second control parameter comprises the file handle of this socket, this file handle is used for informing transport layer is to which socket executable operations, and comprise the type of performed operation, for example, certain socket of close/open is monitored the function connecting, and comprise the result of performed operation, for example, it is 1 that this SCTP_ENABLE_LISTENING is identified again to assignment, opens this socket and monitors the function connecting.
When SCTP_ENABLE_LISTENING mark is 1 by assignment again, this socket is monitored the function connecting and is opened.Afterwards, the connection request from client is further passed to application layer by the transport layer of server 1 end, judges whether that for this application layer to set up SCTP associated with the client that sends this connection request.
Below the state transformation of only this socket of server 1 end being monitored connection from opening returns and reopens the description of monitoring the state connecting to the state of closing monitoring connection, those skilled in the art will be understood that, in concrete application, this socket of server 1 end can be opening switching arbitrarily between the state of monitoring connection and closing monitoring connection, to meet the needs of self.
Be above from the angle of method, technical scheme of the present invention to be described, below the angle from apparatus module be further described technical scheme of the present invention.
How on the basis that maintains the SCTP association of having set up, to close the function being connected with the monitoring of socket that reopens this server and be described in detail moving control device in the server of Stream Control Transmission Protocol in the present invention referring to Fig. 4 and in conjunction with Fig. 2.
Fig. 4 shows according to maintaining in the server of the operation Stream Control Transmission Protocol at communication network of the present invention and on the associated basis of having set up, closes and the structured flowchart that reopens socket and monitor the control device of the function being connected.Concrete, communicating by letter based on SCTP transport layer protocol in the communication network that Fig. 4 relates between server and client.
In order to realize function of the present invention, need in existing Stream Control Transmission Protocol stack, define a SCTP_ENABLE_LISTENING mark.If this mark is set to 1, the function that monitoring of corresponding socket connects is opened, if this mark is set to 0, the function that monitoring of corresponding socket connects is closed.Certainly, those skilled in the art also can be set to SCTP_ENABLE_LISTENING mark the function that the monitoring of the corresponding socket of 1 expression connects and be closed, and this mark is set to the function that the monitoring of the corresponding socket of 0 expression connects and is opened.
As to related in the description of Fig. 2, for the related communication system of Fig. 4, certain socket that we also suppose server 1 with client 21, client 22 and client 23 have been set up SCTP association.It should be noted that, in initial condition, even this socket with client 21, client 22 and client 23 have been set up SCTP association, but, the function connecting due to the monitoring of this socket is still in open mode, and this socket is still for monitoring the new connection request from client.
Hereinafter with reference to the structured flowchart shown in Fig. 4, server 1 is closed this socket and monitored the function connecting and reopen it and monitor the function connecting and be described in detail maintaining on the associated basis of having set up.
First, the first judgment means 101 in the control device 10 in server 1 judges whether first predetermined condition of association status on this socket of book server in application layer.
Concrete, this first judgment means 101 can judge whether the associated number of having set up on this socket is greater than the first predetermined association numerical value in application layer.
For example, if predefined this first predetermined association numerical value is 5, this first judgment means 101 judges in application layer whether the associated number of having set up on this socket is greater than 5 so.
If the associated number of having set up on this socket is greater than 5, so, the application layer of server 1 can determine the function of the monitoring connection of closing this socket.
This first judgment means 101 also can judge whether the number of the connection request from client that this socket receives within a scheduled time is greater than a predetermined request numerical value in application layer.
Preferably, this scheduled time scope can be a shorter time period, for example, and 60 seconds.This predetermined request numerical value can be 10.
If this socket of server 1 receives a large amount of connection requests from client one side within a shorter time period, can think that this server 1 is just being subject to malice and is connecting attack.So, the application layer of server 1 can determine the function of the monitoring connection of closing this socket.
Whether the client that in addition, this first judgment means 101 also can judge the transmission connection request that this socket receives in application layer is in the list of intended client end.
Concrete, whether the IP address of the client of the transmission connection request that the first judgment means 101 can receive by judgement is in the IP address list of client of SCTP association is set up in predetermined hope.If not in this IP address list, so, the application layer of server 1 can determine the function of the monitoring connection of closing this socket.
Below only enumerated the situation of several the first predetermined conditions, those skilled in the art can also set other predetermined condition according to practical situation.
Below for convenience of description, we judge in application layer whether the associated number of having set up on this socket is greater than the first predetermined association numerical value and is described as example taking the first judgment means 101.
Herein, our the first predetermined association numerical value is set to 5.
If the first judgment means 101 judges that in application layer an association numerical value of having set up on this socket is less than 5, continue to maintain the function of the monitoring connection of opening this socket.
If the first judgment means 101 judges that in application layer an association numerical value of having set up on this socket is more than or equal to 5, the first notifying device 102 in control device 10 is refused the connection request from client at application layer notification transmission layer.
Concrete, the first transfer device (for simplicity's sake, not shown in Fig. 4) in the first notifying device 102 passes to transport layer from application layer by the first control parameter and re-starts assignment for the SCTP_ENABLE_LISTENING mark to the new definition of Stream Control Transmission Protocol stack.For example, it is 0 that SCTP_ENABLE_LISTENING is identified again to assignment, monitors thereby close socket the function connecting.
Preferably, the first transfer device can pass to transport layer by the sctp_opt_info () function that calls transport layer and provide by application programming interfaces (API) by the first control parameter in application layer.Further, this the first control parameter comprises the file handle of this socket, this file handle is used for informing transport layer is to which socket executable operations, and comprise the type of performed operation, for example, certain socket of close/open is monitored the function connecting, and comprise the result of performed operation, for example, it is 0 that this SCTP_ENABLE_LISTENING is identified again to assignment, closes this socket and monitors the function connecting.
It should be noted that, this socket has been closed and has been monitored after the function connecting, and the SCTP association of before setting up is still maintained.
When SCTP_ENABLE_LISTENING mark is 0 by assignment again, this socket is monitored the function connecting and is closed.Afterwards, the refusal device in the first notifying device 102 (for simplicity's sake, not shown in Fig. 4) no longer further passes to application layer in transport layer by any connection request refusal from client.
Certainly,, after the function that the monitoring of this socket of server 1 connects is closed, application layer also can determine the function of the monitoring connection that reopens this socket.
Preferably, the second judgment means 103 in control device 10 judges whether second predetermined condition of association status on this socket in application layer, to determine that whether reopening this socket monitors the function connecting.
Preferably, the second judgment means 103 judges in application layer whether the associated number of having set up on this socket is less than the second predetermined association numerical value.
This second predetermined association numerical value can be less than or equal to the first predetermined association numerical value, and preferably, this second predetermined association numerical value equals the first predetermined association numerical value.,, in the time that the first predetermined association numerical value is 5, preferably, this second predetermined association numerical value is also 5.
It should be noted that, these are only a kind of situation of the second predetermined condition, those skilled in the art can also set other predetermined condition according to practical situation.
When the second judgment means 103 judges that in application layer an association numerical value of having set up on this socket is still more than or equal to 5, continue to maintain the function of closing this socket monitoring connection.
When the second judgment means 103 judges that in application layer an association numerical value of having set up on this socket is less than 5, the second notifying device 104 in control device 10 is transmitted to this application layer at application layer notification transmission layer by the connection request from client receiving.
Concrete, the second transfer device (for simplicity's sake, not shown in Fig. 4) in the second notifying device 104 passes to transport layer from application layer by the second control parameter and re-starts assignment for the SCTP_ENABLE_LISTENING mark to the new definition of Stream Control Transmission Protocol stack.For example, it is 1 that SCTP_ENABLE_LISTENING is identified again to assignment, monitors thereby open socket the function connecting.
Preferably, the second transfer device can pass to transport layer by the sctp_opt_info () function that calls transport layer and provide by application programming interfaces (API) by the second control parameter in application layer.Further, this the second control parameter comprises the file handle of this socket, this file handle is used for informing transport layer is to which socket executable operations, and comprise the type of performed operation, for example, certain socket of close/open is monitored the function connecting, and comprise the result of performed operation, for example, it is 1 that this SCTP_ENABLE_LISTENING is identified again to assignment, opens this socket and monitors the function connecting.
When SCTP_ENABLE_LISTENING mark is 1 by assignment again, this socket is monitored the function connecting and is opened.Afterwards, retransmission unit in the second notifying device 104 (for simplicity's sake, not shown in Fig. 4) in transport layer, the connection request from client is further passed to application layer, judge whether that for this application layer to set up SCTP associated with the client that sends this connection request.
Below the state transformation of only this socket of server 1 end being monitored connection from opening returns and reopens the description of monitoring the state connecting to the state of closing monitoring connection, those skilled in the art will be understood that, in concrete application, this socket of server 1 end can be opening switching arbitrarily between the state of monitoring connection and closing monitoring connection, to meet the needs of self.
Above specific embodiments of the invention are described, it will be appreciated that, the present invention is not limited to above-mentioned specific execution mode, and those skilled in the art can make various sizings and amendment within the scope of the appended claims.

Claims (16)

  1. In the server of the operation Stream Control Transmission Protocol of communication network for maintaining a method of closing socket on the associated basis of having set up and monitor the function connecting, described socket is one-to-many socket, wherein, said method comprising the steps of:
    A. judge whether first predetermined condition of association status on the socket of book server in application layer;
    If b. described association status first predetermined condition, described application layer notification transmission layer sets to refuse the new connection request from client by the mark of the function with this socket monitoring connection of close/open to new definition in Stream Control Transmission Protocol.
  2. 2. method according to claim 1, is characterized in that, further comprising the steps of after described step b:
    C. judge whether second predetermined condition of association status on the described socket of book server in described application layer;
    If d. described association status second predetermined condition, described application layer notifies described transport layer that the connection request from described client receiving is transmitted to described application layer.
  3. 3. method according to claim 1 and 2, is characterized in that, described step b is further comprising the steps of:
    If b1. described association status first predetermined condition, the first control parameter is passed to described transport layer by described application layer;
    B2. based on this first control parameter, described transport layer refusal is from the connection request of described client.
  4. 4. method according to claim 3, it is characterized in that, described step b1 also comprises: if described association status first predetermined condition, described application layer passes to described transport layer by the sctp_opt_info () function that calls described transport layer and provide by the first control parameter.
  5. 5. method according to claim 2, is characterized in that, described steps d is further comprising the steps of:
    If d1. described association status second predetermined condition, the second control parameter is passed to described transport layer by described application layer;
    D2. based on this second control parameter, the connection request from described client receiving is transmitted to described application layer by described transport layer.
  6. 6. method according to claim 5, it is characterized in that, described steps d 1 also comprises: if described association status second predetermined condition, described application layer is controlled parameter by the sctp_opt_info () function that calls described transport layer and provide by described second and passed to described transport layer.
  7. 7. according to the method described in any one in claim 1 to 2, it is characterized in that, described the first predetermined condition comprises any one in the following:
    The associated number of having set up on-described socket is greater than the first predetermined association numerical value;
    The number of the connection request from described client that-described socket is received within a scheduled time is greater than a predetermined request numerical value;
    The client of the transmission connection request that-described socket receives is not in the list of intended client end.
  8. 8. method according to claim 2, is characterized in that, described the second predetermined condition comprises: the associated number of having set up on described socket is less than the second predetermined association numerical value.
  9. In the server of the operation Stream Control Transmission Protocol of communication network for maintaining a control device of closing socket on the associated basis of having set up and monitor the function connecting, described socket is one-to-many socket, wherein, described control device comprises:
    The first judgment means, for judging whether first predetermined condition of association status on the socket of book server in application layer;
    The first notifying device, if for described association status first predetermined condition, monitor the mark of the function connecting and set to refuse the new connection request from client by this socket of close/open that has of new definition in to Stream Control Transmission Protocol at described application layer notification transmission layer.
  10. 10. control device according to claim 9, is characterized in that, also comprises:
    The second judgment means, for judging whether second predetermined condition of association status on the described socket of book server in described application layer;
    The second notifying device, if for described association status second predetermined condition, notifies described transport layer that the connection request from described client receiving is transmitted to described application layer in described application layer.
  11. 11. according to the control device described in claim 9 or 10, it is characterized in that, described the first notifying device also comprises:
    The first transfer device, if for described association status first predetermined condition, passes to described transport layer from described application layer by the first control parameter;
    Refusal device, for based on this first control parameter, refuses the connection request from described client in described transport layer.
  12. 12. control device according to claim 11, it is characterized in that, if described the first transfer device is also for described association status first predetermined condition, by the sctp_opt_info () function that calls described transport layer and provide, the first control parameter is passed to described transport layer in described application layer.
  13. 13. control device according to claim 10, is characterized in that, described the second notifying device also comprises:
    The second transfer device, if for described association status second predetermined condition, passes to described transport layer from described application layer by the second control parameter;
    Retransmission unit, for based on this second control parameter, is transmitted to described application layer in described transport layer by the connection request from described client receiving.
  14. 14. control device according to claim 13, it is characterized in that, if described the second transfer device is also for described association status second predetermined condition, controls parameter by the sctp_opt_info () function that calls described transport layer and provide by described second in described application layer and pass to described transport layer.
  15. 15. according to the control device described in any one in claim 9 to 10, it is characterized in that, described the first predetermined condition comprises any one in the following:
    The associated number of having set up on-described socket is greater than the first predetermined association numerical value;
    The number of the connection request from described client that-described socket is received within a scheduled time is greater than a predetermined request numerical value;
    The client of the transmission connection request that-described socket receives is not in the list of intended client end.
  16. 16. according to the control device described in any one in claim 10, it is characterized in that, described the second predetermined condition comprises: the associated number of having set up on described socket is less than the second predetermined association numerical value.
CN200980146352.5A 2009-02-19 2009-02-19 Method and device for dynamically closing/opening function of SCTP socket listening connection Expired - Fee Related CN102217282B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2009/000165 WO2010094150A1 (en) 2009-02-19 2009-02-19 Method and device for dynamically closing/opening function of sctp socket listening connection

Publications (2)

Publication Number Publication Date
CN102217282A CN102217282A (en) 2011-10-12
CN102217282B true CN102217282B (en) 2014-11-05

Family

ID=42633410

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200980146352.5A Expired - Fee Related CN102217282B (en) 2009-02-19 2009-02-19 Method and device for dynamically closing/opening function of SCTP socket listening connection

Country Status (2)

Country Link
CN (1) CN102217282B (en)
WO (1) WO2010094150A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108829411B (en) * 2017-04-28 2021-06-15 武汉斗鱼网络科技有限公司 Method and system for updating Flash application through server
CN109474670A (en) * 2018-10-22 2019-03-15 中国人民解放军战略支援部队航天工程大学 A kind of information interacting method and system
CN109257227B (en) * 2018-10-24 2021-09-24 京信网络系统股份有限公司 Coupling management method, device and system in data transmission

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889563A (en) * 2005-06-30 2007-01-03 华为技术有限公司 Load control method based on Diameter protocol
CN101060469A (en) * 2006-06-14 2007-10-24 华为技术有限公司 A system and method for realizing the multi-homing feature of stream control transmission protocol

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100346602C (en) * 2005-06-23 2007-10-31 复旦大学 High subsequent stream medium server system for realizing video quality and delivery rate control

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889563A (en) * 2005-06-30 2007-01-03 华为技术有限公司 Load control method based on Diameter protocol
CN101060469A (en) * 2006-06-14 2007-10-24 华为技术有限公司 A system and method for realizing the multi-homing feature of stream control transmission protocol

Also Published As

Publication number Publication date
WO2010094150A1 (en) 2010-08-26
CN102217282A (en) 2011-10-12

Similar Documents

Publication Publication Date Title
CN100466600C (en) Method for implementing resource preretention of inserted allocation mode in next network
US20130094363A1 (en) Method, network device, and network system for processing data service
US20120263186A1 (en) Contents base switching system and contents base switching method
EP3201777B1 (en) Providing functional requirements for a network connection from a local library
CN104639578A (en) Multi-protocol-stack load balancing method and multi-protocol-stack load balancing device
KR20140135000A (en) Service processing method and apparatus in software-defined networking system
KR101938623B1 (en) Openflow communication method, system, controller, and service gateway
EP1966930B1 (en) Method and system for managing multicast delivery content in communication networks
EP2848080A1 (en) System and method for reducing a call establishment time
US10171351B2 (en) Method for updating flow table
CN101159747A (en) TCP concurrency multilink based communication system and method therefor
CA2672266A1 (en) Mobile communication control system, method, and communication terminal
KR20110008311A (en) Methods and devices for managing a network
CN102217282B (en) Method and device for dynamically closing/opening function of SCTP socket listening connection
CN1643858B (en) Quality of service request correlation
CN102315918B (en) Method and device for intercommunicating TCP (Transmission Control Protocol) connection with SCTP (Stream Control Transmission Protocol) connection
CN107529229B (en) Data transmission method, device and system
CN103067981B (en) A kind of content caching by-pass method and system
CN111352642B (en) Service equipment and service software upgrading method
CN101621528B (en) Conversation system based on Ethernet switch cluster management and method for realizing conversation passage
CN105991629B (en) TCP connection method for building up and device
US20160197789A1 (en) Application management method and apparatus
CN102594938A (en) Portal secondary address authentication method and device
CN107070970A (en) A kind of method for closing and device of transmission control protocol TCP connection
CN113271252A (en) Communication establishment method, system and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20141105

Termination date: 20170219